partimage-0.6.8/0000777000000000000000000000000011256752131012203 5ustar rootrootpartimage-0.6.8/po/0000777000000000000000000000000011256751522012624 5ustar rootrootpartimage-0.6.8/po/nl.po0000644000000000000000000023602411252653200013566 0ustar rootroot# Dutch translation of partimage. # Copyright (C) 2001 Free Software Foundation, Inc. # Herman Bruyninckx , 2001. # msgid "" msgstr "" "Project-Id-Version: partimage 0.6.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2001-12-28 14:46+0100\n" "Last-Translator: Herman Bruyninckx \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-15\n" "Content-Transfer-Encoding: 8bit\n" # src/client/gui_text.cpp:56 #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Herstel een MBR op de harde schijf" # src/client/gui_text.cpp:59 #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Schijf met de te herstellen MBR" # src/client/gui_text.cpp:62 #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Oorspronkelijke te gebruiken MBR" # src/client/gui_text.cpp:65 #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Wat moet hersteld worden:" # src/client/gui_text.cpp:67 #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "De hele MBR" # src/client/gui_text.cpp:205 src/client/misc.cpp:1680 #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Kan \"/proc/partitions\" niet lezen (%s). Dus moet u de commando-lijn " "gebruiken om Partition Image uit te voeren. Tik \"partimage --help\" voor " "hulp." # src/client/gui_text.cpp:296 #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Ga verder (F5)" # src/client/gui_text.cpp:297 src/client/interface_newt.cpp:214 #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Afsluiten (F6)" # src/client/gui_text.cpp:298 #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Hoofd-venster (F7)" # src/client/gui_text.cpp:308 src/client/gui_text.cpp:435 #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "partitie aan het wegschrijven naar image-bestand" # src/client/gui_text.cpp:310 #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Compressie-niveau" # src/client/gui_text.cpp:311 #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Geen (zeer snel + zeer groot bestand)" # src/client/gui_text.cpp:315 src/client/gui_text.cpp:587 #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opties" # src/client/gui_text.cpp:316 #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Controleer partitie alvorens weg te schrijven" # src/client/gui_text.cpp:317 #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Voer beschrijving in" # src/client/gui_text.cpp:318 #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Overschrijf zonder verwittiging" # src/client/gui_text.cpp:320 #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Image split-mode" # src/client/gui_text.cpp:321 #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Automatische split (wanneer geen schijfuimte overblijft)" # src/client/gui_text.cpp:322 #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "In bestanden met grootte:............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" # src/client/gui_text.cpp:326 #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Wacht na iedere wijziging aan volume" # src/client/gui_text.cpp:328 src/client/gui_text.cpp:592 #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Indien geslaagd einde:" # src/client/gui_text.cpp:329 src/client/gui_text.cpp:593 #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Wacht" # src/client/gui_text.cpp:330 src/client/gui_text.cpp:594 #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Halt" # src/client/gui_text.cpp:331 src/client/gui_text.cpp:595 #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Reboot" # src/client/gui_text.cpp:332 src/client/gui_text.cpp:596 #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Programma verlaten" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" # src/client/gui_text.cpp:438 #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Weg te schrijven partitie:...........%s" # src/client/gui_text.cpp:441 #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Grootte van de Partitie:.......%s = %llu bytes" # src/client/gui_text.cpp:444 #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Aan te maken iage-bestand.........%s" # src/client/gui_text.cpp:450 #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Gevonden bestandssysteem:........%s" # src/client/gui_text.cpp:456 #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Compressie-niveau:...........None" # src/client/gui_text.cpp:459 #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Compressie-niveau:...........gzip" # src/client/gui_text.cpp:462 #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Compressie-niveau:...........bzip2" # src/client/gui_text.cpp:465 #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Compressie-niveau:...........lzo" # src/client/gui_text.cpp:519 #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Verlopen tijd:................%s" # src/client/gui_text.cpp:522 #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Geschatte benodigde tijd:....%s" # src/client/gui_text.cpp:527 #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Snelheid:.......................%s/min" # src/client/gui_text.cpp:530 #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Gegevens gecopieerd:.................%s / %s" # src/client/gui_text.cpp:562 #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Huidig image-bestand:..........%s" # src/client/gui_text.cpp:567 #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Grootte van image-bestand:.............%s" # src/client/gui_text.cpp:571 #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Beschikbare ruimte voor image...%s = %llu bytes" # src/client/gui_text.cpp:584 src/client/gui_text.cpp:641 #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "herstel partitie van image-bestand" # src/client/gui_text.cpp:589 #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Overschrijf vrije blocken met nul-bytes" # src/client/gui_text.cpp:590 #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simulatie van de herstelling (niets wordt weggeschreven)" # src/client/gui_text.cpp:584 src/client/gui_text.cpp:641 #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "herstel partitie van image-bestand" # src/client/gui_text.cpp:644 #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Te herstellen partitie:.............%s" # src/client/gui_text.cpp:647 #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Grootte van de te herstellen partitie:.....%s = %llu bytes" # src/client/gui_text.cpp:650 #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Te gebruiken image-bestand:.................%s" # src/client/gui_text.cpp:653 #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Bestandssysteem:......................%s" # src/client/gui_text.cpp:658 #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Partitie was op device:..........%s\n" # src/client/gui_text.cpp:661 #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Image aangemaakt op:.................%s\n" # src/client/gui_text.cpp:664 #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Grootte van de oorspronkelijke partitie:...%s = %llu bytes" # src/client/gui_text.cpp:731 #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Verlopen tijd:.....................%s" # src/client/gui_text.cpp:734 #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Geschatte benodigde tijd:.........%s" # src/client/gui_text.cpp:739 #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Snelheid:............................%s/min" # src/client/gui_text.cpp:742 #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Gegevens gecopieerd:......................%s / %s" # src/client/gui_text.cpp:773 #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Huidig image-bestand:...............%s" # src/client/gui_text.cpp:781 #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Compressie-niveau:................Geen\n" # src/client/gui_text.cpp:784 #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Compressie-niveau:................gzip" # src/client/gui_text.cpp:787 #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Compressie-niveau:................bzip2" # src/client/gui_text.cpp:790 #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Compressie-niveau:................lzo" # src/client/gui_text.cpp:816 #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Verander" # src/client/gui_text.cpp:817 src/client/interface_newt.cpp:118 # src/client/interface_newt.cpp:128 src/client/interface_newt.cpp:141 # src/client/interface_newt.cpp:353 src/client/interface_newt.cpp:406 #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Cancel" # src/client/gui_text.cpp:819 #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Voer nieuwe bestandsnaam in" # src/client/gui_text.cpp:863 #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Het volgende image-bestand bestaat reeds.\n" "Wil u het overschrijven of de bestandsnaam wijzigen?\n" "Bestand: %s\n" "Om de bestandsnaam te wijzigen, vult u een volledig pad in (plaats + " "bestandsnaam) zonder volume-nummer aan het einde, en druk dan op \"Wijzig\"" # src/client/interface_base.cpp:413 #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Image overschrijven?" # src/client/gui_text.cpp:868 #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Overschrijven" # src/client/gui_text.cpp:863 #: src/client/gui_text.cpp:903 #, fuzzy, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Het volgende image-bestand bestaat reeds.\n" "Wil u het overschrijven of de bestandsnaam wijzigen?\n" "Bestand: %s\n" "Om de bestandsnaam te wijzigen, vult u een volledig pad in (plaats + " "bestandsnaam) zonder volume-nummer aan het einde, en druk dan op \"Wijzig\"" # src/client/gui_text.cpp:885 #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "image-bestand geblokkeerd" # src/client/gui_text.cpp:885 #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Probeer opnieuw" # src/client/gui_text.cpp:898 #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "Niet in staat om %s te bereiken\n" "\n" "Gelieve een ander directory-pad in te geven (zonder bestandsnaam):" # src/client/gui_text.cpp:901 #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "verkeerd pad" # src/client/imagefile.cpp:603 #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automatische mount" # src/client/imagefile.cpp:604 #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Gelieve \"ok\" te drukken om [%s] te mounten op [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" # src/client/imagefile.cpp:973 #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Kan volgende volume-bestand niet lezen:\n" "%s\n" "%s" # src/client/imagefile.cpp:974 #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Voer een ander volledig pad in (directory & naam)" # src/client/imagefile.cpp:975 #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume niet gevonden" # src/client/imginfo.cpp:44 #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Geen vlag gezet" # src/client/imginfo.cpp:50 #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Geen beschrijving" # src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "geen" # src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "onbekend" # src/client/imginfo.cpp:64 #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Bestandssysteem:............%s\n" "Beschrijving:...........%s\n" "Oorspronkelijk device:.......%s\n" "Oorspronkelijk bestandspad:.... %s\n" "Vlaggen:.................%ld: %s\n" "Aanmaak-datum:.........%sPartitie-grootte:........%s\n" "Hostname:..............%s\n" "Compatibele Versie:....%s\n" "Encryptie-algoritme:..%ld -> %s\n" "MBR weggeschreven aantal:.......%lu\n" "\n" "Systeem van de backup:\n" "- machine:.............%s\n" "- besturingssysteem:....%s\n" "- release:.............%s\n" "\n" "\n" # src/client/imginfo.cpp:89 #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" # src/client/imginfo.cpp:130 #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Volume-nummer:.........%lu\n" "Volume-grootte:...........%s\n" "Compressie-niveau: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" # src/client/imginfo.cpp:155 #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Het image-bestand \"%s\" kan niet gevonden worden" # src/client/imginfo.cpp:176 #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Kan image-bestand niet lezen" # src/client/imginfo.cpp:231 #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Image inlichtingen" # src/client/fs/fs_ntfs.cpp:184 src/client/interface_base.cpp:40 # src/client/interface_newt.cpp:128 src/client/misc.cpp:1815 #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Fout" # src/client/interface_base.cpp:48 #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Over Partition Image %s" # src/client/interface_base.cpp:50 #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image is verdeeld onder de GNU GPL 2 (General Public License)\n" "\n" "versie:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Auteurs:\n" "Francois Dupoux \n" "Franck Ladurelle " # src/client/interface_base.cpp:61 #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Kan block %ld niet naar image schrijven" # src/client/interface_base.cpp:65 #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Kan %s niet naar image schrijven" # src/client/interface_base.cpp:69 #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Kan bitmap block %ld niet naar image schrijven" # src/client/interface_base.cpp:73 #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Kan bitmap block %ld niet lezen van image" # src/client/interface_base.cpp:77 #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Kan block %ld niet naar harde schijf schrijven" # src/client/interface_base.cpp:81 #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Kan block %ld niet lezen van image (%d)" # src/client/interface_base.cpp:85 #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Kan %s niet lezen van image" # src/client/interface_base.cpp:89 #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Kan SuperBlock niet lezen" # src/client/interface_base.cpp:93 #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Kan SuperBlock niet schrijven" # src/client/interface_base.cpp:97 #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Kan block %ld niet lezen van harde schijf partitie" # src/client/interface_base.cpp:101 #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Kan bitmap block %ld niet lezen van harde schijf partitie (%s)" # src/client/interface_base.cpp:106 #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Kan de MBR niet schrijven" # src/client/interface_base.cpp:112 #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Kan de MBR niet lezen" # src/client/interface_base.cpp:118 #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Geen %s-partitie. Controleer het type van het bestandssysteem" # src/client/interface_base.cpp:124 #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "De partitie is weggeschreven met een nieuwere versie van Partion Image. " "Gelieve de laatste versie te downloaden." # src/client/interface_base.cpp:131 #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Fout tijdens schrijven van image-bestand: schijf vol!" # src/client/interface_base.cpp:137 #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Kan bestandssysteem van partitie %s niet detecteren" # src/client/interface_base.cpp:143 #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Kan hoofding niet schrijven" # src/client/interface_base.cpp:149 #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Kan einde niet schrijven" # src/client/interface_base.cpp:155 #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Kan einde niet lezen" # src/client/interface_base.cpp:161 #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Het image dat u wil herstellen is geencrypteerd. De huidige versie " "ondersteunt geen encryptie. Gelieve de laatste versie van partimage te " "installeren." # src/client/interface_base.cpp:169 #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s is niet het eerste volume van een image. Gelieve opnieuw te proberen met " "volume nummer 000" # src/client/interface_base.cpp:176 #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s is geen geldig partition image bestand." # src/client/interface_base.cpp:182 #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "De partitie is te klein om hersteld te worden:\n" "Originele partitie-grootte:........%llu bytes\n" "Partitie-grootte van bestemming:.....%llu bytes" # src/client/interface_base.cpp:190 #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Er is een fout opgetreden bij het herstellen van de partitie:\n" "CRC64 zijn verschillend, het image-bestand is beschadigd:\n" "Originele CRC64:.....%llu\n" "Huidige CRC64:......%llu" # src/client/interface_base.cpp:199 #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Ongeldig volume-nummer (%ld in plaats van %ld)." # src/client/interface_base.cpp:206 #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Fout bij afsluiten" # src/client/interface_base.cpp:213 #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "De partitie %s is reeds geblokkeerd door een ander proces. Kan er niet op " "werken" # src/client/interface_base.cpp:226 #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Kan partitie %s niet openen" # src/client/interface_base.cpp:232 #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Kan partitie %s niet locken" # src/client/interface_base.cpp:238 #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Kan hoofding niet lezen: image-bestand is beschadigd" # src/client/interface_base.cpp:244 #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Kan inlichtingen niet schrijven" # src/client/interface_base.cpp:250 #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Kan inlichtingen niet lezen" # src/client/interface_base.cpp:256 #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Kan MBR Magic niet lezen: image-bestand is beschadigd" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" # src/client/interface_base.cpp:282 src/client/interface_base.cpp:311 # src/client/interface_base.cpp:318 src/client/interface_base.cpp:325 # src/client/interface_base.cpp:348 src/client/interface_base.cpp:368 # src/client/misc.cpp:1807 #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Waarschuwing" # src/client/interface_base.cpp:282 src/client/misc.cpp:1807 #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "U bent niet ingelogd als root. U kan \"toegang geweigerd\" fouten krijgen " "tijdens het werken." # src/client/interface_base.cpp:292 #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nieuw Volume" # src/client/interface_base.cpp:292 #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Het volume is gewijzigd.\n" "Oud: %s\n" "Nieuw: %s/%s.%.3ld\n" "Druk Enter om verder te gaan" # src/client/interface_base.cpp:302 #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Bevestiging" # src/client/interface_base.cpp:303 #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Wil u echt %s herstellen van het image-bestand %s?" # src/client/interface_base.cpp:311 #: src/client/interface_base.cpp:317 #, fuzzy, c-format msgid "%s found errors on the file system." msgstr "" "Er zijn fouten op het bestandssysteem, of %s kan niet uitgevoerd worden" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" # src/client/interface_base.cpp:318 #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "De huidige %s ondersteuning is experimenteel !" # src/client/interface_base.cpp:325 #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "De huidige %s ondersteuning is beta !" # src/client/interface_base.cpp:333 #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simulatie-mode" # src/client/interface_base.cpp:333 #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "U gebruikt de simulatie-mode: schrijven zal niet uitgevoerd worden" # src/client/interface_base.cpp:349 #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "De MBR is heel belangrijke data op de harde schijf. Indien u een slechte MBR " "wegschrijft verliest u alle partities van de harde schijf. Ga niet verder " "tenzij u weet wat u doet. Druk 'Verdergaan' om te herstellen.\n" "Device met MBR om te herstellen:........%s [%llu]\n" "Oorspronkelijke MBR:.......................%s [%llu]" # src/client/interface_base.cpp:369 #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "De oorspronkelijke harde schijf past niet met de huidige harde schijf. De " "MBR die u probeert te herstellen is weggeschreven vanaf een andere harde " "schijf. Dit betekent dat de oorspronkelijke en de huidige harde schijven " "niet dezelfde grootte hebben, of ze staan niet op hetzelfde device (%s and %" "s). Wil u verder gaan?" # src/client/interface_base.cpp:379 src/client/main.cpp:691 #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Succes" # src/client/interface_base.cpp:379 #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "De herstelling van de MBR van [%s] is geslaagd. U moet misschien uw computer " "rebooten indien u wil dat het besturingssysteem de nieuwe MBR gebruikt." # src/client/interface_base.cpp:400 src/client/interface_base.cpp:410 #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Fout: %s" # src/client/interface_base.cpp:407 #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Actie onderbroken zoals gevraagd door gebruiker" # src/client/interface_base.cpp:413 #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Het %s image-bestand bestaat reeds. Wil u het overschrijven?" # src/client/interface_base.cpp:420 #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Toegang geweigerd" # src/client/interface_base.cpp:420 #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "U heeft geen schrijf-toegang op %s" # src/client/interface_base.cpp:424 #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Ongeldig compressie-niveau voor %s" # src/client/interface_base.cpp:428 #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "image-bestand %s is reeds geopend" # src/client/interface_base.cpp:438 #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "bestand %s is te kort om partimage volume te kunnen zijn: kan hoofding niet " "lezen" # src/client/interface_base.cpp:448 #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "bestand %s is geen partimage bestand: magische string past niet" # src/client/interface_base.cpp:453 #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "magische string past niet: error in het image-bestand [%s]" # src/client/interface_base.cpp:457 #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" "het huidige volume past niet met het huidige image: verkeerde identificator" # src/client/interface_base.cpp:462 #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Te weinig geheugen." # src/client/interface_base.cpp:466 #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "fout paswoord/login geweigerd" # src/client/interface_base.cpp:470 #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" "Te veel clients verbonden met partimaged. Gelieve later opnieuw te proberen" # src/client/interface_base.cpp:475 #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Slecht 4096 bytes per block %s volumes zijn ondersteund. Het huidige is %lu " "bytes/block" # src/client/interface_base.cpp:480 #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "De partitie %s is reeds geblokkeerd door een ander proces. U kan er niet op " "werken" # src/client/interface_base.cpp:489 #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Fout bij het controleren van de gegevens. Ongeldig block-nummer. Misschien " "zijn een vollume of gegevens overgeslagen." # src/client/interface_base.cpp:494 #: src/client/interface_base.cpp:514 #, fuzzy, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Dit volume (%ld) is niet het verwachte volume: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" # src/client/interface_base.cpp:533 #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "Geen MBR gevonden in dit image-bestand. We kunnen niet verder" # src/client/interface_base.cpp:537 #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Controle van partitie heeft fout(en) gevonden op partities" # src/client/interface_base.cpp:552 #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "MBR kan niet van schijf gelezen worden" # src/client/interface_base.cpp:555 #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Ongeldig of beschadigd bestandssysteem %s" # src/client/interface_base.cpp:561 #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Onmogelijk om het block op harde schijf %s met nullen te overschrijven" # src/client/interface_base.cpp:565 #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Verbinding geweigerd door server: incompatibele netwerk-opties. Probeer " "login-optie voor de server af te zetten met '-L'" # src/client/interface_base.cpp:570 #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Verbinding geweigerd door server: versies passen niet" # src/client/interface_base.cpp:574 #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Het image-bestand is aangemaakt met een nieuwere versie (%s) van Partition " "Image. Gelieve de software te updaten en opnieuw te proberen." # src/client/interface_base.cpp:579 #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Het image-bestand is aangemaakt door een oudere versie (%s) van Partition " "Image. U moet de oude versie gebruiken om uw image te herstellen, of u moet " "het opnieuw aanmaken met de huidige versie" # src/client/interface_base.cpp:586 #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s is geen geldig Partition Image bestand of het is beschadigd. Sorry, we " "kunnen niet verder" # src/client/interface_base.cpp:591 #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "Bestand %s is geen geldig bestand. We kunnen niet verder omwille van " "beveiligings-redenen" # src/client/interface_base.cpp:596 #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Kan %s niet mounten" # src/client/interface_base.cpp:600 #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Kan %s niet unmounten" # src/client/interface_base.cpp:604 #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Kan tijdelijk bestand [%s] niet aanmaken. Gelieve na te kijken of er genoeg " "plaats vrij is en of u toegangsrechten heeft." # src/client/interface_base.cpp:608 #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" "Kan tijdelijk bestand [%s] niet aanmaken. Geen plaats meer vrij op device." # src/client/interface_base.cpp:608 #: src/client/interface_base.cpp:639 #, fuzzy, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Kan tijdelijk bestand [%s] niet aanmaken. Geen plaats meer vrij op device." # src/client/interface_base.cpp:608 #: src/client/interface_base.cpp:642 #, fuzzy, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "Kan tijdelijk bestand [%s] niet aanmaken. Geen plaats meer vrij op device." # src/client/interface_base.cpp:612 #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Bestand is te groot (groter dan 2 GB). We kunnen niet verder. Dit probleem " "kan veroorzaakt zijn door de kernel, glibc, het bestandssysteem waarop het " "image weggeschreven is" # src/client/interface_base.cpp:616 #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Onbekende error %d -> %s" # src/client/interface_newt.cpp:37 #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Newt debug-informatie" # src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:108 # src/client/interface_newt.cpp:320 src/client/interface_newt.cpp:352 # src/client/interface_newt.cpp:405 #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" # src/client/interface_newt.cpp:141 #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Ga verder" # src/client/interface_newt.cpp:156 #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Ja" # src/client/interface_newt.cpp:156 #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Nee" # src/client/interface_newt.cpp:191 #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partitie om op te slaan/te herstellen" # src/client/interface_newt.cpp:193 #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Image bestand om aan te maken/te gebruiken" # src/client/interface_newt.cpp:195 #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Uit te voeren actie:" # src/client/interface_newt.cpp:196 #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Schrijf partitie weg in een nieuw image-bestand" # src/client/interface_newt.cpp:197 #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Herstel partitie van een image-bestand" # src/client/interface_newt.cpp:198 #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Herstel een MBR van een image-bestand" # src/client/interface_newt.cpp:200 #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Verbind met server" # src/client/interface_newt.cpp:202 #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Encrypteer gegevens op het netwerk met SSL" # src/client/interface_newt.cpp:204 #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL afgezet bij het compileren" # src/client/interface_newt.cpp:204 #: src/client/interface_newt.cpp:229 #, fuzzy msgid "SSL&login disabled at compile time" msgstr "SSL afgezet bij het compileren" # src/client/interface_newt.cpp:206 #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/naam van de server:" # src/client/interface_newt.cpp:208 #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Poort:" # src/client/interface_newt.cpp:212 #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Volgende (F5)" # src/client/interface_newt.cpp:213 #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Over" # src/client/interface_newt.cpp:244 #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "Het \"Image\"-veld is leeg. Kan niet verder." # src/client/interface_newt.cpp:252 #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "Het \"Server IP/Naam\"-veld is leeg. Kan niet verder." # src/client/interface_newt.cpp:258 #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" "het \"server-poort\"-veld is geen geldig geheel getal. Kan niet verder." # src/client/interface_newt.cpp:316 src/client/misc.cpp:834 #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Beschrijving van partitie" # src/client/interface_newt.cpp:318 #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "U kan een beschrijving invullen voor de weggeschreven partitie" # src/client/interface_newt.cpp:370 src/client/interface_newt.cpp:426 #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Tekst mag niet leeg zijn" # src/client/interface_newt.cpp:395 #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Paswoord vereist" # src/client/interface_newt.cpp:398 #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Voer uw login in" # src/client/interface_newt.cpp:402 #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Voer uw paswoord in" # src/client/interface_newt.cpp:442 #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Schijf vol! Kan het volgende volume-bestand (%s.%.3ld) niet naar %s " "schrijven\n" "Gelieve een ander directory pad op te geven (zonder bestandsnaam):" # src/client/interface_newt.cpp:447 #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Nieuwe plaats voor volume" # src/client/main.cpp:217 src/client/misc.cpp:1842 #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "poort op de server moet tussen 1 en 65535 liggen\n" # src/client/main.cpp:226 #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Compressie-mode moet zijn: 0 (geen), 1(gzip), 2(bzip2)\n" # src/client/main.cpp:236 #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Beeindigings-mode moet zijn: 0 (wacht), 1(halt), 2(reboot) or 3(quit)\n" # src/client/main.cpp:246 #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "Het debug-niveau moet zijn: 0(geen), 1(user), 2(developer) of 3(debugging)\n" # src/client/main.cpp:255 #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Volume-grootte: %llu bytes (%ld KB)\n" # src/client/main.cpp:285 #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image versie %s (verdeeld onder de GNU GPL2).\n" # src/client/main.cpp:339 #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Kan debug-bestand niet openen.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" # src/client/main.cpp:680 #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "De herstelling van de MBR is geslaagd" # src/client/main.cpp:685 #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulatie" # src/client/main.cpp:687 #: src/client/main.cpp:726 msgid "Operation" msgstr "Operatie" # src/client/main.cpp:698 #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Fout: kan computer niet afzetten" # src/client/main.cpp:708 #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Fout: kan computer niet rebooten" # src/client/main.cpp:708 #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Fout: kan computer niet rebooten" # src/client/main.cpp:708 #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Fout: kan computer niet rebooten" # src/client/main.cpp:742 #: src/client/main.cpp:843 #, fuzzy, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) versie %s [%s]\n" "---- verdeeld onder de GPL 2 licentie (GNU General Public License) ----\n" "\n" "Ondersteunde bestandssytemen:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), " "hpfs\n" "\n" "gebruik: partimage [opties] \n" " partimage \n" "\n" "bijv: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "bijv: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "bijv: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "bijv: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "bijv: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "bijv: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Parameters:\n" "* :\n" " - save: schrijf de partitie-gegevens weg in een image-bestand\n" " - restore: herstel de partitie van een image-bestand\n" " - restmbr: herstel een MBR van het image-bestand naar een harde schijf\n" " - imginfo: toon inlichtingen over het image-bestand\n" "* : weg te schrijven/te herstellen partitie (voorbeeld: /dev/hda1)\n" "* : bestand waar gegevens worden gelezen/geschreven. Kan zeer " "groot worden\n" "\n" "Opties:\n" "* -z, --compress (compressie-niveau van het image-bestand):\n" " -z0, --compress=0 niet comprimeren: snel maar groot image-bestand\n" " -z1, --compress=1 comprimeer met gzip: snel en klein image-bestand" "(default)\n" " -z2, --compress=2 (comprimeer met bzip2: zeer traag en zeer klein image-" "bestand file):\n" "* -c, --nocheck partitie niet controleren alvorens weg te schrijven\n" "* -o, --overwrite overschrijf het bestaande image-bestand zonder " "bevestiging\n" "* -d, --nodesc vraag geen beschrijving voor het image-bestand\n" "* -V, --volume (splits image-bestand in verschillende volume-" "bestanden)\n" " -VX, --volume=X maak volumes aan met een grootte van X KB\n" "* -w, --waitvol wacht op bevestiging na elke wijziging van een volume\n" "* -e, --erase vul lege blokken op met nul-bytes bij herstelling \n" "* -m, --allowmnt niet stoppen wanneer de partitie gemount is. " "Gevaarlijk!!\n" "* -M, --nombr geen backup van de MBR (Mast Boot Record) aanmaken in " "het image bestand\n" "* -h, --help toon hulp\n" "* -v, --version toon versie\n" "* -i, --compilinfo toon gebruikte compilatie-opties\n" "* -f, --finish (uit te voeren actie bij geslaagd einde):\n" " -f0, --finish=0 wacht: maak niets aan\n" " -f1, --finish=1 halt (power off) de computer\n" " -f2, --finish=2 reboot (herstart de computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: de GUI wacht niet op een actie van de " "gebruiker\n" "* -y, --nosync de schijven niet synchronizeren aan het einde van de " "operatie (gevaarlijk)\n" "* -sX, --server=X geef IP-adres van de server van partimaged \n" "* -pX, --port=X geef poort waarop server van partimaged luistert\n" "* -g, --debug=X zet het debug-niveau op X (default: 1):\n" "* -n, --nossl schakel SSL uit in network-mode\n" "* -S, --simulate simulatie van de herstel-mode \n" "* -aX, --automnt=X Automatische mount met X opties. Lees de documentatie " "voor meer details\n" # src/client/main.cpp:791 #: src/client/main.cpp:894 msgid "stable" msgstr "stabiel" # src/client/main.cpp:791 #: src/client/main.cpp:894 msgid "unstable" msgstr "onstabiel" # src/client/main.cpp:940 #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s met succes beeindigd:\n" "\n" "Benodigde tijd:...%s\n" "Snelheid:..........%s/min\n" "Gegevens gecopieerd:....%s" # src/client/misc.cpp:367 #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "operatie aan het initialiseren. Even geduld..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" # src/client/misc.cpp:577 #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Partitie aan het wegschrijven naar image-bestand ..." # src/client/misc.cpp:693 #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "operation aan het initialiseren" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" # src/client/interface_base.cpp:256 #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Kan MBR Magic niet lezen: image-bestand is beschadigd" # src/client/interface_base.cpp:238 #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Kan hoofding niet lezen: image-bestand is beschadigd" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" # src/client/misc.cpp:1612 #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "ontbrekende inode" # src/client/misc.cpp:1612 #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "%s inode bestaat niet. Partimage kan hem voor u aanmaken. U kan ook de " "manuele opdracht mknod gebruiken. iWil u dat deze inode nu voor u aangemaakt " "wordt ?" # src/client/misc.cpp:1629 #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s is geen block device." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" # src/client/misc.cpp:1815 #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "De %s partitie is gemount. Partition Image kan niet werken op gemounte " "partities. Gelieve de partitie eerst te unmounten. Dit kan u doen met " "\"umount %s\"" # src/client/misc.cpp:1835 #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "De grootte van gesplitte volumes moet een geheel getal zijn groter dan 1024 " "(grootte >= 1024 KB)" # src/client/misc.cpp:1855 #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Ongeldige automount-opties. Lees de handleiding voor meer details" # src/client/misc.cpp:1863 #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" "Het tweede argument [%s] moet een geldig device zijn (bijv.: /dev/hda1)" # src/client/misc.cpp:1872 #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Het derde argument [%s] moet een geldig regulier bestand zijn (geen " "directory, of een symbolische link, ...)" # src/client/fs/fs_base.cpp:73 #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Verlaat partimage?" # src/client/fs/fs_base.cpp:73 #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Wil u de huidige operatie echt afbreken?" # src/client/fs/fs_base.cpp:345 src/client/fs/fs_base.cpp:357 #: src/client/fs/fs_base.cpp:346 #, fuzzy msgid "local check error" msgstr "locale CRC error" # src/client/fs/fs_base.cpp:346 #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Er is een positie-fout in CCheck. Gegevens kunnen beschadigd zijn. Wil u " "verder gaan?" # src/client/fs/fs_base.cpp:345 src/client/fs/fs_base.cpp:357 #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "locale CRC error" # src/client/fs/fs_base.cpp:346 #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Er is een positie-fout in CCheck. Gegevens kunnen beschadigd zijn. Wil u " "verder gaan?" # src/client/fs/fs_base.cpp:357 #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Er is een CRC fout opgetreden in CCheck. Gegevens kunnen beschadigd zijn. " "Wil u verder gaan?" # src/client/fs/fs_base.cpp:455 #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "partitie-eigenschappen aan het lezen" # src/client/fs/fs_base.cpp:467 #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "bestandssysteem aan het controleren met fsck" # src/client/fs/fs_base.cpp:489 #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "hoofding aan het schrijven" # src/client/fs/fs_base.cpp:546 src/client/fs/fs_base.cpp:681 #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "gebruikte data-blocks aan het copieren" # src/client/fs/fs_base.cpp:570 #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "partitie-inlichtingen aan het lezen" # src/client/fs/fs_base.cpp:706 #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Block-grootte....................%llu bytes\n" "Totaal aantal blocks............%llu\n" "Gebruikte aantal blocks.............%llu\n" "Vrije aantal blocks.............%llu\n" # src/client/fs/fs_base.cpp:720 #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sGebruik van schijfruimte:..................%llu %%\n" "Gebruikte schijfruimte....................%s\n" "Vrije schijfruimte....................%s\n" "Bitmap grootte...................%s\n" "Label.........................%s\n" # src/client/fs/fs_ext2.cpp:71 #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sAantal groepen..............%lu\n" "Eerste block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Ondersteuning grote bestanden...........%s\n" "Bestandssysteem-revisie..........%lu\n" # src/client/fs/fs_ext2.cpp:79 src/client/fs/fs_ext2.cpp:80 # src/client/fs/fs_ext2.cpp:81 #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "ja" # src/client/fs/fs_ext2.cpp:79 src/client/fs/fs_ext2.cpp:80 # src/client/fs/fs_ext2.cpp:81 #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "nee" # src/client/fs/fs_ext2.cpp:85 #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Ext3fs inlichtingen" # src/client/fs/fs_ext2.cpp:87 #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Ext2fs inlichtingen" # src/client/fs/fs_ext2.cpp:279 #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Er is een fout opgetreden bij het lezen van de bitmap" # src/client/fs/fs_fat.cpp:121 #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sSector-grootte...................%u\n" "Sectoren per cluster...........%u\n" "Aantal gereserveerde Sectoren........%u\n" "Root directory sectoren........%lu\n" "Aantal FAT tabellen..............%u\n" "Totaal aantal Sectoren...........%lu\n" "Sectoren per FAT...............%lu\n" "Aantal clusters:...............%lu\n" "Gebruikte clusters.................%lu\n" "Vrije clusters.................%lu\n" "Beschadigde clusters..............%lu\n" # src/client/fs/fs_fat.cpp:140 #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "FAT inlichtingen" # src/client/fs/fs_fat.cpp:286 #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Kan boot sector niet lezen" # src/client/fs/fs_fat.cpp:341 #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster kan niet nul zijn. Controleer of de partitie om weg te " "schrijven een FAT is." # src/client/fs/fs_fat.cpp:377 #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Kan FSInfo sector niet lezen" # src/client/fs/fs_ntfs.cpp:61 #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s is geen NTFS bestandssysteem partitie" # src/client/fs/fs_ntfs.cpp:134 #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Gebrek aan geheugen: heb %lu bytes nodig om bestands-record in te lezen in " "readBitmap()" # src/client/fs/fs_ntfs.cpp:184 #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "$Bitmap MFT record kan niet gelezen worden. Wil u een experimentele search " "ervoor uitvoeren? (Dit kan lang duren)" # src/client/fs/fs_ntfs.cpp:199 #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Kan de $bitmap niet vinden met experimentele search" # src/client/fs/fs_ntfs.cpp:211 #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Kan $bitmap bestands-record niet gebruiken" # src/client/fs/fs_ntfs.cpp:220 #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS $Bitmap is te klein" # src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Gebrek aan geheugen" # src/client/fs/fs_ntfs.cpp:308 #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "Grootte van bestands-record..............%lu\n" "LCN van MFT Data attrib........%llu\n" # src/client/fs/fs_ntfs.cpp:316 #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "NTFS inlichtingen" # src/client/fs/fs_ntfs.cpp:341 #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Gebrek aan geheugen: heb %lu bytes nodig om bestands-record in te lezen in " "readVolumeLabel()" # src/client/fs/fs_ntfs.cpp:444 #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: Attribute List\" attribuut is nog niet ondersteund." # src/client/fs/fs_ntfs.cpp:478 #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Compressie-vlag voor DATA attribuut niet nul: %ld" # src/client/fs/fs_ntfs.cpp:493 #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Resident data attribuut niet ondersteund" # src/client/fs/fs_ntfs.cpp:506 #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() gaf -1 terug" # src/client/fs/fs_ntfs.cpp:526 #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Fout in readFilenameAttribute" # src/client/fs/fs_ntfs.cpp:526 #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "Het \"bestandsnaam\"-attribuut moet resident zijn !" # src/client/fs/fs_ntfs.cpp:858 #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "$bitmap record search" # src/client/fs/fs_ntfs.cpp:858 #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "experimentele search gelukt" # src/client/fs/fs_hpfs.cpp:148 #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS versie:.................%d\n" # src/client/fs/fs_hpfs.cpp:152 #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "HPFS inlichtingen" # src/client/fs/fs_hpfs.cpp:176 #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Kan root block niet lezen" # src/client/fs/fs_hpfs.cpp:188 #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Kan super block niet lezen" # src/client/fs/fs_hpfs.cpp:200 #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Kan vrij block niet lezen" # src/client/fs/fs_hpfs.cpp:207 #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Ongeldige HPFS magic numbers. Geen geldige HPFS-partitie." # src/client/fs/fs_reiser.cpp:110 #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "ReiserFS inlichtingen" # src/client/fs/fs_jfs.cpp:566 #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "JFS inlichtingen" # src/client/fs/fs_xfs.cpp:210 #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sAllocation Groep teller:.......%lu\n" "Blocks per Allocation Groep...%lu\n" "Allocation Groep grootte:........%s\n" # src/client/fs/fs_xfs.cpp:217 #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "XFS inlichtingen" # src/server/partimaged.cpp:68 #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Aan het wachten ..." # src/server/partimaged.cpp:76 #: src/server/partimaged.cpp:85 msgid "error !" msgstr "error !" # src/server/partimaged.cpp:95 #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "zoek ruimte ..." # src/server/partimaged.cpp:109 #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "aan het schrijven..." # src/server/partimaged.cpp:136 #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "aan het openen voor schrijven ..." # src/server/partimaged.cpp:147 #: src/server/partimaged.cpp:157 msgid "saving" msgstr "aan het wegschrijven" # src/server/partimaged.cpp:152 #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "aan het lezen..." # src/server/partimaged.cpp:177 #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "aan het afsluiten ..." # src/server/partimaged.cpp:189 #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "aan het openen voor lezen ..." # src/server/partimaged.cpp:190 #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "aan het herstellen" # src/server/partimaged.cpp:366 #: src/server/partimaged.cpp:382 msgid "finished" msgstr "gedaan" # src/server/partimaged-gui_newt.cpp:51 #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" # src/server/partimaged-gui_newt.cpp:61 #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Client #" # src/server/partimaged-gui_newt.cpp:62 #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Toestand" # src/server/partimaged-gui_newt.cpp:63 #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Host" # src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Plaats" # src/server/partimaged-gui_newt.cpp:65 #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Grootte" # src/server/partimaged-gui_newt.cpp:87 #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "aan het wachten" # src/server/partimaged-main.cpp:102 #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Segmentatie-fout. Gelieve de bug te rapporteren en zend het bestand [%s] " "naar de makers\n" # src/server/partimaged-main.cpp:112 #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) versie %s\n" "---- verdeeld onder de GPL 2 licentie (GNU General Public License) ----\n" "\n" "gebruik: partimaged [options]\n" "\n" "Opties:\n" "* -h, --help toon hulp\n" "* -v, --version toon versie\n" "* -pX, --port=X server luistert op poort (default is %d)\n" "* -D, --daemon start in daemon mode, niet op de voorgrond\n" "* -r dir, --chroot dir gebruik chroot om beveiliging te bevorderen\n" "* -g, --debug=X zet het debug-niveau op X (default: 1)\n" "* -L, --nologin maak login van clients onmogelijk\n" # src/server/partimaged-main.cpp:143 #: src/server/partimaged-main.cpp:150 #, fuzzy, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Onmogelijk om logbestand %s te openen.\n" # src/server/partimaged-main.cpp:144 #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Herstel en probeer opnieuw.\n" # src/server/partimaged-main.cpp:158 #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "onmogelijk om gebruiker \"%s\" te vinden\n" # src/server/partimaged-main.cpp:159 #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "voeg het toe en probeer opnieuw\n" # src/server/partimaged-main.cpp:162 #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Waarschuwing: we konden euid niet veranderen omdat we niet als root " "opgestart zijn\n" "Verwacht geweigerde toegang of gelijkaardige problemen.\n" # src/server/partimaged-main.cpp:209 #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Daemon versie %s+SSL\n" # src/server/partimaged-main.cpp:211 #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Daemon versie %s\n" # src/server/partimaged-main.cpp:213 #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(verdeeld onder de GNU GPL 2)\n" # src/server/partimaged-main.cpp:335 #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Aan het wachten voor client ..." # src/server/partimaged-main.cpp:354 #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "te veel clients verbonden" # src/shared/common.cpp:75 #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: gebruikte compilatie-opties ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" # src/shared/common.cpp:76 #: src/shared/common.cpp:78 #, fuzzy msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Ondersteunde bestandssystemen:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "" # src/shared/common.cpp:81 #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Ext2fs ondersteuning: gebaseerd op libext2fs bibliotheek\n" # src/shared/common.cpp:83 #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Ext2fs ondersteuning: interne code\n" # src/shared/common.cpp:86 #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Debug-opties:\n" # src/shared/common.cpp:92 #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" # src/shared/common.cpp:95 #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" # src/shared/common.cpp:115 #: src/shared/common.cpp:98 #, fuzzy msgid " - DEVEL ENABLED\n" msgstr " - SSL ACTIEF\n" # src/shared/common.cpp:117 #: src/shared/common.cpp:100 #, fuzzy msgid " - DEVEL DISABLED\n" msgstr " - SSL NIET ACTIEF\n" # src/shared/common.cpp:98 #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" # src/shared/common.cpp:100 #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" # src/shared/common.cpp:100 #: src/shared/common.cpp:105 msgid "true" msgstr "waar" # src/shared/common.cpp:101 #: src/shared/common.cpp:106 msgid "false" msgstr "vals" # src/shared/common.cpp:104 #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Andere opties:\n" # src/shared/common.cpp:105 #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" # src/shared/common.cpp:108 #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - GEBRUIKERS MOETEN INLOGGEN\n" # src/shared/common.cpp:109 #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" # src/shared/common.cpp:111 #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - GEBRUIKERS NIET INLOGGEN\n" # src/shared/common.cpp:112 #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS niet gebruikt\n" # src/shared/common.cpp:115 #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ACTIEF\n" # src/shared/common.cpp:117 #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL NIET ACTIEF\n" # src/shared/common.cpp:120 #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ACTIEF\n" # src/shared/common.cpp:122 #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID NIET ACTIEF\n" # src/shared/common.cpp:249 #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld bytes" # src/shared/common.cpp:254 #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" # src/shared/common.cpp:259 #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" # src/shared/common.cpp:264 #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" # src/shared/common.cpp:269 #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" # src/client/gui_text.cpp:325 #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-bytes" # src/client/interface_base.cpp:596 #, fuzzy #~ msgid "mount: %s" #~ msgstr "Kan %s niet mounten" # src/client/gui_text.cpp:868 #~ msgid "Overwrite image ?" #~ msgstr "Image overschrijven?" # src/shared/common.cpp:89 #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" partimage-0.6.8/po/insert-header.sin0000644000000000000000000000124011252653200016050 0ustar rootroot# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } partimage-0.6.8/po/it.po0000644000000000000000000015272511252653200013576 0ustar rootroot# Italian messages for partimage. # Copyright (C) 2005 Free Software Foundation, Inc. # Marco Colombo , 2005. # Mauro Colorio, 2000. msgid "" msgstr "" "Project-Id-Version: partimage 0.6.4\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2005-02-02 10:19+0000\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Ripristina un MBR sul disco rigido" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "MBR originale da usare" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Cosa ripristinare:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "L'intero MBR" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Continua (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Esci (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Finestra principale (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "salva la partizione in un file immagine" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Livello di compressione" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opzioni" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Controlla la partizione prima di salvare" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Inserire descrizione" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Sovrascrivi senza chiedere" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "" #: src/client/gui_text.cpp:338 #, fuzzy msgid "Automatic split (when no space left)" msgstr "Automatico (quando non c'è più spazio)" #: src/client/gui_text.cpp:339 #, fuzzy msgid "Into files whose size is:............" msgstr "In file di questa grandezza" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, fuzzy, c-format msgid "Partition to save:...........%s" msgstr "La partizione era sul device:.....%s\n" #: src/client/gui_text.cpp:461 #, fuzzy, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "" "Grandezza della partizione orig.:.%llu byte = %s\n" "\n" #: src/client/gui_text.cpp:464 #, fuzzy, c-format msgid "Image file to create.........%s" msgstr "File immagine da creare....%s" #: src/client/gui_text.cpp:470 #, fuzzy, c-format msgid "Detected file system:........%s" msgstr "File system identificato:..%s" #: src/client/gui_text.cpp:476 #, fuzzy msgid "Compression level:...........None" msgstr "Livello di compressione:..........Nessuno\n" #: src/client/gui_text.cpp:479 #, fuzzy msgid "Compression level:...........gzip" msgstr "Livello di compressione:..........gzip" #: src/client/gui_text.cpp:482 #, fuzzy msgid "Compression level:...........bzip2" msgstr "Livello di compressione:..........bzip2" #: src/client/gui_text.cpp:485 #, fuzzy msgid "Compression level:...........lzo" msgstr "Livello di compressione:..........gzip" #: src/client/gui_text.cpp:539 #, fuzzy, c-format msgid "Time elapsed:................%s" msgstr "Immagine file corrente:....%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "" #: src/client/gui_text.cpp:547 #, fuzzy, c-format msgid "Speed:.......................%s/min" msgstr "Utilizzo dello spazio.........%lu %%\n" #: src/client/gui_text.cpp:550 #, fuzzy, c-format msgid "Data copied:.................%s / %s" msgstr "Partizione da salvare:.....%s" #: src/client/gui_text.cpp:582 #, fuzzy, c-format msgid "Current image file:..........%s" msgstr "Immagine file corrente:....%s" #: src/client/gui_text.cpp:587 #, fuzzy, c-format msgid "Image file size:.............%s" msgstr "Immagine da usare.................%s" #: src/client/gui_text.cpp:591 #, fuzzy, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Spazio disp. per immagine:.%s (%llu byte)" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 #, fuzzy msgid "restore partition from image file" msgstr "Ripristina una partizione da un file immagine esistente" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Cancella blocchi liberi con valore zero" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "Ripristina una partizione da un file immagine esistente" #: src/client/gui_text.cpp:667 #, fuzzy, c-format msgid "Partition to restore:.............%s" msgstr "Partizione da ripristinare:.......%s (%s = %llu byte )" #: src/client/gui_text.cpp:670 #, fuzzy, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Partizione da ripristinare:.......%s (%s = %llu byte )" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Immagine da usare.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "File system:......................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "La partizione era sul device:.....%s\n" #: src/client/gui_text.cpp:684 #, fuzzy, c-format msgid "Image created on:.................%s\n" msgstr "Immagine creata il:...............%.4d/%.2d/%.2d\n" #: src/client/gui_text.cpp:687 #, fuzzy, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "" "Grandezza della partizione orig.:.%llu byte = %s\n" "\n" #: src/client/gui_text.cpp:754 #, fuzzy, c-format msgid "Time elapsed:.....................%s" msgstr "File system:......................%s" #: src/client/gui_text.cpp:757 #, fuzzy, c-format msgid "Estimated time remaining:.........%s" msgstr "File immagine da creare....%s" #: src/client/gui_text.cpp:762 #, fuzzy, c-format msgid "Speed:............................%s/min" msgstr "Utilizzo dello spazio.........%lu %%\n" #: src/client/gui_text.cpp:765 #, fuzzy, c-format msgid "Data copied:......................%s / %s" msgstr "Partizione da salvare:.....%s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Immagine file corrente:...........%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Livello di compressione:..........Nessuno\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Livello di compressione:..........gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Livello di compressione:..........bzip2" #: src/client/gui_text.cpp:813 #, fuzzy msgid "Compression level:................lzo" msgstr "Livello di compressione:..........gzip" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Cambia" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Annulla" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Inserire il nuovo nome del file" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Sovrascrivere immagine?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Sovrascrivi" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Riprova" #: src/client/gui_text.cpp:921 #, fuzzy, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "Impossibile scrivere il prossimo file di volume (%s.%.3d) nella directory\n" "%s.\n" "Inserire un'altra directory (senza il nome del file):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "percorso sbagliato" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, fuzzy, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "Impossibile leggere il file bitmap" #: src/client/imagefile.cpp:1010 #, fuzzy msgid "Enter another full path (directory & name)" msgstr "" "Impossibile leggere il file volume seguente:\n" "%s\n" "Inserire un altro percorso completo (directory e nome)." #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume non trovato" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "" #: src/client/imginfo.cpp:50 #, fuzzy msgid "No description" msgstr "Inserire descrizione" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "nessuno" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "sconosciuto" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Il file immagine \"%s\" non è stato trovato" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Impossibile leggere il file immagine" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informazioni sull'immagine" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Errore" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Informazioni su Partition Image %s" #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image viene distribuito sotto la GNU GPL 2 (General Public " "License)\n" "\n" "web: http://www.partimage.org/\n" "Autore: Francois Dupoux\n" "Contatto: fdupoux@partimage.org" #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Impossibile scrivere il blocco %ld nell'immagine" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Impossibile scrivere %s nell'immagine" #: src/client/interface_base.cpp:69 #, fuzzy, c-format msgid "Can't write bitmap block %ld to image" msgstr "Impossibile scrivere il blocco bitmap %ld (%ld) to image. (%s)\n" #: src/client/interface_base.cpp:73 #, fuzzy, c-format msgid "Can't read bitmap block %ld from image" msgstr "Impossibile leggere il blocco dati %ld dal file immagine" #: src/client/interface_base.cpp:77 #, fuzzy, c-format msgid "Can't write block %ld to harddrive" msgstr "Impossibile scrivere il blocco %ld nell'immagine. (%s)" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Impossibile leggere il blocco %ld dall'immagine (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Impossibile leggere %s dall'immagine" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Impossibile leggere il super blocco" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Impossibile scrivere il super blocco" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Impossibile leggere il blocco %ld dalla partizione del disco" #: src/client/interface_base.cpp:101 #, fuzzy, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Impossibile leggere il blocco %ld dall'immagine (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Impossibile scrivere l'MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Impossibile leggere l'MBR" #: src/client/interface_base.cpp:118 #, fuzzy, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Non è una partizione %s. Controllare il tipo di file system" #: src/client/interface_base.cpp:124 #, fuzzy msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "La partizione è stata salvata con una nuova versione di Partition Image.\n" "Scaricare l'ultima versione." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Errore scrivendo il file immagine: disco pieno !" #: src/client/interface_base.cpp:137 #, fuzzy, c-format msgid "Can't detect file system of partition %s" msgstr "" "Impossibile trovare il file system per la partizione %s, o file system " "sconosciuto (%s)" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Impossibile scrivere l'header principale" #: src/client/interface_base.cpp:149 #, fuzzy msgid "Can't write main tail" msgstr "Impossibile scrivere l'header principale" #: src/client/interface_base.cpp:155 #, fuzzy msgid "Can't read main tail" msgstr "Impossibile leggere l'header principale" #: src/client/interface_base.cpp:161 #, fuzzy msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "La partizione è stata salvata con una nuova versione di Partition Image.\n" "Scaricare l'ultima versione." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "" #: src/client/interface_base.cpp:182 #, fuzzy, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "La partizione è troppo piccola per essere ripristinata:\n" "Dimensione partizione originale.%llu byte \n" "Dimensione partizione destinaz..%llu byte" #: src/client/interface_base.cpp:190 #, fuzzy, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "C'è stato un errore durante il recupero della partizione:\n" "L'immagine era modificata, o c'era un errore. CRC64 sono differenti:\n" "CRC64 originale: %llu\n" "CRC64 attuale: %llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Numero di volume non valido (%ld invece di %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Errore in chiusura" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Impossibile aprire la partizione %s" #: src/client/interface_base.cpp:232 #, fuzzy, c-format msgid "Can't lock partition %s" msgstr "Impossibile aprire la partizione %s. (%s)" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Impossibile leggere l'header principale: file immagine danneggiato" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Impossibile scrivere le informazioni" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Impossibile leggere le informazioni" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "Bug conosciuto" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Attenzione" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Non si è collegati come root. Si potrà ottenere un errore di\n" "\"accesso negato\"." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nuovo volume" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Il volume è stato cambiato.\n" "Vecchio: %s\n" "Nuovo: %s/%s.%.3ld\n" "Premere Invio per continuare" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Conferma" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Vuoi veramente ripristinare %s dal file immagine %s?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "Trovati %s errori nel file system." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Il supporto %s corrente è sperimentale!" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "Il supporto %s corrente è beta!" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Successo" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Errore: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Il file immagine %s esiste già. Si vuole sovrascriverlo?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Accesso negato" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Non si hanno i diritti di scrittura su %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Livello di compressione non valido per %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Memoria esaurita." #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Impossibile leggere l'MBR dal disco" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "File system %s non valido o danneggiato" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Il file immagine è stato creato con una nuova versione di Partition Image (%" "s).\n" "Aggiornare questo software e riporvare." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s non è un file valido di Partition Image o è danneggiato. Impossibile " "continuare" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Impossibile montare %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Impossibile smontare %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Errore sconosciuto %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Continua" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Si" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "No" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partizione da salvare/ripristinare" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* File immagine da creare/usare" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Azione da eseguire:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Salva la partizione in un nuovo vile immagine" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Ripristina una partizione da un file immagine" #: src/client/interface_newt.cpp:220 #, fuzzy msgid "Restore an MBR from the imagefile" msgstr "Ripristina una partizione da un file immagine esistente" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Porta:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Successivo (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Info" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "Il campo \"Immagine\" è vuoto. Impossibile continuare" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "Il campo \"Server IP/Name\" è vuoto. Impossibile continuare" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "Il campo \"Server Port\" è vuoto. Impossibile continuare" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Descrizione partizione" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "È possibile inserire una descrizione della partizione salvata:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Il testo non pu essere nullo" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "" #: src/client/interface_newt.cpp:468 #, fuzzy, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Impossibile scrivere il prossimo file di volume (%s.%.3d) nella directory\n" "%s.\n" "Inserire un'altra directory (senza il nome del file):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Nuova posizione del volume" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "" "La modalità di compressione deve essere 0 (nessuna), 1 (gzip) o 2 (bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "La modalità di terminazione deve essere 0 (aspetta), 1 (arresta), 2 " "(riavvia) o 3 (esci)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Grandezza volume: %ld byte (%ld KB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image vversione %s (distribuito sotto la GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Impossibile aprire il file di debug.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulazione" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operazione" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" #: src/client/main.cpp:894 msgid "stable" msgstr "stabile" #: src/client/main.cpp:894 msgid "unstable" msgstr "instabile" #: src/client/main.cpp:1050 #, fuzzy, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "Immagine file corrente:....%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "Inizializzazione dell'operazione. Attendere prego..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Salva la partizione nel file imagine..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "Inizializzazione dell'operazione" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Impossibile leggere l'header principale" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Impossibile leggere l'header principale" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inode mancante" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s non è un dispositivo a blocchi." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "La partizione %s è montata. Partition Image non può lavorare su partizioni\n" "montate. Smontarla con \"umount %s\"" #: src/client/misc.cpp:1908 #, fuzzy msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "La grandezza dei volumi divisi deve essere maggiore di 1024 (dim. >=1024 " "KB)\n" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Uscire da partimage?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Si vuole veramente annullare l'operazione corrente?" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "lettura proprietà partizione" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "controllo del file system con fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "scrittura header" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "copia dei blocchi data usati" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "lettura informazioni partizione" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "sì" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "no" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informazioni Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informazioni Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Informazioni FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Impossibile leggere il settore di avvio" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster non pu essere nullo. Controllare che la partizione da s " "salvare sia FAT." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s non è una partizione con file system NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Memoria esaurita: necessari %lu byte per leggere il file record in readBitmap" "()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Impossibile leggere il record MTF dalla $Bitmap. Si vuole fare una ricerca \n" "sperimentale? (può prendere molto tempo)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Impossibile trovare la $bitmap con la ricerca sperimentale" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Impossibile usare il $bitmap file record" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "La $Bitmap NTFS è troppo piccola" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Memoria esaurita" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Informazioni NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Memoria esaurita: necesari %lu byte per leffere il file record in " "readVolumeLabel()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: l'attributo \"Lista Attributi\" non è ancora supportato." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: flag di compressione per l'attributo DATA non nullo: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: attributo resident data non supportato" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() ha restituito -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Errore in readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "L'attributo \"filename\" dev'essere residente!" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "$bitmap cerca record" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "ricerca sperimentale con successo" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "Informazioni HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Impossibile leggere il settore di avvio" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Impossibile leggere il superblocco" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "" #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Informazioni ReiserFS " #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Informazioni JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Informazioni XFS" # FIXME UPSTREAM #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "In attesa..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "errore!" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "" # FIXME UPSTREAM #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "" #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "" #: src/server/partimaged.cpp:157 msgid "saving" msgstr "" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "" #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "" #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "" #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Stato" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Host" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Posizione" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Dimensione" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distribuito sotto la GNU GPL2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "" #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: opzioni di compilazione usate ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" "\n" "* Versione %s [%s].\n" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* File system gestiti:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr "" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr "" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr "" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr "" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr "" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr "" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr "" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr "" #: src/shared/common.cpp:105 msgid "true" msgstr "" #: src/shared/common.cpp:106 msgid "false" msgstr "" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Altre opzioni:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr "" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr "" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr "" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr "" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr "" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr "" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr "" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld byte" #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" partimage-0.6.8/po/pl.gmo0000644000000000000000000004375211252653754013756 0ustar rootrootÞ• ß ˜ '™ 'Á Pé Ë:ƒŠ £ ±Ò$â,(4]u+¦Ò9è&"-I$wœ³-Ëù+!Me%|¢ÁÚò‚#¦½Äâ'ô'&D%k!‘"³!Ö ø  &4$T$y)žÈè9*?j|"²¸]Ç+% Q [ey$ž‘ÃUZ%tšº$Úÿ%# I+j– §² Á Í-î &. BPA_ ¡«¼=Õ$8%X(~§¬³Ó Ùä2ô1',Y1†#¸(Ü< +J!v(˜àÁᢠ#„!¨!6"JN#G™#á#\a$M¾$ %+%F%×%$÷%=&Z&xk&ä&é&''M '9n'!¨'=Ê'@(I(f(9w(±(´(!¹(Û(Fø(?) G)R)=V)+”*(À*Xé*ËB+†,•,ª,*¹,ä,)ü,,&-+S- - -¿-8Þ-.H5.2~.-±.*ß. /*/@H/!‰/«/5Â/ø/0240%g00#ª0 Î0ï01• 1£1Ã1É1è1&ù1& 2%G2$m2!’2!´2 Ö2÷2 3%343$T3$y3)ž3 È3é344584 n4|4#–4º4¿4dÖ4.;5j5 s5~55¢5$±5‘Ö5h7o7%Š7°7$Ð7$õ78/8+E8#q8(•8¾8 Ï8 Ü8ç8'ø83 9T9]9"c9 †9 “9J 9ë9ñ9:@:$Z:#:%£:1É:û: ; ; *; 6;@;*O;1z;(¬;1Õ;#<(+<T<4[<< ¯=*Ð=ñû=í>)ô?‚@¡@L°ALýAŽJBTÙBT.CƒC%ŒC²C!@D$bDF‡DÎDwæD^E!eE ‡E “ET¡E8öE"/F6RFQ‰FÛFûF,G@GDGJGjGFŠGÑG ÚGæGL\-e2p}†CrnS{•M‡_j”›odhk€6@)u;tNKbY8‘0–Œc#&ŽB(z‹ ˆš g>=H5"7ms]Uq/`~y‰GO%RJœw3—T ^…<„Z?l˜:!9žD*v P 1$fŠ EXŸFx“’™.[' AW,+VƒiaIQ‚4|%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu -------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s About Partition Image %sAccess deniedAction canceled as user requiredAutomatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesCan't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileChangeCheck partition before savingCompression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoConfirmationContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk with the MBR to restoreDo you really want to restore %s from the image file %s ?Enter another full path (directory & name)Enter descriptionEnter new filenameErase free blocks with zero valuesErrorError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sExit (F6)Ext2fs informationsExt3fs informationsFAT informationsFile system:......................%sFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s HaltIf finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeInto files whose size is:............Invalid compression level for %sInvalid volume number (%ld instead of %ld).Main window (F7)New VolumeNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()OverwriteOverwrite image?Overwrite without promptPartition Image version %s (distributed under the GNU GPL2). Partition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Please, press "ok" to mount [%s] on [%s]QuitRebootRestore an MBR to the hard diskRetrySimulationSimulation modeSimulation of the restoration (nothing is written)Size of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSuccessThe %s imagefile already exist. Do you want to overwrite it?The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR was successfully restoredThe current %s support is experimental !The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluTime elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWarningWhat to restore:You are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou don't have write access on %sfile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerimagefile %s is already openimagefile lockedmagic string does not match: error in the image file [%s]nononerestore partition from image filesave partition to image filethe current volume doesn't fit with current image: wrong identificatorunknownwrong pathyesProject-Id-Version: Partimage Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2001-08-12 18:51+0100 Last-Translator: Marek L. Kozak Language-Team: Polonais MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit %s nie jest poprawn± partycj± pliku obrazu.%s nie jest partycj± systemu plików NTFS%s nie jest pierwszym woluminem obrazu. Proszê spróbowaæ ponownie z numerem woluminu 000%sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu -------------------- MBR %.3d ------------------- Urz±dzenie:............%s Liczba bloków urz±dzenia:.%llu Model urz±dzenia:......%s O Partition Image %sOdmowa dostêpuOperacja anulowana na ¿yczenie u¿ytkownikaAutomatyczne montowanieAutomatyczne dzielenie (gdy brak miejsca)Dostêpne miejsce dla obrazu:.%s = %llu bytesNie mo¿na wykryæ systemu plików partycji %sNie mo¿na zablokowaæ partycji %sNie mo¿na otworzyæ partycji %sNie mo¿na odczytaæ %s z obrazuNie mo¿na odczytaæ MBR Magic: plik obrazu by³ uszkodzonyNie mo¿na odczytaæ SuperBlokuNie mo¿na odczytaæ bloku mapy bitowej %ld z partycji (%s) twardego dyskuNie mo¿na odczytaæ bloku mapy bitowej %ld z obrazuNie mo¿na odczytaæ bloku %ld z twardego dyskuNie mo¿na odczytaæ bloku %ld z obrazu (%d)Nie mo¿na odczytaæ boot sektoraNie mo¿na odczytaæ informacjiNie mo¿na odczytaæ g³ównego nag³ówka: plik obrazu by³ uszkodzonyNie mo¿na odczytaæ g³ównego ci±guNie mo¿na czytaæ z MBRNie mo¿na odczytaæ nastêpuj±cej nazwy woluminu: %s %sNie mo¿na zapisaæ %s do obrazuNie mo¿na zapisaæ SuperBlokuNie mo¿na zapisaæ bloku mapy bitowej %ld do obrazuNie mo¿na zapisaæ bloku %ld do obrazuNie mo¿na zapisaæ informacjiNie mo¿na zapisaæ g³ównego nag³ówkaNie mo¿na zapisaæ g³ównego ci±guNie mo¿na pisaæ do MBRAnulujNie mo¿na odczytaæ "/proc/partitions" (%s). Zatem musisz u¿yæ linii poleceñ, by uruchomiæ Partition Image. Wpisz "partimage --help" by uzyskaæ pomoc.Nie mozna odczytaæ pliku obrazuZmieñSprawd¼ partycjê przed zapisemPoziom kompresjiPoziom kompresji:...............¯aden Poziom kompresji:................bzip2Poziom kompresji:................gzipPoziom kompresji:................lzoPoziom kompresji:...........¯adenPoziom kompresji:...........bzip2Poziom kompresji:...........gzipPoziom kompresji:...........lzoPotwierdzenieKontynuuj (F5)Bie¿±cy plik obrazu:.........%sBierz±cy obraz pliku:.............%sSkopiowane dane:.............%s / %sDane skopiowane:..................%s / %sWykryty system plików:........%sDysk z MBR do odtworzeniaCzy naprawdê chcesz odtworzyæ %s z pliku obrazu %s ?Wprowad¼ inn± pe³n± ¶cie¿kê dostêpu (katalog + nazwa)Wprowad¼ opisWprowad¼ now± nazwê plikuWyczyszczenie wolnych bloków zeramiB³±dB³±d podczas zamykaniaB³±d podczas sprawdzania danych: Niepoprawny numer bloku. Wolumin lub inne dane mog³y byæ pominiête.B³±d podczas zapisu pliku obrazu: pe³ny dysk !B³±d: %sWyjd¼ (F6)Informacje ext2fsInformacje ext3fsInformacje FATSystem plików:....................%sSystem plików:.........%s Opis:..................%s Originalne urz±dzenie:.%s Originalna ¶cie¿ka:... %s Flagi:.................%ld: %s Data utworzenia:.......%sRozmiar partycji:......%s Nazwa hosta:...........%s Wersja Kompatybilna:...%s Algorytm szyfrowania:..%ld -> %s Liczba zapisanych MBR:.%lu System zabezpieczeñ.: - maszyna:.............%s - system operacyjny:...%s - wydanie:.............%s Wy³±czJe¶li zakoñczono sukcesem:Obraz utworzony:..................%s Rozmiar pliku obrazu:........%sPlik obrazu do utworzenia.........%sPlik obrazu, który ma byæ u¿yty:..%sInformacje o obrazieTryb dzielenia obrazuDo plików których rozmiar jest:............Niepoprawny poziom kompresji dla %sB³êdny numer woluminu (%ld zamiast %ld).Okno g³ówne (F7)Nowy woluminBrak opisuFlagi nieaktywne¯aden (bardzo szybki + bardzo du¿y plikTo nie jest partycja %s. Sprawd¼ typ systemu plikówOperacjaOpcjeOryginalny MBR, który bêdzie u¿ytyBrak pamiêciBrak pamiêciBrak pamiêci: potrzeba %lu bajtów do odczytania pliku zapisu w readBitma()Zama¿Zamazaæ obraz ?Zama¿ bez powiadomieniaPartition Image wersja %s (distrybuowany na licencji GNU GPL2). Partycja do odtworzenia:..........%sPartycja do zapisania:...........%sPartycja by³a na urz±dzeniu:......%s Proszê, nacisn±æ "ok" aby zamontowaæ [%s] na [%s]Opu¶æPrze³adujOdtworzenie MBR na twardy dyskPonów próbêSymulacjaTryb symulacjiSymulacja odtworzenia (bez ¿adnego zapisu)Rozmiar partycji do odtworzenia:..%s = %llu bytesRozmiar partycji:.......%s = %llu bajtówRozmiar oryginalnej partycji:.....%s = %llu bytesPrêdko¶æ:....................%s/minPrêdko¶æ:.........................%s/minSukcesPlik obrazu %s ju¿ istnieje. Czy chcesz go zamazaæ ?MBR jest bardzo wa¿nymi danymi na twardym dysku. Je¶li zapiszesz z³y MBR, stracisz wszystkie partycje na twardym dysku. Nie kontynuuj, chyba ¿e wiesz co robisz. Nici¶nij 'Kontynuuj' by otworzyæ. Urz±dzenie z MBR do ogtworzenia:....%s [%llu] Originalny MBR:.....................%s [%llu]MBR by³ odtworzony z powodzeniemBie¿±ce %s wsparcie jest eksperymentalne !Nastêpuj±cy obraz pliku ju¿ istnieje. Czy chcesz zamazaæ czy zmieniæ nazwê pliku obrazu ? Plik: %s Aby zmieniæ nazwê pliku, proszê wprowadziæ pe³n± ¶cie¿kê dostêpu (lokalizacja + nazwa pliku) bez numeru woluminu na koñcu, i naci¶nij "Zmieñ"Nastêpuj±cy plik obrazu jest zablokowany. Czy chcesz zaczekaæ i ponowiæ próbê czy zmieniæ nazwê pliku obrazu ? Plik: %s Aby zmieniæ nazwê pliku, proszê wprowadziæ pe³n± ¶cie¿kê dostêpu (lokalizacja + nazwa pliku) bez numeru woluminu na koñcu, i naci¶nij "Zmieñ"Plik obrazu "%s" nie mo¿e byæ odnalezionyObraz który próbujesz odtworzyæ by³ zaszyfrowany. Obecna wersja nie wspiera szyfrowania. Proszê ¶ci±gn±æ ostatni± wersjê programu.Oryginalny twardy dysk nie mie¶ci siê na bie¿±cym twardym dysku. MBR który próbujesz u¿yæ by³ zapisany na innym twardym dysku. Oznacza to, ¿e oryginalny i bie¿±cy twardy dysk nie maj± tego samego rozmiaru lub s± na innych urz±dzeniach (%s i %s). Czy chcesz kontynuowaæ ?Partycja %s jest ju¿ zablokowana przez inny proces. Nie mo¿na z ni± pracowaæPartycja %s jest ju¿ zablokowana przez inny proces. Nie mo¿na z ni± pracowaæPartycja jest zbyt ma³a by mog³a byæ odtworzona: Originalny rozmiar partycji:........%llu bytes Docelowy rozmiar partycji:..........%llu bytesPartycja by³a zapisana nowsz± wersj± Partion Image. Proszê ¶ci±gn±æ ostatni± wersjê.Wolumin zosta³ zmieniony. Stary: %s Nowy: %s/%s.%.3ld Naci¶nij Enter aby kontynuowaæCa³y MBRWyst±pi³ b³±d podczas odczytu bitmapyWyst±pi³ b³±d podczas odtwarzania partycji: CRC64 s± ró¿ne, obraz pliku by³ uszkodzony: Originalne CRC64:.....%llu Bierz±ce CRC64:.......%lluPozosta³y czas:................%sCzas miniony:.....................%sZbyt wielu klientów po³±czonych z partimaged. Proszê spróbowaæ pó¼niejWolumin nie odnalezionyNumer woluminu:........%lu Rozmiar woluminu:......%s Poziom kompresji: ....%ld -> %s Identifikator:.........%llu=%llX CzekajCzekaj po ka¿dej zmianie woluminuOstrze¿enieCo odtworzyæ:Nie jeste¶ zalogowany jako root. Podczas pracy mog± pojawiæ siê b³êdy "brak dostêpu"U¿ywasz trybu symulacji: nie bêdzie wykonany ¿aden zapisNie masz uprawnieñ do zapisu na %splik %s nie jest plikiem partimage: ci±g ID nie pasujeplik %s jest zbyt krótki aby by³ woluminem partimage: nie mo¿na odczytaæ nag³ówkaplik obrazu %s jest ju¿ otwartyplik obrazu zablokowanyCi±g ID nie pasuje: b³±d w pliku obrazu [%s]nie¿adenodtwórz partycjê z pliku obrazuzapisz partycjê do pliku obrazubierz±cy wolumin nie mie¶ci siê w bierz±cym obrazie: z³y identyfikatornieznanyz³a ¶cie¿katakpartimage-0.6.8/po/eu.gmo0000644000000000000000000003174311256751453013750 0ustar rootrootÞ••ÄÇl ˆ '‰ ± Ì è î   6 I $Y ,~ !« (Í ö '@V-nœ+¯Ûó )BZnu‚…18V'h'&¸%ß!"'!J l 𬠵Ã$ã$#)Hr’*¯Úìÿ"$GM \(f!$± Öà$ñ%5[{$›ÀÓ2ä 8 IT hru „¥ ¨²ºÎ ÝçøÜî$)I([„Š–¶%¼ âí2ý10,b1#Á(åàá÷#Ùý }‹$«Ðçxøqv”œ­3±åþ**Uewz!¡.¾íôü b#,†'³%Û   ' 2: m ‡ +œ 1È "ú 1!O!j! ˆ!©!Ç!?ç!'"'>"f"€""œ"¿"Ý"ü"##-#Ë#ë#$" $-$/=$$m$ ’$³$'Ñ$"ù$ % =% ^%j%…% Ž%(œ%)Å%ï%+ &,8&&e&(Œ&0µ&æ&ü&','-A'o'w' Š'6•''Ì'(ô' ((($<(a(h(0‚('³(*Û(3):)W)9p)&ª)Ñ)ä)ó) ****2*]* `*j*!r*”* ¥*°*Ã*ãÛ*¿+-Ù+%,-,-@,n,v,|,„, ¤,*¯, Ú,å,*õ,B -(c-1Œ-"¾-!á- .ì .ú.#020Ã0Ì0!ë0 1'1•;1Ñ1,Ù12 2'26+2#b2†2 2*¶2á2ò23 3*3$<38a3 š3 ¤3 ®3º3Ë3ß3p'‚E„: _f‡ ^-wr5ex`;9?+mciŒ&6†y 0…4noBQ<%vH>‹ ]}zCA$“”JPLV’tI3kuaR €N*.b82Zs•ƒ‰@K1h=#7[‘DWdgYˆ{Š,T jF/U|\XlG(SO!)~"qŽM%s is not a valid partition image file.* Image file to create/use* Partition to save/restoreAboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesCRC changed: the image is damagedCan't detect file system of partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read SuperBlockCan't read informationsCan't read main header: imagefile was damagedCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write block %ld to imageCan't write informationsCan't write main headerCan't write the MBRCancelCannot mount %sCannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sChangeCheck partition before savingCompression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoConfirmationConnect to serverContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sDEBUG: reboot the computerData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk with the MBR to restoreEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError on closeError: %sError: Cannot count remaining partimagesError: Cannot reboot the computerEstimated time remaining:.........%sExit (F6)Exit partimage ?File system:......................%sHaltIf finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to read the magic: the image is damagedInvalid compression level for %sMain window (F7)New VolumeNew Volume locationNext (F5)NoNo descriptionNone (very fast + very big file)OkOperationOptionsOriginal MBR to useOut of memory.OverwriteOverwrite image?Overwrite without promptPartition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition descriptionPartition to restore:.............%sPartition to save:...........%sPassword requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootRestore an MBR to the hard diskRetrySaving partition to the image file...SimulationSimulation modeSimulation of the restoration (nothing is written)Size of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSuccessThe following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe whole MBRTime elapsed:................%sTime elapsed:.....................%sUnknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWarningWhat to restore:YesYou can enter a description of the saved partition:copying used data blocksimagefile lockedinitializing the operationinitializing the operation. Please wait...local CRC errorlocal check errornononerestore partition from image filesave partition to image filesimulate partition restoration from image filestableunknownunstablewriting headerwrong pathyesProject-Id-Version: Partimage Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2007-03-28 18:52+0100 Last-Translator: Language-Team: David García-Abad MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Generator: KBabel 0.8 X-Poedit-Language: Basque X-Poedit-Country: SPAIN %s ez da partizio irudi artxibo baliozko bat*Sortu/erabili beharreko irudi artxiboa*Gorde/berrezarri behar den partizioaHoni buruzPartition Image-i buruz %sAtzipena debekatuaEragiketa kantzelatua erabiltzaileak eskatu bezalaEgin beharreko eragiketa:Automatikoki muntatuBanaketa automatikoa (lekurik ez dagoenean)Irudirako libre dagoen lekua:.....%s = %llu bytesCRC aldatua: irudia hondatuta dagoEzin da detektatu %s partizioaren artxibo sistemaEzin da %s partizioa irekiEzin da %s irakurri iruditikEzin da FSInfo sektorea irakurriEzin da Super Blokea irakurriEzin dira informazioak irakurriEzin da irakurri goiburu nagusia: irudi artxiboa hondatuta dagoEzin da MBR-a irakurriEzin da ondoko bolumena irakurri: %s %sEzin da %s idatzi irudiraEzin da Super Blokea idatziEzin da %ld blokea irudira idatziEzin dira informazioak idatziEzin da goiburu nagusia idatziEzin da MBR-a idatziEzeztatuEzin da %s muntatuEzin da "/proc/partitions" (%s) irakurri. Beraz, komando lerroa erabili behar duzu Partition Image exekutatzeko. Idatzi "partimage --help" laguntza ikusteko.Ezin da irudi artxiboa irakurriEzin da %s desmuntatuAldaketaEgiaztatu partizioa gorde aurretikKonpresio mailaKonpresio maila:....................Bat ere ez Konpresio maila:...............bzip2Konpresio maila:............gzipKonpresio maila:..........IzoKonpresio maila:.............Bat ere ezKonpresio maila:.............bzip2Konpresio maila:............gzipKonpresio maila:.............IzoBaieztapenaKonektatu zerbitzariarekinJarraitu(F5) JarraituErabilitako irudi artxiboa:...........%sErabilitako irudi artxiboa:............%sDEBUG: berrasi konputagailuaKopiatutako datuak:.................%s / %sKopiatutako datuak:..................%s / %sDetektatutako artxibo sistema:......%sBerrezarri beharreko MBR-a daukan diskoaBeste path oso bat sartu (direktorioa eta izena)Sartu deskribapen batSartu artxiboaren izen berriaSartu zure loginaSartu zure pasahitzaEzabatu libre dauden blokeak zero balioekin.ErroreaErrorea ixterakoanErrorea:%sErrorea: ezin dira zenbatu gelditzen diren partimageakErrorrea: Ezin da konputagailua berrasiFalta den denbora (estimatua).........%s(F6) IrtenPartimagetik irten?Artxibo sistema:..................%sItzaliArrakastaz bukatzen bada:Noiz sortu den irudia:......................%s Irudi artxiboaren tamaina:...........%sSortu beharreko irdudi artxiboa.........%sErabili beharreko irudi artxiboa.................%sIrudiari buruko informazioakIrudi zatikatuaren moduaEzin da "magic"-a irakurri: irudi artxiboa hondatuta dagoKonpresio maila ez baliozkoa %s -rako(F7) Leiho nagusiaBolumen berriaBolumenaren kokapen berria(F5)HurrengoaEzDeskribapenik gabeBat ere ez (oso arin + oso artxibo handia)OKErakigetaAukerakErabili beharreko jatorrizko MBRaMemoriatik kanpoGainidatziIrudia gainidatzi?Gainidatzi galdetu gabePartition Image GNU GPL2 lizentziaren pean banatzen da ( General Public License) bertsioa:....%s web:.........http://www.partimage.org/ Egileak: Fran?is Dupoux Franck Ladurelle Partizioaren deskribapenaBerrezarri beharreko partizioa:............%sGorde beharreko partizioa:.........%sPasahitza behar daMesedez "ok" sakatu [%s] [%s] -n montatzekoPortua:IrtenBerrasiBerrezarri MBRa disko gogorreraErrepikatuPartizoa irudi artxibo batera gordetzen...SimulazioaSimulazio moduaBerrezarpenaren simulazioa (ez da idazten)Berrezarri beharreko partizioaren tamaina:..........%s = %llu bytePartizioaren tamaina:.......%s=%llu byteJatorrizko partizoaren tamaina:...%s = %llu bytesAbiadura:...................%s/minAbiadura:..................%s/minArrakastaIrudi artxiboa jada existitzen da Gainidatzi edo izena aldatu nahi duzu? Artxiboa: %s Artxiboaren izena aldatzeko, mesedez erabili path osoa (kokapena + artxiboaren izena) bukaeran bolumenaren zenbakia jarri gabe, eta sakatu "Aldaketa"Ondoko irudi artxiboa blokeatuta dago. Itxaron eta berriro saiatu edo irudi artxiboaren izena aldatu nahi duzu ? Artxiboa:%s Artxiboaren izena aldatzeko, mesedez erabili path osoa (kokapena + artxiboaren izena) bukaeran bolumenaren zenbakia jarri gabe, eta sakatu "Aldaketa""%s" irudi artxiboa ezin da aurkituPartizioa oso txikia da berrezarria izateko: Jatorrizko partizioaren tamaina:...........%llu byte Helburu partizoaren tamaina:.........%llu byteMBR osoaIragandako denbora:.........%sIragandako denbora:............%sErrore ezezaguna %d -> %sBolumen ez aurkituaBolumenaren zenbakia:.........%lu Bolumenaren tamaina:.........%s Konpresio maila:...........%ld -> %s Identifikatzailea:.................%llu=%llX ItxaronItxaron bolumen aldaketa bakoitzaren ondorenKontuzZer nahi duzu berrezarri:BaiIdatzi dezakezu gordetako partizoaren deskribapen bat:erabilitako datu blokeak kopiatzenIrudi artxiboa blokeatutaeragiketa hasieratzeneragiketa hasieratzen. Itxaron, mesedez...CRC akats lokalaCRC akats lokalaezBat ere ezBerrezarri partizioa irudi artxibo batetikGorde partizioa irudi artxibo bateraSimulatu partizioaren berrezarpena irudi artxibo batetikEgonkorraezezagunaEzegonkorraGoiburua idaztenartxibo-bide okerrabaipartimage-0.6.8/po/ChangeLog0000644000000000000000000000435211252653200014364 0ustar rootroot2005-07-11 - Updated po files * Ran make update-po. 2005-05-21 - gettextize * Makefile.in.in: New file, from gettext-0.14.1. * Rules-quot: New file, from gettext-0.14.1. * boldquot.sed: New file, from gettext-0.14.1. * en@boldquot.header: New file, from gettext-0.14.1. * en@quot.header: New file, from gettext-0.14.1. * insert-header.sin: New file, from gettext-0.14.1. * quot.sed: New file, from gettext-0.14.1. * remove-potcdate.sin: New file, from gettext-0.14.1. 2005-02-03 - Italian translation updated 2004-02-09 - Danish and Finnish translations updated 2003-10-21 - Danish and French translations updated * translations updated from 0.6.3-beta12. 2003-10-09 - Translation fixed * pt translation: added some missing '\n'. * fr translation: fixed 'Cancel' translation. * br translation: removed. * partimage.pot updated. 2003-09-25 - Portuguese translation added * pt translation for 0.6.3_beta8. Thanks to Manuel Padilha. * da translation updated from 0.6.3-beta9. 2003-07-19 - Danish translation updated * da translation updated from 0.6.3-beta6. 2002-10-24 - Danish translation updated * da translation updated from 0.6.2-rc10. 2002-09-16 - Slovak translation added * sk translation for 0.6.1. Thanks to Plzik Milan. 2002-09-16 - Finnish translation added * fi translation for 0.6.1. Thanks to Henri Westerberg. 2002-05-20 - Danish translation updated * da translation updated from 0.6.2rc1. 2001-10-25 gettextize * Makefile.in.in: Upgrade to gettext-0.10.40. 2001-10-18 gettextize * Makefile.in.in: Upgrade to gettext-0.10.39. 2001-08-14 - Polish translation added * pl translation from 0.6.0-rc1. Thanks to Marek L. Kozak. 2001-07-09 - Danish translation updated * da translation updated from current cvs build. 2001-07-07 - Danish translation added * da translation from 0.5.7.1. Thanks to Gunner Poulsen. 2001-06-26 - gettextize * Makefile.in.in: Upgrade to gettext-0.10.37. * fr translation updated from 0.5.5 2001-05-21 - Initial release (added for make dist) * includes fr, de, it translations from 0.3.5 and gl from 0.5.4 partimage-0.6.8/po/gl.po0000644000000000000000000020154011252653200013552 0ustar rootroot# Galician translation of GNU tar. # Copyright (C) 1999-2002 Free Software Foundation, Inc. # Sergio Rua , 1999-2002. # msgid "" msgstr "" "Project-Id-Version: partimage 0.6.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2000-11-18 20:00+0200\n" "Last-Translator: Sergio Rua \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Restaurar o MBR no disco duro" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disco co MBR a restaurar" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "MBR orixinal a empregar" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Que restaurar:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Todo o MBR" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Non se pode ler \"/proc/partitions\" (%s). Entón, debe chamar o Partition " "Image dende a línea de comandos. Vexa \"partimage --help\" para axuda." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Continuar (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Saír (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Fiestra principal (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "gardar a partición nun ficheiro" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Nivel de compresión" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Nengún (moi rádio + imaxe moi grande)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opcións" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Comprobar a partición antes de salvar" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Introduzca descripción" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Sobreescribir sen preguntar" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "División da imaxe" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "División automática (cando non queda espacio)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "En ficheiros de tamaño:.............." #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Agardar despois de cada cambio de volume" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Se remata satisfactoriamente:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Agardar" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Apagar" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Reiniciar" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Saír" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partición a gardar:..........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Tamaño da partición:.........%s = %llu bytes" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Ficheiro de imaxe a crear......%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Sistema de ficheiros detectado.%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Nivel del compresión:............Ningún" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Nivel de compresión:.............gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Nivel de compresión:.............bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Nivel de compresión:.............lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Tempo transcurrido:..........%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Tempo estimado para o remate:.%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Velocidade:..................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Datos copiados:..............%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Ficheiro de imaxe actual:....%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Tamaño da imaxe:.............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Espacio dispoñible para a imaxe:..%s = %llu bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "restaurar a partición dende unha ficheiro de imaxe" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Borrar os bloques libres con valores cero" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Restauración simulada (non se escrebe nada)" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "restaurar a partición dende unha ficheiro de imaxe" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partición a restaurar:.............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Partición a restaurar:.............%s = %llu bytes" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Ficheiro de imaxa a empregar.....%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Sistema de arquivos..............%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "A partición estaba na unidade:.........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Imaxe creada en:..................%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Tamaño da partición orixinal:.....%s = %llu bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Tempo transcurrido:..............%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Tempo estimado para o remate:.....%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Velocidade:.......................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Datos copiados:...................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Ficheiro de imaxe actual:........%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Nivel del compresión:............Ningún\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Nivel de compresión:.............gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Nivel de compresión:.............bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Nivel de compresión:..............lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Trocar" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Cancelar" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Introduza un novo ficheiro" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "A seguinte imaxe xa existe.\n" "¿Queres sobreescribila ou troca-lo nome?\n" "Ficheiro: %s\n" "Para trocar o nome, introduza a ruta completa\n" "(localización + nome) sen o número de volume ó final, \n" "e prema \"Trocar\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "¿Sobreescribir a imaxe?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "¿Sobreescribir?" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "A seguinte imaxe está bloqueada.\n" "¿Queres reintentalo ou troca-lo nome da imaxe?\n" "Ficheiro: %s\n" "Para trocar o nome, introduza a ruta completa\n" "(localización + nome) sen o número de volume ó final, \n" "e prema \"Trocar\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "imaxe bloqueada" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Reintentar" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "imposible acceder a %s\n" "\n" "Por favor, introduza outra ruta ó directorio (sen o nome de ficheiro):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "ruta incorrecta" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Montaxe automático" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Por favor, prema \"ok\" para mountar [%s] en [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Non se pode ler o seguiente ficheiro de volume:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Introduzca outra ruta completa (directorio e nome)." #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume non atopado" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Bandeira non posta" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Sen descripción" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "nengún" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "descoñecido" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Sistema de ficheiros:..%s\n" "Descripción:...........%s\n" "Dispositivo orixinal:..%s\n" "Ruta orixinal:........ %s\n" "Bandeiras:.............%ld: %s\n" "Data de creación:......%sTamaño da partición:....%s\n" "Servidor:..............%s\n" "Versión compatible:....%s\n" "Algoritmo de encrip.:..%ld -> %s\n" "Número MBR salvados:...%lu\n" "\n" "Sistema da copia:\n" "- máquina:.............%s\n" "- sistema operativo:...%s\n" "- versión:.............%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Dispositivo:...........%s\n" "Número de bloques no dispositivo: %llu\n" "Dispositivo modelo:....%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Número de volume:......%lu\n" "Tamaño do volume:......%s\n" "Nivel de compresión:...%ld -> %s\n" "Identificador:.........%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "A imaxe \"%s\" non se pode ser atopada" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Non se pode ler a imaxe" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Información da imaxe" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Erro" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Acerca do Partition Image %s" #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image é distribuido baixo a licencia GNU GPL 2 (General Public " "License)\n" "\n" "version:...%s\n" "web: http://www.partimage.org/\n" "\n" "Autores:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Non se pode escribir o bloque %ld na imaxe" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Non se pode escribir %s na imaxe" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Non se pode escribir o bitmap %ld na imaxe" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Non se pode ler o bitmap %ld dende a imaxe" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Non se pode escribir o bloque %ld no disco duro" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Non se pode ler o bloque %ld dende a imaxe (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Non se pode ler %s do ficheiro de imaxe" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Non se poden ler os 'super bloques'" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Non se poden escreber os 'super bloques'" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Non se pode ler o bloque %ld dende a partición" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Non se pode ler o bloque %ld dende a partición (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Non se pode escribir o MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Non se pode escribir o MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Non unha partición %s. Comprobe o sistema de ficheiros" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "A partición foi gardada cunha versión posterios do Partition Image. Por " "favor, obteña a última versión." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Erro durante a escritura do ficheiro de imaxe: disco cheo!" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Non se pode detectar o sistema de ficheiros da partición %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Non se pode escribir a cabeceira principal" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Non se pode escribir a cabeceira principal" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Non se pode ler a cabeceira principal" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "A imaxe que tenta restaurar foi encriptada. A versión actual non suporta a " "encriptación. Por favor, obteña a última versión." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s non é o primero volume da imaxe. Por favor, reintenteo co volume numerado " "coma 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s non é unha imaxe do Partition Image." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "A partición é demasido pequena para restaurar:\n" "O tamaño orixinal é:...........%llu bytes\n" "A partición destino:...........%llu bytes" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Houbo un erro ó restaurala partición:\n" "Os CRC64 son diferentes; a imaxe foi danada:\n" "Orixinal CRC64:.....%llu\n" "Actual CRC64:.....%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Número de volumes inválido (%ld en troques de %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Erro o pechar" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "A partición %s está bloqueada por outro proceso. Non se pode empregar" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Non se pode abrir a partición %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Non se pode bloquear a partición %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Non se pode ler a cabeceira: a imaxe foi danada" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Non se poden escribir as informacións" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Non se poden ler as informacións" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Non se pode ler o MBR: imaxe danada" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Advertencia" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Non entrou coma root. Pode ter erros de \"acceso denegado\" durante a " "execución." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Novo Volume" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "O volume cambiou.\n" "Antigo: %s\n" "Novo: %s/%s.%.3ld\n" "Prema Enter para continuar" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Confirmación" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Realmente desexa restaura %s dende o ficheiro de imaxa %s?" #: src/client/interface_base.cpp:317 #, fuzzy, c-format msgid "%s found errors on the file system." msgstr "Hai erros no sistema de ficheiros, ou non se pode executar %s" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "O actual soporte de %s é experimental !" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "O actual soporte de %s é beta !" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Modo simulado" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Está empregando o modo simulado: non se escreberá nada" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "O MBR é unha parte moi importante do disco duro. Se escrebe un MBR " "defectuoso pode perder toda-las particións do seu disco duro. Non continue a " "menos que saiba o que está a facer. Prema 'Continuar' para restaurar.\n" "Dispositivo co MBR a restaurar:.....%s [%llu]\n" "MBR Orixinal:.......................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "O disco duro orixinal non cabe no disco duro actual. O MBR que está tentando " "restaurar foi gardado noutro disco duro. Isto significa que o disco duro " "orixinal e o actual non teñen a mesma capacidade ou non son o mesmo " "dispositivo (%s e %s). ¿Desexa continuar?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Correcto" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "O MBR de [%s] foi satisfactoriamente restaurado. Precisa reiniciar a sua " "computadora se desexa que o sistema operativo empregue o novo MBR." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Erro: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Acción cancelada a petición do usuario" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "A imaxe %s xa existe. Desexa sobreescribila?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Acceso denegado" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Non ten dereitos de escritura en %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Nivel de compresión inválido para %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "a imaxe %s xa está aberta" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "o ficheiro %s é demasiado pequeno para ser un volume do partimage" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" "o ficheiro %s non é un ficheiro do partimage: a cadea máxica non coincide" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "a cadea máxica non coincide: erro na imaxe [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" "o volume actual non corresponde ca imaxe actual: identificado incorrecto" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Memoria insufiente." #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "usuario/contraseña incorrecta" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "Demasiados clientes conectados ó partimaged. Inténteo máis tarde" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Só 4096 bytes por bloque %s de volume. Actualmente o bloque é de %lu bytes" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "A partición %s está bloqueada por outr proceso. Non pode empregala." #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Erro mentres se comproban os datos: Número de bloques incorrecto. Se cadra o " "volume ou algúns datos foron saltados" #: src/client/interface_base.cpp:514 #, fuzzy, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Este volume (%ld) non é o esperado: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "O MBR foi atopado nesta imaxe. Non podemos continuar" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "As comprobacións sobre a partición atoparon erro(s)" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Imposible ler o MBR do disco" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Sistema de ficheiros danado ou inválido %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Imposible poñer a cero os bloques do disco duro: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Conexión rexeitada polo servidor: opcións de rede incompatibles. Tenteo sen " "a opción '-L' no servidor" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Conexión rexeitada polo servidor: versións diferentes" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "A imaxe foi gardada cunha versión (%s) máis nova do Partition Image. Por " "favor, obteña a última versión." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "A imaxe foi creada cunha versión (%s) do Partition Image máis antiga. " "Debería empregar esa versión para restaurar a imaxe ou volver a creala coa " "versión actual" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s non é unha imaxe do Partition Image ou está danada. Sintoo, non se pode " "continuar." #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "O ficheiro %s non é un ficheiro regular. Por seguridade, non podemos " "continuar" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Non se pode montar %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Non se pode desmontar %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Non se pode crear o temporal [%s]. Por favor, comproba se hai espacio " "dabondo e ten permiso de acceso." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "Non se pode crear o temporal [%s]. Non hai espacio." #: src/client/interface_base.cpp:639 #, fuzzy, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "Non se pode crear o temporal [%s]. Non hai espacio." #: src/client/interface_base.cpp:642 #, fuzzy, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "Non se pode crear o temporal [%s]. Non hai espacio." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Ficheiro demasiado grande (máis de 2GB). Non se pode continuar. Este " "problema pode provir do kernel, da glibc ou do sistema de ficheiros no que " "se está a escreber a imaxe" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Información de depuración do Newt" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Continuar" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Si" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Non" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partición a restaurar/gardar" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Ficheiro de imaxen para crear/empregar" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Acción a facer:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Gardar a partición nun novo ficheiro" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Restaurar a partición dende un ficheiro de imaxe" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Restaurar o MBR dende unha imaxe" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Conectar có servidor" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Encriptar os datos da rede con SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "O SSL foi deshabilitado en compilación" #: src/client/interface_newt.cpp:229 #, fuzzy msgid "SSL&login disabled at compile time" msgstr "O SSL foi deshabilitado en compilación" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/nome do servidor:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Porto:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Seguinte " #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Acerca de" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "O campo \"Imaxe\" está baldeiro. Non se pode continuar" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "O campo \"Servidor IP/Nome\" está baldeiro. Non se pode continuar" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" "O campo \"Porto Servidor\" non é un enteiro válido. Non se pode continuar" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Descripción da partición" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Pode escribir a descripción da partición gardada:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "O texto non pode estar baldeiro" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Contrasinal requerido" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Introduza o seu usuario" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Introduza o contrasinal" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "¡Disco cheo! Non se pode escreber o seguinte volume (%s.%.3ld)\n" "en %s\n" "\n" "Por favor, introduza outra ruta a directorio (sen o nome de ficheiro):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Nova localización de volume" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "o porto do servidor debe estar entre 1 e 65535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "O modo de compresión debe ser 0 (ningún), 1 (gzip) ou 2 (bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "O modo para rematar debe ser 0 (agardar), 1 (halt), 2 (reiniciar) ou 3 " "(saír)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "O nivel de depuración debe ser 0 (ningún), 2 (usuario) ou (desenvolvedor) ou " "3 (depuración)\n" #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Tamaño de volume: %llu bytes ((%ld KB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image versión %s (baixo a licencia GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Non se pode abrir o ficheiro de depuración.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "O MBR foi restaurado satisfactoriamente" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulación" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operación" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Erro: Non se pode executar 'halt'" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Erro: Non se pode executar 'reboot'" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Erro: Non se pode executar 'reboot'" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Erro: Non se pode executar 'reboot'" #: src/client/main.cpp:843 #, fuzzy, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) versión %s [%s]\n" "---- distribuido baixo a licencia GPL 2 (GNU General Public License) ----\n" "\n" "Sistemas de ficheiros soportados:....ext2fs, reiserfs, fat16, fat32, ntfs" "(exp), hpfs\n" "\n" "emprego: partimage [opcións] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Argumentos:\n" "* :\n" " - save: gardar a partición nunha imaxe\n" " - restore: restaurar a partición dende unha imaxe\n" " - restmbr: restaurar o MBR dende unha imaxe ó disco duro\n" " - imginfo: amosar información sobre o ficheiro de imaxe\n" "* : partición a gardar/restaturar (exemplo: /dev/hda1)\n" "* : ficheiro onde serán escritos ou lidos. Pode ser moi grande\n" "\n" "Options:\n" "* -z, --compress (nivel de compresión da imaxe):\n" " -z0, --compress=0 non comprimir: moi rápido pero crea unha imaxe moi " "grande\n" " -z1, --compress=1 comprimir con gzip: rápido e ficheiro de imaxe pequeno " "(opción por defecto)\n" " -z2, --compress=2 (comprimir con bzip2: moi lente e crea unha imaxe moi " "pequena):\n" "* -c, --nocheck non comprobar a imaxe antes de gardala\n" "* -o, --overwrite sobreescreber as imaxes existentes sen preguntar\n" "* -d, --nodesc non pedir descripción para as imaxes\n" "* -V, --volume (dividir as imaxes en múltiples volumnes)\n" " -VX, --volume=X crear volumes dun tamaño de X KB\n" "* -w, --waitvol agardar confirmación antes de cambiar de volume\n" "* -e, --erase borrar os bloques baldeiros nunha restauración con " "cero bytes\n" "* -m, --allowmnt non fallar se a partición está montada. ¡Perigoso!\n" "* -M, --nombr non crear copia de seguridade do MBR (Master Boot " "Record) no ficheiro de imaxe\n" "* -h, --help amosar axuda\n" "* -v, --version amosar versión\n" "* -i, --compilinfo amosar as opcións de compilación empregadas\n" "* -f, --finish acción a facer se se remata satisfactoriamente:\n" " -f0, --finish=0 agardar: non facer nada\n" " -f1, --finish=1 halt (apagar) o ordenador\n" " -f2, --finish=2 reiniciar (reiniciar o ordenador):\n" " -f3, --finish=3 saír\n" "* -b, --batch modo 'batch': o interfaz gráfico non pregunta nada\n" "* -y, --nosync non sincronizar os discos ó rematar a operación " "(perigoso)\n" "* -sX, --server=X usar esta dirección IP para o servidor\n" "* -pX, --port=X usar este porto para conectar có servidor\n" "* -g, --debug=X establecer o nivel de depuración a X (por defecto: " "1):\n" "* -n, --nossl deshabilitar o SSL na rede\n" "* -S, --simulate simular a restauración\n" "* -aX, --automnt=X montar automáticamente cas opcións X. Lee a " "documentación para máis detalles\n" #: src/client/main.cpp:894 msgid "stable" msgstr "estable" #: src/client/main.cpp:894 msgid "unstable" msgstr "inestable" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s rematou satisfactoriamente:\n" "\n" "Tempo empregado: %s\n" "Velocidade:......%s/min\n" "Datos copiados:..%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "inicializando a operación. Por favor, agarde..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Gardando a partición no ficheiro de imaxe..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "inicializando a operación" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Non se pode ler o MBR: imaxe danada" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Non se pode ler a cabeceira: a imaxe foi danada" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inodo perdido" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "o inodo %s non existe. Partimage pode crealo por vostede. Pode tamén " "empregar o manual do mknod. ¿Desexa que este inodo sexa creado por vostede?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s non é un periférico en modo bloque." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "A partición %s está montada. Partition Image non pode funcionar sobre " "particións montadas. Por favor, desmontea. Pode usar o comando \"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "Dividir os volumes nun tamaño enteiro superior a 1024 (tamaño >= 1024 KB)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Opcións de automontaxe inválidas. Lea o manual para máis detalles" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" "O segundo argumento [%s] debe ser un dispositivo válido (ex: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "O terceiro argumento [%s] debe ser un ficheiro regular válido (non un " "directorio, enlace...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "¿Saír do partimage?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "¿Realmente desexa cancelar a operación actual?" #: src/client/fs/fs_base.cpp:346 #, fuzzy msgid "local check error" msgstr "erro local de CRC" #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Houbo un erro de posicionamiento no 'CCheck'. Os datos se cadra foron " "danados. ¿Desexa continuar?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "erro local de CRC" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Houbo un erro de posicionamiento no 'CCheck'. Os datos se cadra foron " "danados. ¿Desexa continuar?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Houbo un erro de posicionamiento no 'CCheck'. Os datos se cadra foron " "danados. ¿Desexa continuar?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "lendo as propiedades das particións" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "comprobando o sistema de ficheiros con fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "escribindo a cabeceira" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "copiando os datos usados" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "lendo a información das particións" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Tamaño do bloque..............%llu bytes\n" "Número total de bloques.......%llu\n" "Número de bloques empregados..%llu\n" "Número de bloques baldeiros...%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sEmpregado do espacio:.........%llu %%\n" "Espacio empregado.............%s\n" "Espacio baldeiro..............%s\n" "Tamaño do bitmap..............%s\n" "Etiqueta......................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sNúmero de grupos..............%lu\n" "Primeiro bloque...............%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Soporte de ficheiros grandes..%s\n" "Revisión do s. de ficheiros...%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "si" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "non" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Información Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Información Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Houbo un erro mentres se leía o bitmap" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sTamaño do sector..............%u\n" "Sectores por cluster..........%u\n" "Número de Sectores reservados.%u\n" "Sectores no directorio raíz...%lu\n" "Número de tablas FAT..........%u\n" "Número total de Sectores......%lu\n" "Sectores por FAT..............%lu\n" "Número de Clusters............%lu\n" "Clusters empregados...........%lu\n" "Clusters baldeiros............%lu\n" "Clusters danados..............%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Información FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Non se pode ler o sector de arranque" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster non pode ser nulo. Comprobe se a partición para gardar " "é FAT" #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Non se pode ler o sector 'FSInfo'" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s non é unha partición no sistema de ficheiros NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Memoria insuficiente: preciso %lu bytes para ler o gardado en readBitmap():" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Imposible ler o rexitro MFT do $Bitmap. Desexa facer unha búsqueda " "experimental? (pode levar moito tempo)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Non se atopa o $bitmap con búsqueda experimental" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Non se pode empregar o ficheiro de rexistro $bitmap" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "O $Bitmap do NFTS é demasiado pequeno" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Memoria insufiente" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes por sector..............%u\n" "Sectores por cluster..........%u\n" "Tamaño do ficheiro gravado....%lu\n" "LCN de MFT Data attrib........%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Información NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Memoria insuficiente: preciso %lu bytes para ler o gardado en readVolumeLabel" "()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: O atributo \"Lista de atributos\" non está implementado." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: O 'flag' de compresión para o atributo DATOS é nulo: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Atributos de datos residentes non soportados" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() devolveu -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Erro en readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "O atributo \"nome de ficheiro\" deber ser residente!" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "búsqueda de rexistro $bitmap" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "búsqueda experimental feita" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%s Versión HPFS:................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "Información HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Non se pode ler o bloque de arranque" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Non se poden ler os 'super bloques'" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Números máxicos de HPFS inválidos. Non é unha partición HPFS válida." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Información ReiserFS" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Información JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sNúmero de bloques alugados:...%lu\n" "Bloques por Grupo Alugado.....%lu\n" "Tamaño dos grupos alugados:...%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Información XFS" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Agardando..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "¡erro!" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "obtendo espacio..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "escribindo..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "abrindo para escritura..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "salvando" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "lendo..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "pechando..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "abrindo para ler..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "restaurando" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "rematando" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Cliente #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Estado" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Hóspede" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Localización" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Tamaño" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "agardando" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Fallo de segmentación. Por favor, envíe o erro e o ficheiros [%s] os " "autores\n" #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Demonio do Partition Image (http://www.partimage.org/) versión %s\n" "---- distribuida baixo a licencia GPL 2 (GNU General Public License) ----\n" "\n" "emprego: partimaged [optións]\n" "\n" "Optións:\n" "* -h, --help amosar axuda\n" "* -v, --version amosar versión\n" "* -pX, --port=X porto no que escoita o servidor (por defecto %d)\n" "* -D, --daemon iniciar en modo demonio, non primeiro plano\n" "* -r dir, --chroot dir empregar 'chroot' para aumentar a seguridade\n" "* -g, --debug=X poñer o nivel de depuración a X (por defecto: 1)\n" "* -L, --nologin deshabilitar a conexión dende os clientes\n" #: src/server/partimaged-main.cpp:150 #, fuzzy, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Imposible abrir o ficheiro de rexistro %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Correxir esto e reiniciar\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "imposible atopara o usuario \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "engadi-lo e reintentalo\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Advertencia: non pode cambiar o 'euid' porque non foi lanzado coma root\n" "espérase un acceso denegado ou problemas coma ise.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Demo do Partition Imaxe versión %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Demo do Partition Imaxe versión %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distribuido baixa a GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Agardando polo cliente..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "demasiados clientes conectados" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Imaxe: compilado cas opcións ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Sistemas de ficheiros soportados:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Soporte Ext2fs: basado na biblioteca libext2fs\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Soporte Ext2fs: código interno\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Opcións de depuración:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr "" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr "" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr "" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr "" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr "" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr "" #: src/shared/common.cpp:105 msgid "true" msgstr "verdadeiro" #: src/shared/common.cpp:106 msgid "false" msgstr "falso" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Outras opcións:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr "" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr "" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr "" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr "" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr "" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr "" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr "" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld bytes" #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Bytes" #, fuzzy #~ msgid "mount: %s" #~ msgstr "Non se pode montar %s" #~ msgid "Overwrite image ?" #~ msgstr "Sobreescribir a imaxe?" #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" partimage-0.6.8/po/stamp-po0000644000000000000000000000001211256751305014273 0ustar rootroottimestamp partimage-0.6.8/po/de.gmo0000644000000000000000000013455511252653754013735 0ustar rootrootÞ•id ç¬HIK^q‘©¼Ñå2/E"u˜¯Îçý  7 M c l u ~ ‡ X’ #ë —!§!MÁ!'"'7"P_"‰°"#:#Ë^#t*$¬Ÿ%"L&o&Š&ƒ¦&4*'_'e' ~' Œ'­'.À'ï'$ÿ',$(’Q(!ä(()/)G)_)x)+‘)½)9Ó)& *-4*$b*‡**´*-Ì*ú*+&+=++P+|+”+%«+"Ñ+ô+,,,D,Z,n,6u,]¬,K -8V-0-À-Ð-‚é-l.eƒ.é.û./!/?/H/'Z/'‚/&ª/%Ñ/!÷/"0!<0 ^050 µ0Â0mÔ0.B1q1 z1ˆ1$¨1Í1$è1) 272qW2É24æ293$U3*z3¥3·3Ê3Û3"ï34474]F4+¤4 Ð4(Ú45!#5E5$e5 Š5”5¥5¹5Í5FÞ5$%6–J6‘á6<s8°8Å8×8Ü8[á8=9T9%n9”9´9$Ô9ù9 :": @:2a:-”:%Â:7è:; ; \; };+ž;Ê;Û;ä;é;ò;<< <62<7i<+¡<"Í< ð<û<= &=0=53=i= x= „=-¥=Ó=RÖ= )>3>;> O>]>Al>F®> õ>ÿ>?;)?Ge? ­? ¸?мK"GN&jNÜ‘N=nO-¬OÚO$ðOP%5P[P(mP–PœP¡P¨P!¾PàP$Q%Q+Q"HQ$kQ%QL¶Q RR2RQR1VR,ˆR1µR#çR( SI4S~S„SŒS+¡S4ÍS?T+BT<nTˆ«T+4U‰`V!êV W(-WGVWàžWáX#aYm…Y©óYZ+[JC\GŽ\Ö\\V]?³]Vó]MJ^ ˜^O¦^Tö^+K_w_/`8`$X`=}`t»`0aGaxXa"Ñaôaùab .b;bwCb»bÌbâbóbM÷b9Ec3c!³cÕc#UdByd¼d"Îd ñdýdee:e=@e@~e¿e ÈeÕeòef6!fXf*sf žf¬f¼fMÎf9gVgYg^gsg ‰g•g´g!Ñg ógýgh*!h.Lh{hF‚hÉhãhOèh8i@i,Iivi~i i ši¥iG©iñjójk#kBk[knk†kœk¹kÕkêk0ýk(.lWlnlŽl§l½lÒl"ålm%m=mFmOmXm amhlm3Õm¨ n²nFËn-o!@o[bo‹¾o#JpÍnpw÷~96p wƒ$£È$â)€1€|Q€΀ä€,,1:^™¯ÉØ"ê ‚‚4‚dK‚!°‚ Ò‚EÝ‚4#ƒ0Xƒ‰ƒ%©ƒ σ܃ñƒ „!„44„$i„BŽ„Ñ„Wb†"º†݆ó†‡{ ‡†‡›‡%»‡!ᇈ%#ˆIˆ]ˆ)qˆ›ˆ2ªˆ)݈'‰7/‰2g‰%š‰(À‰.鉊-Š >ŠKŠOŠaŠeŠŠ=•ŠAÓŠ:‹)P‹z‹‹«‹ ‹΋:Ó‹Œ!Œ'3Œ1[ŒŒcŒ ôŒ .H=M†Ôã#ù=ŽJ[Ž ¦Ž, ±ŽûÞš"Úœ&ýœØ$8ý#6žZž%už ›ž&¼žãž2ùž,Ÿ 2Ÿ <ŸGŸ aŸ‚Ÿ&¢Ÿ ÉŸ*ÕŸ4 $5 &Z N  РÛ :ì '¡4/¡.d¡3“¡#Ç¡(ë¡5¢J¢Q¢X¢5r¢C¨¢;ì¢*(£4S£›ˆ£ï$¤‘¥(¦¥2Ï¥2¦K5¦¦ü„§!¨£¨Ù%©˜ÿ©D˜ªIÝ«I'¬yq¬|ë¬Dh­f­­H® ]®Pj®[»®¯Š4¯2¿¯ò¯%°C8°k|°è°±{ ±*œ±DZαí± ² ²²–²§²Dzܲeß²2E³.x³§³1³ô³´%-´S´ s´´—´Ÿ´¿´:Æ´<µ>µ!Eµ#gµ‹µŸµ%½µãµ(ûµ$¶9¶L¶^_¶6¾¶õ¶ú¶ÿ¶·-·6·$Q·&v· ·#ª·η,Ö·&¸*¸D1¸v¸¸G•¸ ݸç¸@ð¸1¹7¹ O¹ \¹j¹‰òáVþÙFGMÕý—]qaÒÛX5¨;wb0™n,U”§ç.à7N›ãeßïCK¸ ,[ê6/QD<΢+(Š`D‡_׈6·}ó®^û =g'°#îH Ú"WÊö •œ1'º-À¿3EUvjæ¤?I7oÁL\ ÖÍy^¦8O<ZL_)PÃ…d Ä TÑ«šèT–ÿ8bcSéMªg2ǘ©¹Gl%2ëÓ(*ì"ƒŸõ 9eB% ¾ä&ð:[h$Ìi4’;=`tf*Œ&Ë“ü]žÞ Ø!ù²\RísŽm3¶ñNu5JF†É@1?¥OÜkYhBµA¬£)CVJÈ0ZôÝÅ„¼>cY-+/­d±â p{øå#f¯$»@Æ‚P9€>ú|iIS 4‘z½Ð!Ôr¡A´xXKHaÏQR‹W~÷ ³.:ÂE * Debug options: * Other options: * Supported file systems: - * Version is %s [%s]. - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%.2f GiB%.2f KiB%.2f MiB%.2f TiB%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu CRC changed: the image is damagedCan't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot restore the MBR from an image compressed with bzip2. You have to change the compression level.Cannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sDEBUG: reboot the computerData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot count remaining partimagesError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to open logfile %s: %s Impossible to read MBR from diskImpossible to read the magic: the image is damagedImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsKnow bugLastLocationMain window (F7)MiBNTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon (http://www.partimage.org/) version %s ---- distributed under the GPL 2 license (GNU General Public License) ---- usage: partimaged [options] Options: * -h, --help show help * -v, --version show version * -d, --dest destination directory * -pX, --port=X server's port listening (defaults to %d) * -D, --daemon start in daemon mode, not foreground * -i, --compilinfo show compilation options used * -r dir, --chroot dir use chroot to improve security * -g, --debug=X set the debug level to X (default: 1) * -L, --nologin disable login from clients Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluThis volume (%ld) is not the expected one: %ld.Time elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX Volume size: %llu bytes (%ld MiB) WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:Wrong volume insertedXFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou have devfs enabled but not mounted. You have to do it to continue. You can also boot with non-devfs kernel if you have one.You haven't access to /proc/mounts.You will be prompted to remove this media and insert the right oneadd it and retry checking the file system with fsckclosing ...copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" incorrect password or user not in partimagedusers fileinitializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorlocal check errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 simulate partition restoration from image filestablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablevolume numbers changed: the image is damagedwaitingwriting headerwritting ...wrong pathyesProject-Id-Version: de Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2006-10-07 02:46+0200 Last-Translator: Michael Biebl Language-Team: deutsch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.11.4 * Debug Optionen: * Sonstige Optionen: * Unterstützte Dateisysteme: - * Version ist %s [%s]. - APPEND_PID=%s - CHEUID DEAKTIVIERT - CHEUID AKTIVIERT - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - SSL DEAKTIVIERT - SSL AKTIVIERT - Ext2fs Unterstützung mit libext2fs library - Ext2fs Unterstützung: buildin Code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS ungenutzt - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DEAKTIVIERT - SSL AKTIVIERT - USER LOGIN NICHT ERFORDERLICH - USER LOGIN ERFORDERLICH suche $bitmap Datensatz%.2f GiB%.2f KiB%.2f MiB%.2f TiB%lld Bytes%s erfolgreich beendet: Verbrauchte Zeit:.....%s Durchsatz:............%s/Min Kopierte Datenmengen:.%sFehler im Dateisystem oder Fehler beim Start von %s%s inode nicht gefunden. Auf Wunsch kann Partition Image ihn anlegen. Sie können ihn auch selbst mit dem Kommando mknod erzeugen. Soll Partition Image ihn nun anlegen?%s ist kein Blockgerät.Ungültige oder beschädigte Imagedatei %s. Bearbeitung nicht möglich%s ist keine Partition Image Sicherungsdatei.%s enthält kein NTFS Dateisystem%s ist nicht der 1. Datenträger der Imagedatei. Versuchen Sie es erneut mit der Endung 000%sBytes pro Sektor..............%u Sektoren pro Cluster..........%u Datensatzgröße................%lu LCN des MFT Datenattributes...%llu %sHPFS Version:.................%d %sAnzahl Gruppen................%lu 1. Block......................%lu Ext3fs Journalinfo............%s Freier Super Block............%s Unterstützung großer Dateien..%s Dateisystem Version...........%lu %sSektor Größe..................%u Sektors pro Cluster...........%u Reservierte Sektoren..........%u Stammverzeichniss Sektoren....%lu Anzahl FAT Tabellen...........%u Anzahl Sektoren...............%lu Sektoren pro FAT..............%lu Anzahl Cluster................%lu Benutzte Cluster..............%lu Freie Cluster.................%lu Beschädigte Cluster...........%lu %sPlatzbelegung.................%llu %% Belegter Speicherplatz........%s Freier Speicherplatz..........%s Größe der Bitmap..............%s Label.........................%s (lizenziert unter GNU GPL 2) * Imagedatei erstellen/benutzen* Partition sichern/rücksichern-------------------- MBR %.3d ------------------- Gerät:.................%s Anzahl Blöcke:.........%llu Gerätetyp:.............%s ==== Partition Image: Kompilieroptinen ==== ÜberÜber Partition Image %sZugriff verweigertVorgang durch Benutzer abgebrochenAufgabe durchführenFehler beim Lesen von /proc/mounts.Automatisches EinbindenAutomatisch (bei Verbrauch des freien Platzes)Freier Platz für Image:......%s = %llu BytesBlockgröße....................%llu Bytes Anzahl Blöcke.................%llu Benutzte Blöcke...............%llu Freie Blöcke..................%llu Anfangskennung Lesefehler. Imagedatei ist beschädigtTyp des Dateisystems von Partition %s kann nicht ermittelt werdenFehler beim Sperren der Partition %sFehler beim Öffnen der Partition %sImage Lesefehler %sFSInfo LesefehlerMBR Kennung Lesefehler: Imagedatei ist beschädigtSuperBlock LesefehlerBitmap Block Lesefehler %ld bei Festplatten Partition (%s)Image Lesefehler Bitmap Block %ldFestplatten Partition Lesefehler Block %ldImage Lesefehler Block %ld (%d)Boot Block LesefehlerBootsektor LesefehlerInfoblock LesefehlerAnfangskennung Lesefehler. Imagedatei ist beschädigtEndekennung LesefehlerReserve Block LesefehlerSuper Block LesefehlerMBR LesefehlerLesefehler bei Datei/Datenträger: %s %sImage Schreibfehler %sSuperBlock SchreibfehlerImage Schreibfehler Bitmap Block %ldFestplatten Schreibfehler bei Block %ldImage Schreibfehler bei Block %ldInfoblock SchreibfehlerAnfangskennung SchreibfehlerEndekennung SchreibfehlerMBR SchreibfehlerAbbruchFehler beim Erzeugen der temporären Datei [%s]. Gerät ist vollFehler beim Erzeugen der temporären Datei [%s]. Bitte Speicherplatz und Zugriffsrechte prüfen.Fehler beim Erzeugen der temporären Datei [%s]. Schreibzugriff für den Nutzer 'partimag' ist nicht erlaubt.Fehler beim Erzeugen der temporären Datei [%s]. Schreibzugriff ist nicht erlaubt.$bitmap bei unscharfer Suche nicht gefundenEinbinden von %s nicht möglichKann Debug Datei nicht öffnen. "/proc/partitions" (%s) kann nicht gelesen werden. Bitte Partition Image erneut starten. Anzeigen der Aufrufparameter "partimage --help".Imagedatei kann nicht gelesen werdenKann MBR nicht aus einer Image Datei zurücksichern, die mit bzip2 komprimiert wurde. Bitte den Kompressionsgrad wechseln.Entfernen von %s nicht möglichDatensatz $bitmap kann nicht verwendet werdenÄndernVor Sicherung Partition prüfenClient #KompressionsmodusKompressionsmodus:................Kein Kompressionsmodus:................bzip2Kompressionsmodus:................gzipKompressionsmodus:................lzoKompressionsmodus:...........Kein Kompressionsmodus:...........bzip2Kompressionsmodus:...........gzipKompressionsmodus:...........lzoKompressionsmodus muss 0(kein), 1(gzip) oder 2(bzip2) sein BestätigungVerbindung zu ServerVerbindungsproblem zum Server: inkompatible Netzwerk Optionen.Verbindungsproblem zum Server: unterschiedliche VersionenWeiterWeiter (F5)Aktuelle Image Datei:........%sAktuelle Image Datei:.............%sDEBUG: Rechner neustartenKopierte Datenmengen:........%s / %sKopierte Datenmenge:..............%s / %sTyp des Dateisystems:........%sDatenträger ist voll! Dateiteil (%s.%.3ld) kann nicht nach%s geschrieben werden Bitte neuen Pfad eingeben (ohne Dateiname):Ziellaufwerk für MBRAusführung wirklich abbrechen?Sicherung %s aus Image Datei %s einspielen ?Verschlüsseln der Netzwerkdaten mittels SSLAnderen kompletten Pfad eingeben (Verzeichnis + Dateiname)Beschreibung eingebenNeuen Dateinamen eingebenLogin eingebenPasswort eingebenLösche freie Blöcke mit NullwertFehlerFehler in readFilenameAttributeFehler beim SchließenFehler beim Prüfen: Ungültige Blocknummer. Evt. wurde auf einen falschen Datenträger zugegriffen.Image Schreibfehler: Platte voll!Fehler: %sFehler: Anzahl der verbleibenden Images konnte nicht bestimmt werden.Fehler: Der Rechner lässt sich nicht herunterfahrenFehler: Der Rechner lässt sich nicht neustartenVerbleibende Zeit:...........%sVerbleibende Zeit:................%s Abbruch (F6)Partimage verlassen?Informationen zu Ext2fsInformationen zu Ext3fsInformation zu FATKeine reguläre Datei %s. Bearbeitung nicht möglichDateisystem:......................%sDatei ist zu groß (größer als 2 GB). Vorgang wird abgebrochen. Dateisystem:...........%s Beschreibung:..........%s Quellgerät:.,..........%s Quelldateipfad:....... %s Flags:.................%ld: %s Erstelldatum:..........%sPartition Größe:.......%s Rechnername:...........%s Kompatible Version:....%s Verschlüsselung:.......%ld -> %s Anzahl gesicherter MBR:.%lu Sicherungssystem: - Rechner:.............%s - Betriebssystem:......%s - Version:.............%s Endeaktionsmodus muss 0(warten), 1(herunterfahren), 2(neustarten) oder 3(beenden) sein Bitte beheben und erneut starten. Informationen zu HPFSHerunterfahrenRechnerHostname/IP Fehler! Rechnername konnte nicht aufgelöst werden (Bitte versuchen Sie es erneut unter Eingabe der IP Adresse)IP/Name des Servers:Nach erfolgreicher Ausführung:Image Erstelldatum:...............%s Image Dateigröße:............%sDateiname des Images.........%sRücksichern aus Datei.............%sImage InformationenDatei TeilungsmodusFehler beim Öffnen der Logdatei %s: %s. MBR LesefehlerMBR Kennung Lesefehler: Imagedatei ist beschädigtNullwert Schreibfehler auf Festplatte: %sIn Dateien folgender Größe:..........Ungültige HPFS Kennung. Keine HPFS Partition gefunden.Ungültige automount Optionen. Siehe DokumentationUngültiger Kompressionsmodus für %sUngültiges oder defektes Dateisystem %sUngültige Datenträgernummer (%ld statt %ld).Informationen zu JFSBekannter FehlerWeitermachenOrtStartfenster (F7)MiBNTFS $Bitmap ist zu kleinInformationen zu NTFSNTFS: "Attribute List" Attribut wird z.Z. nicht unterstützt.NTFS: Kompressionsflag des DATA Attributes ist ungleich Null: %ldNTFS: Resident data Attribut wird z.Z. nicht unterstützt.NTFS: Rückgabe von processRunList() = -1Neuer DatentärgerNeue Datenträger BezeichnungNewt debug InformationWeiter (F5)NeinImagedatei enthält keinen MBR. Bearbeitung nicht möglichKeine BeschreibungKein Flag gesetztKeine (sehr schnell aber platzintensiv)Keine %s Partition. Bitte Dateisystem Typ prüfenOkEs werden nur %s Datenträger mit 4096 Bytes pro Block unterstützt. Gefunden wurde %lu Bytes/BlockAusführungOptionenQuelllaufwerk des MBRSpeichermangelSpeichermangelSpeichermangel: readBitmap() braucht %lu Bytes zum Lesen des DatensatzesSpeichermangel: readVolumeLabel() braucht %lu Bytes zum Lesen des DatensatzesÜberschreibenImage überschreiben?Vor Überschreiben nicht nachfragenPartition %s existiert nicht und wird deshalb nicht geprüft.Partition %s kann nicht geprüft werden da ein Zugriff nicht möglich ist.PartimagedPartition Image (http://www.partimage.org/) Version %s [%s] ---- lizenziert unter GPL 2 (GNU General Public License) ---- unterstützte Dateisysteme:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs Aufruf: partimage [Optionen] partimage Bsp: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz Bsp: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg Bsp: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 Bsp: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz Bsp: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 Bsp: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Argumente: * : - save: Sichern einer kompletten Partition in eine Datei - restore: Rücksichern einer kompletten Partition aus einer Datei - restmbr: Rücksichern eines MBRs aus einer Datei auf die Festplatte - imginfo: Information aus Imagedatei anzeigen * : Name der Partition die gesichert/rückgesichert wird (Beispiel: /dev/hda1) * : Name der Sicherungs-/Rücksicherungs-Datei. Kann sehr groß werden Optionen: * -z, --compress (Kompressionsstufe der Imagedatei): -z0, --compress=0 keine Kompression: schnell aber groe Imagedatei -z1, --compress=1 gzip Kompression: schnell mit kleiner Imagedatei (default) -z2, --compress=2 bzip2 Kompression: langsam mit noch kleinerer Imagedatei * -c, --nocheck keine Prüfung der Partition * -o, --overwrite Überschreiben ohne Rückfragen * -d, --nodesc Beschreibungstext der Imagedatei unterdrücken * -V, --volume (verteile Imagedatei auf mehrere Datenträger) -VX, --volume=X Datenträgergröße ist X KB * -w, --waitvol Warten bei Datenträgerwechsel * -e, --erase freie Blöcke mit Nullwerten auffüllen * -m, --allowmnt Bearbeitung trotz eingebundener Partition. ACHTUNG: Gefahr! * -M, --nombr MBR (Master Boot Record) nicht in Imagedatei sichern * -h, --help zeigt diesen Hilfstext * -v, --version zeigt Programmversion * -i, --compilinfo zeigt benutzte Kompilieroptionen * -f, --finish (Befehl nach erfolgreicher Ausführung): -f0, --finish=0 warten: Partimage wartet auf Benutzereingabe -f1, --finish=1 herunterfahren: Der Rechner wird heruntergefahren (shutdown) -f2, --finish=2 neustarten: Der Rechner wird neu gestartet (reboot) -f3, --finish=3 beenden: Partimage beendet sich * -b, --batch batch Modus: die Ausführung läuft ohne Benutzereingaben * -y, --nosync Keine Festplatten Synchronisation nach Beendigung durchführen. ACHTUNG: Gefahr! * -sX, --server=X IP Adresse des partimaged Servers * -pX, --port=X Port Nummer des partimaged Servers * -g, --debug=X setzen des Debug Modus auf X (default: 1) * -n, --nossl Keine SSL Netzwerkverschlüsselung * -S, --simulate Rücksichern nur simulieren * -aX, --automnt=X automatisches Einbinden (mount) mit den Optionen X.Siehe auch Dokumentaion Partition Image Daemon (http://www.partimage.org/) Version %s ---- lizenziert unter GPL 2 (GNU General Public License) ---- Aufruf: partimaged [Optionen] Optionen: * -h, --help zeigt diesen Hilfstext * -v, --version zeigt Programmversion * -pX, --port=X Server Portnummer (default %d) * -D, --daemon startet im Hintergrundmodus * -r dir, --chroot dir Aufruf von chroot. Verbessert die Sicherheit * -g, --debug=X setzen des Debug Modus auf X (default: 1) Partition Image Daemon Version %s Partition Image Daemon Version %s+SSL Partition Image wird unter GNU GPL 2 (General Public License) lizenziert Version:...%s URL:.......http://www.partimage.org/ Autoren: Francois Dupoux Franck Ladurelle Partition Image Version %s (lizenziert unter GNU GPL2). Fehler beim Prüfen der PartitionenBeschreibung der PartitionRücksichern der Partition:........%sSichere Partition:...........%s Partition war auf Gerät:..........%s Passwort erforderlichBitte "ok" drücken um [%s] unter [%s] einzubindenPort:VerlassenNeustartenInformationen zu ReiserFSMBR aus einer Datei rücksichernMBR auf Festplatte rücksichernPartition aus einer Datei rücksichernWiederholenSSL Unterstützung ist nicht einkompiliertSSL und login Unterstützung ist nicht einkompiliertPartition in eine neue Datei sichernSichere Partition in die Imagedatei...Speicherzugriffsfehler. Bitte Bug melden und Datei [%s] an die Autoren senden SimulationSimulationsmodusRücksichern simulieren (Schreibvorgang wird unterdrückt)GrößeGröße der Rücksicherungen:........%s = %llu BytesGröße der Partition:.........%s = %llu BytesGröße der Quellpartition:.........%s = %llu BytesDurchsatz:...................%s/MinDurchsatz:........................%s/MinDatenträgerkapazität muss größer als 1024 KB seinStatusErfolgText darf nicht leer seinDas Feld "Image" ist leer. Bearbeitung nicht möglichDas Feld "IP/Name des Servers" ist leer. Bearbeitung nicht möglichUngültiger Wert im Feld "Port". Bearbeitung nicht möglichAttribut "filename" muss persistent sein !Imagedatei %s ist bereits vorhanden. Überschreiben?Die Partition %s ist eingebunden. Partition Image kann mit eingebundenen Partitionen nicht umgehen. Bitte zuerst Partition aushängen (mittels "umount %s")Der MBR enthält wichtige Daten der Festplatte. ACHTUNG: Ein falscher MBR zerstrt sämtliche Partitionen der Festplatte. Rücksichern mit 'Weiter'. Ziel-MBR:...........................%s [%llu] Quell-MBR:..........................%s [%llu]Der MBR von [%s] wurde erfolgreich rückgesichert. Damit das Betriebssystem diesen MBR benutzen kann, ist ein Neustart des Rechners erforderlich.Der MBR wurde erfolgreich rückgesichertUnterstützung von %s ist in einem frühen StadiumUnterstützung von %s ist in einem frühen StadiumDebugmodus muss 0(kein), 1(Benutzer), 2(Entwickler) oder 3(debugging) sein Die Datei ist bereits vorhanden. Wollen Sie die Datei überschreiben oder den Dateiname abändern? Datei: %s Zum Ändern des Dateinamens, bitte den kompletten Pfad angeben (Verzeichnis + Dateiname) ohne das Suffix der laufenden Nummer, gefolgt von "Ändern"Die Datei ist gesperrt. Wollen Sie es später erneut versuchen oder den Dateiname abändern? Datei: %s Zum Ändern des Dateinamens, bitte den kompletten Pfad angeben (Verzeichnis + Dateiname) ohne das Suffix der laufenden Nummer, gefolgt von "Ändern"Kann Imagedatei "%s" nicht findenDie Sicherung wurde mit einer neueren Partion Image Version (%s) durchgeführt. Bitte laden Sie die neueste Version aus dem Netz.Die Sicherung wurde mit einer älteren Partion Image Version (%s) durchgeführt. Benutzen Sie diese ältere Version zum Rücksichern. Andernfalls muss eine neue Sicherung mit der aktuellen Version durchgeführt werdenDie gewünschte Sicherungsdatei ist verschlüsselt. Diese Version unterstützt keine Verschlüsselung. Bitte laden Sie die neueste Version aus dem Netz.Die gesicherte Festplatte war eine andere als die aktuelle Festplatte. Der MBR, der rückgesichert werden soll, stammt von einer anderen Festplatte. D.h. die gesicherte und die aktuelle Festplatten haben eine unterschiedliche Größe oder diese sind unterschiedlichen Geräten zugeordnet (%s und %s). Trotzdem weitermachen?Ein anderer Prozess hat Partition %s gesperrt. Bearbeitung nicht möglichEin anderer Prozess hat Partition %s gesperrt. Bearbeitung nicht möglichDie Zielpartition ist zu klein: Quellpartition Größe:...........%llu Bytes Zielpartition Größe:............%llu BytesDie Sicherung wurde mit einer neueren Partion Image Version durchgeführt. Bitte laden Sie die neueste Version aus dem Netz.Das 2. Argument [%s] muss ein gültiges Gerät sein (Bsp: /dev/hda1)Das 3. Argument [%s] muss eine reguläre Datei sein (weder Verzeichnis noch symbolischer Verweis, ...)Wechsel des Datenträgers. Alt: %s Neu: %s/%s.%.3ld Fortsetzen mit EnterMBR komplettCRC Fehler in CCheck. Wahrscheinlich durch Datenkorruption. Trotzdem fortfahren?Positionierungsfehler in CCheck. Wahrscheinlich durch Datenkorruption. Trotzdem fortfahren?Fehler beim Lesen des BitmapFehler beim Rücksichern der Partition: CRC64 stimmen nicht, Imagedatei ist beschädigt: Original CRC64:.....%llu Aktuelle CRC64:.....%lluFalsche Datenträger Nummer, IST: %ld - SOLL: %ldVerbrauchte Zeit:............%sVerbrauchte Zeit:.................%s Zuviele Verbindungen zu partimaged. Versuchen Sie es später erneutLesefehler bei MFT Datensatz $Bitmap. Unscharfe Suche starten? Hinweis: dieser Vorgang kann länger dauern!Unbekannter Fehler %d -> %sDatenträger nicht gefundenDatenträgernummer:.....%lu Dateigröße:............%s Kompressionsmodus: ....%ld -> %s Identifikation:........%llu=%llX Datenträgergröße: %llu Bytes (%ld MiB) WartenWarten auf DatenträgerwechselWarte auf Client ...Warte ...WarnungWarnung: Fehler beim Setzen der euid. Keine SuperUser Rechte (root) Ggf. kann es zu "Zugriff verweigert" Fehlermeldungen kommen. Schreiboptionen:Falscher Datenträger eingelegtInformationen zu XFSJaSie haben keine SuperUser Rechte (root). Ggf. kann es zu "Zugriff verweigert" Fehlermeldungen kommen.Simulationsmodus: Schreibvorgang wird unterdrücktBeschreibungstext der gespeicherten Partition:Kein Schreibzugriff auf %sSie haben devfs aktiviert aber nicht eingebunden.Kein Zugriff auf /proc/mounts.Richtiges Medium einlegenBitte hinzufügen und erneut starten Prüfen des Dateisystems (fsck)Schließe ...Schreibe DatenblöckeFehler!Unscharfe Suche war erfolgreichfalschKeine Partimage Datei %s: Partimage Kennung nicht gefundenDatenträger Datei %s ist zu kurz: Anfangskennung LesefehlerFertigermittle Speicherplatz Bedarf ...Imagedatei %s ist bereits geöffnetImagedatei gesperrtBenutzer "%s" nicht gefunden ungültiges Passwort/Login verweigertBereite Ausführung vorBereite Ausführung vor. Bitte warten...inode nicht gefundenlokaler CRC Fehlerlokaler CRC Fehlerm_cSectorsPerCluster darf nicht null sein. Ggf. ist angegebene Partition kein FAT Dateisystem.Partimage Kennung nicht gefunden: Fehler in Datei [%s]neinkeinÖffne zum Lesen ...Öffne zum Schreiben ...Lese ...Lese Infos über PartitionEinlesen der PartitionseigenschaftenPartition aus Image Datei rücksichernRücksichernSichern der Partition in eine DateiSichereServerport muss zwischen 1 und 65535 liegen Partition aus Image Datei rücksichernstabilAktueller Datenträger passt nicht zum Image: falsche Idendifikationzuviel ClientverbindungenwahrKein Zugriff auf %s Bitte neues Verzeichnis eingeben (ohne Dateiname):unbekanntunstabilGeänderte Datenträger Nummer: Die Image Datei ist beschädigt.WarteSchreibe AnfangskennungSchreibe ...falscher Pfadjapartimage-0.6.8/po/en@quot.header0000644000000000000000000000226311252653200015376 0ustar rootroot# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # partimage-0.6.8/po/pt.gmo0000644000000000000000000013017511252653754013762 0ustar rootrootÞ•UÄ Él‘“¦¹Ùì2Nb/u"¥Èßþ-?Pg} “Xž#÷—³MÍ' 'C Pk g¼ ‰$!#®!ËÒ!tž"¬$"À$ã$þ$ƒ%4ž%Ó%Ù% ò% &!&.4&c&$s&,˜&’Å&(X''™'±'Ê'+ã'(9%(&_(-†($´(Ù(ï()-)L)a)x))+¢)Î)æ)%ý)"#*F*e*~*–*¬*À*6Ç*]þ*K\+8¨+0á+,",‚;,¾,Õ,ç,- -+-4-'F-'n-&–-%½-!ã-".!(. J.5k. ¡.®.mÀ.../]/ f/t/$”/$¹/)Þ/0q(0š04·09ì0$&1*K1v1ˆ1›1¬1"À1ã1é12]2+u2 ¡2«2!Ë2í2$ 3 23<3M3a3u3F†3$Í3–ò3‘‰4<6X6m66„6[‰6å6ü6%7<7\7$|7¡7´7"Å7 è7- 8%787]8;•8 Ñ8 ò8+9?9P9Y9j9ƒ96•97Ì9+:"0: S:^:r: ‰:“:5–:Ì: Û: ç:-;6;R9; Œ;–;ž; ²;À;AÏ;F< X<b<s<;Œ<GÈ< = ="I&BIÜiI=FJ-„J²J$ÈJíJ% K3K(EKnKtKyK€K!–K¸K$ØKýKL" L$CL%hLLŽL ÛLæL2öL)M1.M,`M1M#¿M(ãMI NVN\NdN+yN4¥N?ÚN+O<FOˆƒO+ P‰8Q!ÂQ äQ(RG.RàvRáWS#9Tm]T©ËTuUVJWGfW®W\.X?‹XVËXM"Y pYO~YTÎY+#ZOZ/àZ[$0[=U[t“[\\x0\©\®\Ì\ ã\ð\wø\p]]’]M–]9ä]3^!R^#t^˜^"ª^ Í^Ù^ù^__6_=<_@z_»_ Ä_Ñ_î_ÿ_`*8` c`q`M`9Ï` a aa&a ŒuËu*áu™ v'¦vÎv.çvw#w @wJw'\w'„w&¬w%Ów#ùw"x!@x bx<ƒx ÀxÊxpÜx/My }y‡y&–y+½y'éy,z(>zŒgz&ôz*{,F{"s{2–{É{Ù{÷{ |%&|L|Q| o|f}|:ä|}((}+Q}#}}(¡} Ê}Ô}ç}ý}~I'~-q~¦Ÿ~€FJÇ€ 3BU]Z¸Í%æ- ‚%:‚,`‚‚¡‚.º‚é‚*ƒ%3ƒEYƒ?Ÿƒ!߃-„,/„ \„ j„t„$Š„¯„6Á„:ø„/3…!c… ……‘…ª… Á…Í…=Ð… ††,.†;[†—†Pš†ë†ò†÷†‡&‡U7‡\‡ê‡ò‡ˆ8"ˆA[ˆ ˆq ¨ˆ •$;• `•6k–7¢–Ú–"ì–—,.—[—3n—¢—©—®—Å—2Ø— ˜4)˜^˜"f˜)‰˜,³˜+à˜P ™]™e™#u™™™2¡™(Ô™-ý™(+š-TšR‚šÕšÜšäš1›32›@f›,§›3Ô›œ%™œ€¿ @ž#až …žP¦žê÷ž âŸ+ð o¡šŒ¡†'¢ô®¢L££Lð£‚=¤lÀ¤F-¥gt¥SÜ¥0¦X?¦[˜¦ô¦˜§&­§"Ô§'÷§=¨q]¨Ϩê¨tÿ¨t© |©© ¶©Ä©ˆÊ©Sª dªrªTvª.˪/úª*«I«g«,ƒ« °«-¼«ê« ¬&¬7¬C=¬X¬ Ú¬ä¬ø¬­+.­Z­,q­ž­­­V¿­8®O®R®Y®q®‰®’®°®2Ю ¯&¯ 6¯/@¯p¯>w¯¶¯ ίRÙ¯ ,°9° A°K° _° m°y°/AÌB‹O@Ç¿½8;Jk²%Cèph$$5yf0ó>>îÄÒØò—.›ºÅŽÝt«7T2%£¾PSY43”b¦êÍ ´GOÈùKöL/ÛB•LR¨s¯?r¼ð‡âïDûáM,­~¬&µãQ"|D0 nJ#תÐ6à¤i IƒŒQÖ"#'X)¢–¶FR˜V EFCa+¸æz,®À‰} ]lõÎ üm<U-H(=g*'ë-{= xøNdHw©ß!Þ“ZËúcåU5ÙÿÂ;.‚™eŠ·…Ü¥Úš<þôŸ&žP^Ôϱ8(7+4v9Ój€)G:\†NÕ÷S!Á `çˆÑA1» ³W3T[9äíE:° ý ?_ñKÉM§Iœ¡u’éo„ ìqÊÆ*1‘6¹Ã2@ * Debug options: * Other options: * Supported file systems: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to open logfile %s: %s Impossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluThis volume (%ld) is not the expected one: %ld.Time elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou haven't access to /proc/mounts.add it and retry checking the file system with fsckclosing ...commiting buffer cache to disk.copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: Partimage 0.6.3_beta8POT-Creation-Date: 2002-10-14 17:19+0200 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2003-09-25 00:01+0100 Last-Translator: Manuel Padilha Language-Team: Portuguese MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit * Opes de debug: * Outras opes: * Sistemas de ficheiros suportados: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Suporte para Ext2fs: baseado na biblioteca libext2fs - Suporte para Ext2fs: cdigo interno - PARTIMAGED_LOG=%s - PARTIMAGED_USERS no usado - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN pesquisa do registo $bitmap%lld bytes%s terminado com sucesso: Tempo decorrido.%s Velocidade:.....%s/min Dados copiados:.%s%s encontrou erros no sistema de ficheiros.O inode %s no existe. O partimage pode cri-lo por si. Tambm pode cri-lo manualmente usando o comando mknod. Pretende que o inode seja criado por si agora?%s no um block device.%s no um ficheiro de imagem vlido ou encontra-se danificado. No possvel continuar%s no uma imagem vlida de uma partio.%s no uma partio NTFS%s no o primeiro volume de uma imagem. Por favor tente novamente com o nmero 000%sGrupos de Alocao:...........%lu Blocos por Grupo de alocao..%lu Tamanho do grupo de alocao..%s %sBytes por sector..............%u Sectores por cluster..........%u Tamanho do registo............%lu LCN do atributo MFT Data .....%llu %sHPFS verso:..................%d %sNmero de grupos............%lu Primeiro bloco................%lu Jornalizao Ext3fs...........%s Super bloco esparso...........%s Suporte ficheiros grandes.....%s Reviso sistema de ficheiros..%lu %sTamanho do sector.............%u Sectores por cluster..........%u Sectores reservados...........%u Sectores da Root directory....%lu Tabelas FAT...................%u Total de Sectores.............%lu Sectores por FAT..............%lu Clusters......................%lu Clusters usados...............%lu Clusters livres...............%lu Clusters danificados..........%lu %sUtilizao de espao:.........%llu %% Espao usado..................%s Espao livre..................%s Espao de bitmap..............%s Etiqueta......................%s (distribudo sob a licena GNU GPL 2) * Imagem a criar/usar* Partio a guardar/restaurar-------------------- MBR %.3d ------------------- Dispositivo:...........%s Blocos do dispositivo:.%llu Modelo do dispositivo:.%s ==== Partition Image: opes de compilao usadas ==== SobreSobre o Partition Image %sAcesso negadoAco cancelada a pedido do utilizadorAco a tomar:Ocorreu um erro ao tentar ler /proc/mounts.Mount automticoPartio automtica (quando no h espao livre)Espao disponvel para a imagem:...%s = %llu bytesTamanho do bloco..............%llu bytes Total de blocos...............%llu Blocos usados.................%llu Blocos livres.................%llu No foi possvel detectar o sistema de ficheiros da partio %sNo foi possvel bloquear a partio %sNo foi possvel abrir a partio %sNo foi possvel ler %s da imagemNo foi possvel ler o sector FSInfoNo foi possvel ler o MBR Magic: a imagem est danificadaNo foi possvel ler o SuperBlockNo foi possvel ler o bloco de bitmap %ld da partio do disco (%s)No foi possvel ler o bloco de bitmap %ld da imagemNo foi possvel ler o bloco %ld da partio do discoNo foi possvel ler o bloco %ld da imagem (%d)No foi possvel ler o bloco de arranqueNo foi possvel ler o sector de arranqueNo foi possvel ler as informaesNo foi possvel ler o cabealho principal: a imagem est danificadaNo foi possvel ler o eplogo principalNo foi possvel ler o bloco suplenteNo foi possvel ler o super blocoNo foi possvel ler o MBRNo foi possvel ler o seguinte ficheiro de volume: %s %sNo foi possvel escrever %s na imagemNo foi possvel escrever o SuperBlockNo foi possvel escrever o bloco de bitmap %ld na imagemNa foi possvel escrever o bloco %ld no disco rgidoNo foi possvel escrever o bloco %ld na imagemNo foi possvel escrever as informaesNo foi possvel escrever o cabealho principalNo foi possvel escrever o eplogo principalNo foi possvel escrever o MBRCancelarNo foi possvel criar um ficheiro temporrio [%s]. No h espao disponvel.No foi possvel criar um ficheiro temporrio [%s]. Verifique se tem os privilgios necessrios e se h espao suficiente.No foi possvel criar o ficheiro temporrio [%s]. O acesso de escrita foi negado ao utilizador 'partimag'No foi possvel criar o ficheiro temporrio [%s]. O acesso de escrita foi negado.No foi possvel encontrar o $bitmap com a pesquisa experimentalNo possvel montar %sNo foi possvel abrir o ficheiro de debug. No foi possvel ler "/proc/partitions" (%s). Deve utilizar a linha de comandos para correr o Partition Image. Escreva "partimage --help" para obter ajuda.No foi possvel ler o ficheiro de imagemNo possvel desmontar %sNo possvel usar o registo de ficheiro $bitmapMudarVerificar a partio antes de guardarCliente #Nvel de CompressoNvel de Compresso:................None Nvel de Compresso:................bzip2Nvel de Compresso:................gzipNvel de Compresso:................lzoNvel de Compresso:...........NenhumNvel de Compresso:...........bzip2Nvel de Compresso:...........gzipNvel de Compresso:...........lzoO modo de compresso deve ser 0 (nenhuma), 1(gzip), 2(bzip2) ConfirmaoLigar ao servidorLigao recusada pelo servidor: opes de rede incompatveis. Tente desactivar a opo de login no servidor usando '-L'Ligao recusada pelo servidor: verses diferentesContinuarContinuar (F5)Ficheiro de imagem actual:..........%sFicheiro de imagem actual:...............%sDados copiados:.................%s / %sDados copiados:......................%s / %sSistema de ficheiro detectado:........%sDisco cheio! No possvel guardar o prximo ficheiro de volume (%s.%.3ld) em %s Introduza o path para outra directoria (sem nome de ficheiro):Disco com o MBR que pretende restaurarDeseja realmente cancelar a operao actual?Deseja realmente restaurar %s da imagem %s ?Encriptar dados na rede usando SSLEscreva outro path completo (directrio & ficheiro)Inserir descrioInserir novo nome de ficheiroIntroduza o seu loginIntroduza a sua passwordApagar blocos livres com o valor zeroErroErro em readFilenameAttributeErro no fechoErro na verificao dos dados: Nmero de bloco invlido. Um volume ou alguns dados podem ter sido saltadosErro durante a escrita do ficheiro de imagem: disco cheio!Erro: %sError: No foi possvel parar o computadorErro: No foi possvel reiniciar o computadorEstimativa de tempo restante:....%sEstimativa de tempo restante:.........%sSair (F6)Sair do partimage?Informao sobre Ext2fsInformao sobre Ext3fsInformaes sobre FAT%s no um ficheiro regular. Por motivos de segurana no possvel continuarSistema de ficheiros:......................%sO ficheiro muito grande (> 2MB). No possvel continuar. Este problema pode ter origem no kernel, na glibc ou no sistema de ficheiros onde a imagem est a ser guardadaSistema de ficheiros:..%s Descrio:.............%s Dispositivo original:..%s Path original:.........%s Flags:.................%ld: %s Data criao:..........%sTamanho da partio:...%s Hostname:..............%s Verso compatvel:.....%s Algoritmo encriptao:.%ld -> %s contador MBR:..........%lu Sistema do backup - mquina:.............%s - sistema operativo:...%s - verso:..............%s O modo de terminao deve ser 0(esperar), 1(parar), 2(reiniciar) ou 3(sair) Corrija isto e tente novamente. Informaes HPFSParar o computadorHostErro de Hostname/IP! Pode no ter sido possvel resolver o hostname. (Tente novamente com o IP)IP/nome do servidor:Se terminar com sucesso:Imagem criada em:.................%s Tamanho do ficheiro de imagem:.............%sFicheiro de imagem a criar.........%sFicheiro de imagem a usar.................%sInformaes da ImagemModo de partio da imagemNo foi possvel abrir o ficheiro de log %s: %s No possvel ler o MBR do discoNo foi possvel limpar o bloco do disco: %sEm ficheiros com tamanho:............Os magic numbers de HPFS so invlidos. No se trata de uma partio HPFS.Opes de automontagem invlidas. Leia o manual para mais instruesNvel de compresso invlido para %sSistema de ficheiros invlido ou danificado %sNmero de volume invlido (%ld em vez de %ld).Informaes JFSLocalizaoJanela Principal (F7)O $Bitmap de NTFS demasiado pequenoInformaes de NTFSNTFS: O atributo "Attribute List" no ainda suportado.NTFS: Flag de compresso para o atributo DATA no null: %ldNTFS: atributo de dados residente no suportadoNTFS processRunList() devolveu -1Novo volumeLocalizao do Novo VolumeInformao de debug NewtPrximo (F5)NoNo foi encontrado nenhum MBR na imagem. No possvel continuarSem descrioNenhuma flag activaNenhum (muito rpido + ficheiro muito grande)No uma partio %s. Verifique o tipo de sistema de ficheirosOkS so suportados volumes %s de 4096 bytes por bloco. O actual de %lu bytes/blocoOperaoOpesMBR original que pretende usarMemria EsgotadaMemria esgotada.Memria esgotada: so precisos %lu bytes para ler o registo de ficheiro em readBitmap()Memria Esgotada: so necessrios %lu bytes para ler o registo do ficheiro em readVolumeLabel()SobreprSobrepr imagem?Escrever por cima sem perguntarPartimage no vai verificar a partio porque %s no existe.Partimage no vai verificar a partio devido ao acesso negado a %s.PartimagedPartition Image (http://www.partimage.org/) verso %s [%s] ---- distribudo sob a licena GPL 2 (GNU General Public License) ---- Systemas de ficheiros suportados:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs uso: partimage [opes] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Argumentos: * : - save: guardar os dados da partio num ficheiro de imagem - restore: restaurar uma partio a partir de um ficheiro de imagem - restmbr: restaurar um MBR a partir de um ficheiro de imagem - imginfo: mostrar informao sobre um ficheiro de imagem * : partio a guardar/restaurar (exemplo: /dev/hda1) * : ficheiro para os dados sero lidos/escritos. pode ser muito grande. Opes: * -z, --compress (nvel de compresso da imagem): -z0, --compress=0 no comprimir: muito rpido, mas resulta num ficheiro muito grande -z1, --compress=1 compress using gzip: rpido e produz um ficheiro pequeno (usado por omisso) -z2, --compress=2 compress using bzip2: muito lento, mas gera um ficheiro muito pequeno * -c, --nocheck no verificar a partio antes de guardar * -o, --overwrite sobrepr a imagem existente sem confirmar * -d, --nodesc no pedir descrio para a imagem * -V, --volume separar a imagem em vrios volumes -VX, --volume=X criar volumes com X KB de tamanho * -w, --waitvol aguardar uma confirmao aps cada troca de volume * -e, --erase apagar blocos vazios com zeros durante o restauro * -m, --allowmnt no abortar se a partio estiver montada. Perigoso! * -M, --nombr no criar um backup do MBR (Master Boot Record) no ficheiro de imagem * -h, --help mostrar ajuda * -v, --version mostrar verso * -i, --compilinfo mostrar opes de compilao usadas * -f, --finish aco a tomar quando termina com sucesso: -f0, --finish=0 wait: no fazer nada -f1, --finish=1 halt: parar o computador -f2, --finish=2 reboot: reinicar o computador -f3, --finish=3 quit * -b, --batch modo no-interactivo: a interface no aguarda ordens do utilizador * -y, --nosync no sincronizar os discos no final da operao (perigoso) * -sX, --server=X especificar o endereo IP do servidor partimaged * -pX, --port=X especificar a porta do servidor partimaged * -g, --debug=X definir o nvel de debug como sendo X (por omisso: 1): * -n, --nossl desactivar o SSL em modo de rede * -S, --simulate simulao do modo de restaurao * -aX, --automnt=X montagem automtica com argumentos X. Leia a documentao para mais detalhes * -UX --username=X username a usar na autenticao com o servidor * -PX --Password=X password a usar na autenticao com o servidor Partition Image Daemon verso %s Partition Image Daemon verso %s+SSL Partition Image distribudo sob a GNU GPL 2 (General Public License) verso:...%s web:.......http://www.partimage.org/ Autores: Francois Dupoux Franck Ladurelle Verso Portuguesa: Manuel Padilha Partition Image verso %s (distribudo sob a GNU GPL2). Foram encontrados erros durante a verificao das partiesDescrio da partioPartio a restaurar:.............%sPartio a guardar:...........%sA Partio estava no dispositivo:..........%s Password necessriaPor favor carregue em "ok" para montar [%s] em [%s]Porta:SairReiniciar o computadorInformaes ReiserFSRestaurar um MBR a partir de um ficheiro de imagemRestaurar o MBR para o disco.Restaurar a partio a partir de um ficheiro de imagemRepetirSSL desactivado durante a compilaoSSL&login desactivados durante a compilaoGuardar a partio num novo ficheiro de imagemGuardando a partio no ficheiro de imagem...Falha de segmentao. Por favor reporte o bug e envie o ficheiro [%s] aos autores SimulaoModo de simulaoSimulao do restauro (nada escrito)TamanhoTamanho da partio a restaurar:.....%s = %llu bytesTamanho da Partio:.......%s = %llu bytesTamanho da partio original:...%s = %llu bytesVelocidade:.......................%s/minVelocidade:............................%s/minO tamanho de cada volume deve ser um inteiro maior do que 1024 (tamanho >= 1024KB)EstadoSucessoO texto no pode estar vazioO campo "Imagem" est vazio. No possvel continuarO campo "IP/nome" est vazio. No possvel continuar O campo "Porta" no contm um valor inteiro. No possvel continuarO atributo "filename" tem que ser residente!O ficheiro de imagem %s j existe. Deseja sobrep-lo?A partio %s est montada. O Partition Image no consegue operar em parties montadas. Por favor desmonte-a primeiro. Pode faz-lo usando "umount %s"O MBR constitui uma parte fundamental do disco rgido. Se escrever um mau MBR vai perder todas as parties do disco. No continue a menos que saiba o que est a fazer. Carregue em Continuar para restaurar. Dispositivo com MBR a restaurar.....%s [%llu] MBR original........................%s [%llu]O MBR de [%s] foi restaurado com sucesso. Pode ser necessrio reiniciar o computador para que o sistema operativo use o novo MBR.O MBR foi restaurado com sucessoO suporte para %s est em fase beta!O suporte para %s experimental!O nvel de debug deve ser 0(nenhum), 1(utilizador), 2(developer) ou 3(debugging) O ficheiro de imagem seguinte j existe. Deseja sobrepr ou mudar o nome do ficheiro? Ficheiro: %s Para mudar o nome do ficheiro, escreva o path completo (caminho + nome do ficheiro) sem o nmero de volume no final, e carregue em "Mudar"O seguinte ficheiro de imagem est bloqueado. Deseja esperar e voltar a tentar mais tarde, ou mudar o nome do ficheiro? Ficheiro: %s Para mudar o nome do ficheiro, escreva o path completo (caminho + nome do ficheiro) sem o nmero de volume no final, e carregue em "Mudar"O ficheiro de imagem "%s" no foi encontradoA imagem foi criada com uma verso mais recente (%s) do Partition Image. Actualize o software e tente novamente.A imagem foi criada com uma verso antiga (%s) do Partition Image. Precisa de usar essa verso para restaurar a imagem, ou ento recri-la com a verso recenteA imagem que est a tentar restaurar est encriptada. A verso actual no suporta encriptao. Por favor obtenha a ltima verso do partimage.O disco rgido original no cabe no disco rgido actual. O MBR que est a tentar restaurar foi guardado a partir de outro disco. Isto significa que os discos no tm o mesmo tamanho ou no se encontram no mesmo dispositivo (%s e %s). Deseja continuar?A partio %s j est bloqueada por outro processo. No possvel operar sobre elaA partio %s j est bloqueada por outro processo. No possvel operar sobre elaA partio demasiado pequena para ser restaurada: Tamanho original da partio:...%llu bytes Tamanho da partio de destino:.%llu bytesA partio foi guardada com uma verso mais recente do Partition Image. Por favor obtenha a verso mais recente.O segundo argumento [%s] deve ser um dispositivo vlido (ex: /dev/hda1)O terceiro argumento [%s] deve ser um ficheiro regular (no pode ser uma directoria, link simblico, ...)O volume foi trocado. Antigo: %s Novo: %s/%s.%.3ld Carregue em Enter para continuarO MBR completoOcorreu um erro de CRC em CCheck. Os dados podem ter sido danificados. Deseja continuar?Ocorreu um erro de posico em CCheck. Os dados podem ter sido danificados. Deseja continuar?Ocorreu um erro ao ler o bitmapOcorreu um erro durante o restauro da partio: Os valores CRC64 so diferentes, a imagem foi danificada: CRC64 original:.....%llu CRC64 actual:.......%lluEste volume (%ld) no o esperado: %ld.Tempo decorrido:................%sTempo decorrido:.....................%sH demasiados clientes ligados ao partimaged. Tente mais tardeNo foi possvel ler o registo $Bitmap MFT. Deseja realizar uma procura experimental? (pode demorar bastante tempo)Erro desconhecido %d -> %sVolume no encontradoNmero de volume:......%lu Tamanho do volume:.....%s Nvel de compresso:...%ld -> %s Identificador:.........%llu=%llX EsperarEsperar aps cada troca de volumeEsperando por cliente...Aguardando...AvisoAviso: No foi possvel trocar o euid porque o programa no foi lanado como root Prepare-se para problemas de acesso negado e semelhantes. O que restaurar:Informaes XFSSimNo est registado como root. Pode deparar com erros "access denied" durante a execuo.Est a usar o modo de simulao: nada ser escritoPode introduzir uma descrio da partio guardada:No tem acesso de escrita em %sNo tem acesso a /proc/mounts.adicione e tente novamente verificando o sistema de ficheiro com o fsckfechando...forando cpia da cache do buffer para o disco.copiando blocos de dados usadoserro!pesquisa experimental foi bem sucedidafalsoO ficheiro %s no um ficheiro do partimage: magic string incorrectaO ficheiro %s muito pequeno para ser um volume do partimage: no possvel ler o cabealhoterminadoprocurando espao...A imagem %s j est abertaficheiro de imagem bloqueadoNo foi possvel encontrar o utilizador "%s" inicializando a operaoinicializando a operao. Por favor aguarde...falta um inodeErro de CRC localm_cSectorsPerCluster no pode ser null. Verifique que a partio a guardar realmente FATmagic string incorrecta: erro no ficheiro de imagem [%s]nonenhumabrindo para leitura...abrindo para leitura...lendo...lendo as informaoes da partiolendo as propriedades da partiorestaurar partio a partir de um ficheiro de imagemrestaurandoguardar a partio no ficheiro de imagemguardandoA porta do servidor deve estar entre 1 e 65535 estvelo volume actual no cabe na imagem actual: identificador erradomuitos clientes ligadosverdadeiroimpossvel aceder a %s Por favor escolha outro directrio (sem o nome do ficheiro):desconhecidoinstvelesperandoescrevendo cabealhoescrevendo...path erradosimpartimage-0.6.8/po/boldquot.sed0000644000000000000000000000033111252653200015131 0ustar rootroots/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g partimage-0.6.8/po/de.po0000644000000000000000000020255011252653200013542 0ustar rootroot# translation of de.po to deutsch # Copyright (C) 2005, 2006 Free Software Foundation, Inc. # PARTIMAGE - GERMAN LOCALIZED MESSAGE FILE # Copyright (C) 2001 Free Software Foundation, Inc. # # FIRST AUTHOR , 2001. # Michael Biebl , 2005, 2006. msgid "" msgstr "" "Project-Id-Version: de\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2006-10-07 02:46+0200\n" "Last-Translator: Michael Biebl \n" "Language-Team: deutsch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "MBR auf Festplatte rücksichern" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Ziellaufwerk für MBR" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Quelllaufwerk des MBR" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Schreiboptionen:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "MBR komplett" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "\"/proc/partitions\" (%s) kann nicht gelesen werden. Bitte Partition Image " "erneut starten. Anzeigen der Aufrufparameter \"partimage --help\"." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Weiter (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Abbruch (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Startfenster (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "Sichern der Partition in eine Datei" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Kompressionsmodus" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Keine (sehr schnell aber platzintensiv)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Optionen" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Vor Sicherung Partition prüfen" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Beschreibung eingeben" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Vor Überschreiben nicht nachfragen" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Datei Teilungsmodus" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Automatisch (bei Verbrauch des freien Platzes)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "In Dateien folgender Größe:.........." #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "MiB" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Warten auf Datenträgerwechsel" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Nach erfolgreicher Ausführung:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Warten" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Herunterfahren" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Neustarten" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Verlassen" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "Weitermachen" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Sichere Partition:...........%s " #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Größe der Partition:.........%s = %llu Bytes" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Dateiname des Images.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Typ des Dateisystems:........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Kompressionsmodus:...........Kein " #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Kompressionsmodus:...........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Kompressionsmodus:...........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Kompressionsmodus:...........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Verbrauchte Zeit:............%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Verbleibende Zeit:...........%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Durchsatz:...................%s/Min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Kopierte Datenmengen:........%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Aktuelle Image Datei:........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Image Dateigröße:............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Freier Platz für Image:......%s = %llu Bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "Partition aus Image Datei rücksichern" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Lösche freie Blöcke mit Nullwert" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Rücksichern simulieren (Schreibvorgang wird unterdrückt)" #: src/client/gui_text.cpp:662 msgid "simulate partition restoration from image file" msgstr "Partition aus Image Datei rücksichern" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Rücksichern der Partition:........%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Größe der Rücksicherungen:........%s = %llu Bytes" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Rücksichern aus Datei.............%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Dateisystem:......................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Partition war auf Gerät:..........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Image Erstelldatum:...............%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Größe der Quellpartition:.........%s = %llu Bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Verbrauchte Zeit:.................%s " #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Verbleibende Zeit:................%s " #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Durchsatz:........................%s/Min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Kopierte Datenmenge:..............%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Aktuelle Image Datei:.............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Kompressionsmodus:................Kein\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Kompressionsmodus:................gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Kompressionsmodus:................bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Kompressionsmodus:................lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Ändern" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Abbruch" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Neuen Dateinamen eingeben" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Die Datei ist bereits vorhanden.\n" "Wollen Sie die Datei überschreiben oder den Dateiname abändern?\n" "Datei: %s\n" "Zum Ändern des Dateinamens, bitte den kompletten Pfad angeben\n" "(Verzeichnis + Dateiname) ohne das Suffix der laufenden Nummer, \n" "gefolgt von \"Ändern\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Image überschreiben?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Überschreiben" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Die Datei ist gesperrt.\n" "Wollen Sie es später erneut versuchen oder den Dateiname abändern?\n" "Datei: %s\n" "Zum Ändern des Dateinamens, bitte den kompletten Pfad angeben\n" "(Verzeichnis + Dateiname) ohne das Suffix der laufenden Nummer, \n" "gefolgt von \"Ändern\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "Imagedatei gesperrt" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Wiederholen" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "Kein Zugriff auf %s\n" "\n" "Bitte neues Verzeichnis eingeben (ohne Dateiname):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "falscher Pfad" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automatisches Einbinden" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Bitte \"ok\" drücken um [%s] unter [%s] einzubinden" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "Falscher Datenträger eingelegt" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "Richtiges Medium einlegen" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Lesefehler bei Datei/Datenträger:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Anderen kompletten Pfad eingeben (Verzeichnis + Dateiname)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Datenträger nicht gefunden" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Kein Flag gesetzt" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Keine Beschreibung" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "kein" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "unbekannt" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Dateisystem:...........%s\n" "Beschreibung:..........%s\n" "Quellgerät:.,..........%s\n" "Quelldateipfad:....... %s\n" "Flags:.................%ld: %s\n" "Erstelldatum:..........%sPartition Größe:.......%s\n" "Rechnername:...........%s\n" "Kompatible Version:....%s\n" "Verschlüsselung:.......%ld -> %s\n" "Anzahl gesicherter MBR:.%lu\n" "\n" "Sicherungssystem:\n" "- Rechner:.............%s\n" "- Betriebssystem:......%s\n" "- Version:.............%s\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Gerät:.................%s\n" "Anzahl Blöcke:.........%llu\n" "Gerätetyp:.............%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Datenträgernummer:.....%lu\n" "Dateigröße:............%s\n" "Kompressionsmodus: ....%ld -> %s\n" "Identifikation:........%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Kann Imagedatei \"%s\" nicht finden" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Imagedatei kann nicht gelesen werden" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Image Informationen" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Fehler" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Über Partition Image %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image wird unter GNU GPL 2 (General Public License) lizenziert\n" "\n" "Version:...%s\n" "URL:.......http://www.partimage.org/\n" "\n" "Autoren:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Image Schreibfehler bei Block %ld" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Image Schreibfehler %s" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Image Schreibfehler Bitmap Block %ld" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Image Lesefehler Bitmap Block %ld" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Festplatten Schreibfehler bei Block %ld" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Image Lesefehler Block %ld (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Image Lesefehler %s" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "SuperBlock Lesefehler" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "SuperBlock Schreibfehler" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Festplatten Partition Lesefehler Block %ld" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Bitmap Block Lesefehler %ld bei Festplatten Partition (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "MBR Schreibfehler" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "MBR Lesefehler" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Keine %s Partition. Bitte Dateisystem Typ prüfen" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "Die Sicherung wurde mit einer neueren Partion Image Version durchgeführt. " "Bitte laden Sie die neueste Version aus dem Netz." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Image Schreibfehler: Platte voll!" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Typ des Dateisystems von Partition %s kann nicht ermittelt werden" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Anfangskennung Schreibfehler" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Endekennung Schreibfehler" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Endekennung Lesefehler" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Die gewünschte Sicherungsdatei ist verschlüsselt. Diese Version unterstützt " "keine Verschlüsselung. Bitte laden Sie die neueste Version aus dem Netz." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s ist nicht der 1. Datenträger der Imagedatei. Versuchen Sie es erneut mit " "der Endung 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s ist keine Partition Image Sicherungsdatei." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Die Zielpartition ist zu klein:\n" "Quellpartition Größe:...........%llu Bytes\n" "Zielpartition Größe:............%llu Bytes" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Fehler beim Rücksichern der Partition:\n" "CRC64 stimmen nicht, Imagedatei ist beschädigt:\n" "Original CRC64:.....%llu\n" "Aktuelle CRC64:.....%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Ungültige Datenträgernummer (%ld statt %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Fehler beim Schließen" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "Ein anderer Prozess hat Partition %s gesperrt. Bearbeitung nicht möglich" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Fehler beim Öffnen der Partition %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Fehler beim Sperren der Partition %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Anfangskennung Lesefehler. Imagedatei ist beschädigt" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Infoblock Schreibfehler" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Infoblock Lesefehler" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "MBR Kennung Lesefehler: Imagedatei ist beschädigt" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "Bekannter Fehler" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" "Kann MBR nicht aus einer Image Datei zurücksichern, die mit bzip2 " "komprimiert wurde. Bitte den Kompressionsgrad wechseln." #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Warnung" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Sie haben keine SuperUser Rechte (root). Ggf. kann es zu \"Zugriff verweigert" "\" Fehlermeldungen kommen." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Neuer Datentärger" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Wechsel des Datenträgers.\n" "Alt: %s\n" "Neu: %s/%s.%.3ld\n" "Fortsetzen mit Enter" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Bestätigung" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Sicherung %s aus Image Datei %s einspielen ?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "Fehler im Dateisystem oder Fehler beim Start von %s" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partition %s existiert nicht und wird deshalb nicht geprüft." #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" "Partition %s kann nicht geprüft werden da ein Zugriff nicht möglich ist." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Unterstützung von %s ist in einem frühen Stadium" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "Unterstützung von %s ist in einem frühen Stadium" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simulationsmodus" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Simulationsmodus: Schreibvorgang wird unterdrückt" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "Der MBR enthält wichtige Daten der Festplatte. ACHTUNG: Ein falscher MBR " "zerstrt sämtliche Partitionen der Festplatte. Rücksichern mit 'Weiter'.\n" "Ziel-MBR:...........................%s [%llu]\n" "Quell-MBR:..........................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Die gesicherte Festplatte war eine andere als die aktuelle Festplatte. Der " "MBR, der rückgesichert werden soll, stammt von einer anderen Festplatte. D." "h. die gesicherte und die aktuelle Festplatten haben eine unterschiedliche " "Größe oder diese sind unterschiedlichen Geräten zugeordnet (%s und %s). " "Trotzdem weitermachen?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Erfolg" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "Der MBR von [%s] wurde erfolgreich rückgesichert. Damit das Betriebssystem " "diesen MBR benutzen kann, ist ein Neustart des Rechners erforderlich." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Fehler: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Vorgang durch Benutzer abgebrochen" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Imagedatei %s ist bereits vorhanden. Überschreiben?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Zugriff verweigert" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Kein Schreibzugriff auf %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Ungültiger Kompressionsmodus für %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "Imagedatei %s ist bereits geöffnet" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "Datenträger Datei %s ist zu kurz: Anfangskennung Lesefehler" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "Keine Partimage Datei %s: Partimage Kennung nicht gefunden" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "Partimage Kennung nicht gefunden: Fehler in Datei [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "Aktueller Datenträger passt nicht zum Image: falsche Idendifikation" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Speichermangel" #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "ungültiges Passwort/Login verweigert" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "Zuviele Verbindungen zu partimaged. Versuchen Sie es später erneut" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Es werden nur %s Datenträger mit 4096 Bytes pro Block unterstützt. Gefunden " "wurde %lu Bytes/Block" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "Ein anderer Prozess hat Partition %s gesperrt. Bearbeitung nicht möglich" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Fehler beim Prüfen: Ungültige Blocknummer. Evt. wurde auf einen falschen " "Datenträger zugegriffen." #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Falsche Datenträger Nummer, IST: %ld - SOLL: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Hostname/IP Fehler!\n" "Rechnername konnte nicht aufgelöst werden (Bitte versuchen Sie es erneut " "unter Eingabe der IP Adresse)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "Imagedatei enthält keinen MBR. Bearbeitung nicht möglich" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Fehler beim Prüfen der Partitionen" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "MBR Lesefehler" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Ungültiges oder defektes Dateisystem %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Nullwert Schreibfehler auf Festplatte: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "Verbindungsproblem zum Server: inkompatible Netzwerk Optionen." #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Verbindungsproblem zum Server: unterschiedliche Versionen" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Die Sicherung wurde mit einer neueren Partion Image Version (%s) " "durchgeführt. Bitte laden Sie die neueste Version aus dem Netz." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Die Sicherung wurde mit einer älteren Partion Image Version (%s) " "durchgeführt. Benutzen Sie diese ältere Version zum Rücksichern. Andernfalls " "muss eine neue Sicherung mit der aktuellen Version durchgeführt werden" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "Ungültige oder beschädigte Imagedatei %s. Bearbeitung nicht möglich" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "Keine reguläre Datei %s. Bearbeitung nicht möglich" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Einbinden von %s nicht möglich" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Entfernen von %s nicht möglich" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Fehler beim Erzeugen der temporären Datei [%s]. Bitte Speicherplatz und " "Zugriffsrechte prüfen." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "Fehler beim Erzeugen der temporären Datei [%s]. Gerät ist voll" #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Fehler beim Erzeugen der temporären Datei [%s]. Schreibzugriff für den " "Nutzer 'partimag' ist nicht erlaubt." #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "Fehler beim Erzeugen der temporären Datei [%s]. Schreibzugriff ist nicht " "erlaubt." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "Datei ist zu groß (größer als 2 GB). Vorgang wird abgebrochen. " #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Unbekannter Fehler %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Newt debug Information" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Weiter" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Ja" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Nein" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partition sichern/rücksichern" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Imagedatei erstellen/benutzen" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Aufgabe durchführen" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Partition in eine neue Datei sichern" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Partition aus einer Datei rücksichern" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "MBR aus einer Datei rücksichern" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Verbindung zu Server" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Verschlüsseln der Netzwerkdaten mittels SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL Unterstützung ist nicht einkompiliert" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL und login Unterstützung ist nicht einkompiliert" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/Name des Servers:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Port:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Weiter (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Über" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "Das Feld \"Image\" ist leer. Bearbeitung nicht möglich" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "Das Feld \"IP/Name des Servers\" ist leer. Bearbeitung nicht möglich" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "Ungültiger Wert im Feld \"Port\". Bearbeitung nicht möglich" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Beschreibung der Partition" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Beschreibungstext der gespeicherten Partition:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Text darf nicht leer sein" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Passwort erforderlich" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Login eingeben" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Passwort eingeben" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Datenträger ist voll! Dateiteil (%s.%.3ld) kann nicht nach%s geschrieben " "werden\n" "Bitte neuen Pfad eingeben (ohne Dateiname):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Neue Datenträger Bezeichnung" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "Serverport muss zwischen 1 und 65535 liegen\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Kompressionsmodus muss 0(kein), 1(gzip) oder 2(bzip2) sein\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Endeaktionsmodus muss 0(warten), 1(herunterfahren), 2(neustarten) oder 3" "(beenden) sein\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "Debugmodus muss 0(kein), 1(Benutzer), 2(Entwickler) oder 3(debugging) sein\n" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Datenträgergröße: %llu Bytes (%ld MiB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image Version %s (lizenziert unter GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Kann Debug Datei nicht öffnen.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "Sie haben devfs aktiviert aber nicht eingebunden." #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "Der MBR wurde erfolgreich rückgesichert" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulation" #: src/client/main.cpp:726 msgid "Operation" msgstr "Ausführung" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Fehler: Der Rechner lässt sich nicht herunterfahren" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Fehler: Der Rechner lässt sich nicht neustarten" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "Fehler: Anzahl der verbleibenden Images konnte nicht bestimmt werden." #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "DEBUG: Rechner neustarten" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) Version %s [%s]\n" "---- lizenziert unter GPL 2 (GNU General Public License) ----\n" "\n" "unterstützte Dateisysteme:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), " "hpfs\n" "\n" "Aufruf: partimage [Optionen] \n" " partimage \n" "\n" "Bsp: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "Bsp: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "Bsp: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "Bsp: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "Bsp: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "Bsp: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Argumente:\n" "* :\n" " - save: Sichern einer kompletten Partition in eine Datei\n" " - restore: Rücksichern einer kompletten Partition aus einer Datei\n" " - restmbr: Rücksichern eines MBRs aus einer Datei auf die Festplatte\n" " - imginfo: Information aus Imagedatei anzeigen\n" "* : Name der Partition die gesichert/rückgesichert wird (Beispiel: /" "dev/hda1)\n" "* : Name der Sicherungs-/Rücksicherungs-Datei. Kann sehr groß " "werden\n" "\n" "Optionen:\n" "* -z, --compress (Kompressionsstufe der Imagedatei):\n" " -z0, --compress=0 keine Kompression: schnell aber groe Imagedatei\n" " -z1, --compress=1 gzip Kompression: schnell mit kleiner Imagedatei " "(default)\n" " -z2, --compress=2 bzip2 Kompression: langsam mit noch kleinerer " "Imagedatei\n" "* -c, --nocheck keine Prüfung der Partition\n" "* -o, --overwrite Überschreiben ohne Rückfragen\n" "* -d, --nodesc Beschreibungstext der Imagedatei unterdrücken\n" "* -V, --volume (verteile Imagedatei auf mehrere Datenträger)\n" " -VX, --volume=X Datenträgergröße ist X KB\n" "* -w, --waitvol Warten bei Datenträgerwechsel\n" "* -e, --erase freie Blöcke mit Nullwerten auffüllen\n" "* -m, --allowmnt Bearbeitung trotz eingebundener Partition. ACHTUNG: " "Gefahr!\n" "* -M, --nombr MBR (Master Boot Record) nicht in Imagedatei sichern\n" "* -h, --help zeigt diesen Hilfstext\n" "* -v, --version zeigt Programmversion\n" "* -i, --compilinfo zeigt benutzte Kompilieroptionen\n" "* -f, --finish (Befehl nach erfolgreicher Ausführung):\n" " -f0, --finish=0 warten: Partimage wartet auf Benutzereingabe\n" " -f1, --finish=1 herunterfahren: Der Rechner wird heruntergefahren " "(shutdown)\n" " -f2, --finish=2 neustarten: Der Rechner wird neu gestartet (reboot)\n" " -f3, --finish=3 beenden: Partimage beendet sich\n" "* -b, --batch batch Modus: die Ausführung läuft ohne " "Benutzereingaben\n" "* -y, --nosync Keine Festplatten Synchronisation nach Beendigung " "durchführen. ACHTUNG: Gefahr!\n" "* -sX, --server=X IP Adresse des partimaged Servers\n" "* -pX, --port=X Port Nummer des partimaged Servers\n" "* -g, --debug=X setzen des Debug Modus auf X (default: 1)\n" "* -n, --nossl Keine SSL Netzwerkverschlüsselung\n" "* -S, --simulate Rücksichern nur simulieren\n" "* -aX, --automnt=X automatisches Einbinden (mount) mit den Optionen X." "Siehe auch Dokumentaion\n" #: src/client/main.cpp:894 msgid "stable" msgstr "stabil" #: src/client/main.cpp:894 msgid "unstable" msgstr "unstabil" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s erfolgreich beendet:\n" "\n" "Verbrauchte Zeit:.....%s\n" "Durchsatz:............%s/Min\n" "Kopierte Datenmengen:.%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "Bereite Ausführung vor. Bitte warten..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Sichere Partition in die Imagedatei..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "Bereite Ausführung vor" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 msgid "Impossible to read the magic: the image is damaged" msgstr "MBR Kennung Lesefehler: Imagedatei ist beschädigt" #: src/client/misc.cpp:1016 msgid "CRC changed: the image is damaged" msgstr "Anfangskennung Lesefehler. Imagedatei ist beschädigt" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "Geänderte Datenträger Nummer: Die Image Datei ist beschädigt." #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inode nicht gefunden" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "%s inode nicht gefunden. Auf Wunsch kann Partition Image ihn anlegen. Sie " "können ihn auch selbst mit dem Kommando mknod erzeugen. Soll Partition Image " "ihn nun anlegen?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s ist kein Blockgerät." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "Kein Zugriff auf /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Fehler beim Lesen von /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "Die Partition %s ist eingebunden. Partition Image kann mit eingebundenen " "Partitionen nicht umgehen. Bitte zuerst Partition aushängen (mittels " "\"umount %s\")" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "Datenträgerkapazität muss größer als 1024 KB sein" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Ungültige automount Optionen. Siehe Dokumentation" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "Das 2. Argument [%s] muss ein gültiges Gerät sein (Bsp: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Das 3. Argument [%s] muss eine reguläre Datei sein (weder Verzeichnis noch " "symbolischer Verweis, ...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Partimage verlassen?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Ausführung wirklich abbrechen?" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "lokaler CRC Fehler" #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Positionierungsfehler in CCheck. Wahrscheinlich durch Datenkorruption. " "Trotzdem fortfahren?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "lokaler CRC Fehler" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Positionierungsfehler in CCheck. Wahrscheinlich durch Datenkorruption. " "Trotzdem fortfahren?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "CRC Fehler in CCheck. Wahrscheinlich durch Datenkorruption. Trotzdem " "fortfahren?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "Einlesen der Partitionseigenschaften" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "Prüfen des Dateisystems (fsck)" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "Schreibe Anfangskennung" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "Schreibe Datenblöcke" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "Lese Infos über Partition" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Blockgröße....................%llu Bytes\n" "Anzahl Blöcke.................%llu\n" "Benutzte Blöcke...............%llu\n" "Freie Blöcke..................%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sPlatzbelegung.................%llu %%\n" "Belegter Speicherplatz........%s\n" "Freier Speicherplatz..........%s\n" "Größe der Bitmap..............%s\n" "Label.........................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sAnzahl Gruppen................%lu\n" "1. Block......................%lu\n" "Ext3fs Journalinfo............%s\n" "Freier Super Block............%s\n" "Unterstützung großer Dateien..%s\n" "Dateisystem Version...........%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "ja" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "nein" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informationen zu Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informationen zu Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Fehler beim Lesen des Bitmap" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sSektor Größe..................%u\n" "Sektors pro Cluster...........%u\n" "Reservierte Sektoren..........%u\n" "Stammverzeichniss Sektoren....%lu\n" "Anzahl FAT Tabellen...........%u\n" "Anzahl Sektoren...............%lu\n" "Sektoren pro FAT..............%lu\n" "Anzahl Cluster................%lu\n" "Benutzte Cluster..............%lu\n" "Freie Cluster.................%lu\n" "Beschädigte Cluster...........%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Information zu FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Bootsektor Lesefehler" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster darf nicht null sein. Ggf. ist angegebene Partition " "kein FAT Dateisystem." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "FSInfo Lesefehler" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s enthält kein NTFS Dateisystem" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Speichermangel: readBitmap() braucht %lu Bytes zum Lesen des Datensatzes" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Lesefehler bei MFT Datensatz $Bitmap. Unscharfe Suche starten? Hinweis: " "dieser Vorgang kann länger dauern!" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "$bitmap bei unscharfer Suche nicht gefunden" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Datensatz $bitmap kann nicht verwendet werden" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS $Bitmap ist zu klein" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Speichermangel" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes pro Sektor..............%u\n" "Sektoren pro Cluster..........%u\n" "Datensatzgröße................%lu\n" "LCN des MFT Datenattributes...%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Informationen zu NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Speichermangel: readVolumeLabel() braucht %lu Bytes zum Lesen des Datensatzes" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: \"Attribute List\" Attribut wird z.Z. nicht unterstützt." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Kompressionsflag des DATA Attributes ist ungleich Null: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Resident data Attribut wird z.Z. nicht unterstützt." #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: Rückgabe von processRunList() = -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Fehler in readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "Attribut \"filename\" muss persistent sein !" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "suche $bitmap Datensatz" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "Unscharfe Suche war erfolgreich" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS Version:.................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "Informationen zu HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Boot Block Lesefehler" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Super Block Lesefehler" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Reserve Block Lesefehler" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Ungültige HPFS Kennung. Keine HPFS Partition gefunden." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Informationen zu ReiserFS" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Informationen zu JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Informationen zu XFS" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Warte ..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "Fehler!" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "ermittle Speicherplatz Bedarf ..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "Schreibe ..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "Öffne zum Schreiben ..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "Sichere" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "Lese ..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "Schließe ..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "Öffne zum Lesen ..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "Rücksichern" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "Fertig" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Client #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Status" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Rechner" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Ort" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Größe" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "Warte" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Speicherzugriffsfehler. Bitte Bug melden und Datei [%s] an die Autoren " "senden\n" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) Version %s\n" "---- lizenziert unter GPL 2 (GNU General Public License) ----\n" "\n" "Aufruf: partimaged [Optionen]\n" "\n" "Optionen:\n" "* -h, --help zeigt diesen Hilfstext\n" "* -v, --version zeigt Programmversion\n" "* -pX, --port=X Server Portnummer (default %d)\n" "* -D, --daemon startet im Hintergrundmodus\n" "* -r dir, --chroot dir Aufruf von chroot. Verbessert die Sicherheit\n" "* -g, --debug=X setzen des Debug Modus auf X (default: 1)\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Fehler beim Öffnen der Logdatei %s: %s.\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Bitte beheben und erneut starten.\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "Benutzer \"%s\" nicht gefunden\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "Bitte hinzufügen und erneut starten\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Warnung: Fehler beim Setzen der euid. Keine SuperUser Rechte (root)\n" "Ggf. kann es zu \"Zugriff verweigert\" Fehlermeldungen kommen.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Daemon Version %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Daemon Version %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(lizenziert unter GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Warte auf Client ..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "zuviel Clientverbindungen" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: Kompilieroptinen ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" "\n" "* Version ist %s [%s].\n" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Unterstützte Dateisysteme:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Ext2fs Unterstützung mit libext2fs library\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Ext2fs Unterstützung: buildin Code\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Debug Optionen:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - SSL AKTIVIERT\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - SSL DEAKTIVIERT\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "wahr" #: src/shared/common.cpp:106 msgid "false" msgstr "falsch" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Sonstige Optionen:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - USER LOGIN ERFORDERLICH\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - USER LOGIN NICHT ERFORDERLICH\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS ungenutzt\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL AKTIVIERT\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL DEAKTIVIERT\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID AKTIVIERT\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID DEAKTIVIERT\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld Bytes" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "%.2f KiB" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "%.2f MiB" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "%.2f GiB" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "%.2f TiB" partimage-0.6.8/po/remove-potcdate.sin0000644000000000000000000000066011252653200016421 0ustar rootroot# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } partimage-0.6.8/po/gl.gmo0000644000000000000000000010523511252653754013740 0ustar rootrootÞ•6Ì £|  1/Q"¤ ºXÅ—¶MÐ''FPng¿‰'#±ËÕt¡¬ "à æ !ƒ!4¡!Ö!Ü! õ! "$"7"$G",l"’™"(,#U#m#…#ž#+·#ã#9ù#&3$-Z$$ˆ$­$Ã$Ú$-ò$ %5%L%+_%‹%£%%º%"à%&"&;&S&i&}&6„&]»&0'J'Z'‚s'ö' ((>(E(c(l('~('¦(&Î(%õ(!)"=)!`) ‚)5£) Ù)æ)mø).f*•* ž*¬*$Ì*$ñ*)+@+q`+Ò+4ï+9$,$^,*ƒ,®,À,Ó,ä,"ø,-!-@-]O-+­- Ù-ã-!.%.$E. j.t.….™.­.F¾.$/–*/‘Á/<S11¥1·1¼1Á1Ø1%ò1282$X2}22 ¡2-Â2%ð273;N3 Š3 «3+Ì3ø3 44#4<46N47…4+½4"é4 55+5 B5L55O5…5 ”5  5-Á5ï5Rò5 E6O6W6 k6y6Aˆ6FÊ6 77,7 E7"P7&s7=š7-Ø78$8A8%a8‡8(™8Â8È8Í8Ô8!ê8 9$,9Q9W9$t9%™9L¿9 ::2':Z:1_:,‘:1¾:#ð:(;I=;‡;;•;+ª;4Ö;? <+K<<w<ˆ´<+==‰i>!ó> ?(6?G_?à§?áˆ@#jAmŽA©üA¦B4CJLDG—DßD\_E?¼EVüEMSF ¡FO¯FTÿF+TG€GH$1H=VHt”H IxI“I˜I¶I ÍIÚIwâIZJkJ|JM€J9ÎJ3K!]5Y] ](°]*Ù]/^*4^%_^*…^*°^Û^ö^3ÿ^f3_0š_Ë_,á_Œ`›`³`3Ì`a%a -a7a(Ka&ta%›a%Áa'ça&b%6b$\b@b ÂbÏbeäb5Jc €cŠc™c#¹c$Ýc)d!,dŒNdÛd.ôd:#e"^e3eµeÌeçeÿe)fAfFf dfrrf:åf g!)g#Kg og$g µg¿gÓgægùgN h#Xhª|hŽ'iN¶jk k1k8k@kUk%sk™k!¹k#Ûkÿkl&l3Cl%wlDlAâl$$m*Im3tm¨m ¸mÅm%Ümn<n>Pn2n"Ân ånñn! o /o=o4Aovo†o%™o6¿oöoJùo DpNpVpnppK•pOáp1qAqYq uq#€q'¤q8Ìq3r9r%Rrxr*˜rÃr/Ùr ss ss 4sUs0ss ¤s&¯s$Ös,ûsM(t vt t+t»t2Ât,õt1"u#Tu(xuI¡uëuòuûu4v?PvGv2Øv, w8w1Éw‹ûx'‡y¯y'Ïy\÷yÇTzÒ{$ï{h|Ÿ}||}š}Cž~Eâ~‚(g«G€\[€I¸€ a ao&Ñ„ø}‚#‚@Á‚iƒlƒxƒøƒ(„)„ C„ P„{\„Ø„ç„÷„Nú„6I…1€…#²…Ö…+ï… †'†@†G†c†Ii†A³† õ†ÿ†‡,‡!<‡^‡/x‡ ¨‡¶‡Qȇ/ˆJˆNˆUˆiˆƒˆ"Œˆ#¯ˆ2Óˆ ‰‰2‰/;‰k‰Hs‰¼‰ Û‰^æ‰ EŠ QŠ [ŠeŠ |ŠŠŠšŠë-TÎ'ªþM|2w"=*cÝé #ÏZüÅg{¦i5“ºEd(.™xˆÓ¾Àj-ý‹Iÿy)$SÄ?  $VÒ䮣Y‰ÚvД© ð Fí§e*›öPl3t!r†Õ…U~èµH–5œÌÑÂ&ò‘,𨯕+É` ¬]@ƒ³JñÜo4L.)fÃâp ¸„˜Ç‚+8/<’ æ—[  ÔGÁ/W¶"\ óàŽ­0ŠQ2ãÈ·D²}4RÊN´q×çø°Íî9>¤¯õ¿ Û(%ï_¥:÷sÙ6½6A;a¡#ôuK%Ëû«¹'0ìåC! z€ÞáhêùŒn¢XBú‡»k,ߟžÖmb7^O1¨3&¼1± * Debug options: * Other options: * Supported file systems: - - Ext2fs support: based on libext2fs library - Ext2fs support: internal code $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostIP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimagedPartition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluTime elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Volume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sadd it and retry checking the file system with fsckclosing ...copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: partimage 0.6.1 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2000-11-18 20:00+0200 Last-Translator: Sergio Rua Language-Team: Galician MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit * Opcións de depuración: * Outras opcións: * Sistemas de ficheiros soportados: - - Soporte Ext2fs: basado na biblioteca libext2fs - Soporte Ext2fs: código interno búsqueda de rexistro $bitmap%lld bytes%s rematou satisfactoriamente: Tempo empregado: %s Velocidade:......%s/min Datos copiados:..%so inodo %s non existe. Partimage pode crealo por vostede. Pode tamén empregar o manual do mknod. ¿Desexa que este inodo sexa creado por vostede?%s non é un periférico en modo bloque.%s non é unha imaxe do Partition Image ou está danada. Sintoo, non se pode continuar.%s non é unha imaxe do Partition Image.%s non é unha partición no sistema de ficheiros NTFS%s non é o primero volume da imaxe. Por favor, reintenteo co volume numerado coma 000%sNúmero de bloques alugados:...%lu Bloques por Grupo Alugado.....%lu Tamaño dos grupos alugados:...%s %sBytes por sector..............%u Sectores por cluster..........%u Tamaño do ficheiro gravado....%lu LCN de MFT Data attrib........%llu %s Versión HPFS:................%d %sNúmero de grupos..............%lu Primeiro bloque...............%lu Ext3fs journalization.........%s Sparse super block............%s Soporte de ficheiros grandes..%s Revisión do s. de ficheiros...%lu %sTamaño do sector..............%u Sectores por cluster..........%u Número de Sectores reservados.%u Sectores no directorio raíz...%lu Número de tablas FAT..........%u Número total de Sectores......%lu Sectores por FAT..............%lu Número de Clusters............%lu Clusters empregados...........%lu Clusters baldeiros............%lu Clusters danados..............%lu %sEmpregado do espacio:.........%llu %% Espacio empregado.............%s Espacio baldeiro..............%s Tamaño do bitmap..............%s Etiqueta......................%s (distribuido baixa a GNU GPL 2) * Ficheiro de imaxen para crear/empregar* Partición a restaurar/gardar-------------------- MBR %.3d ------------------- Dispositivo:...........%s Número de bloques no dispositivo: %llu Dispositivo modelo:....%s ==== Partition Imaxe: compilado cas opcións ==== Acerca deAcerca do Partition Image %sAcceso denegadoAcción cancelada a petición do usuarioAcción a facer:Montaxe automáticoDivisión automática (cando non queda espacio)Espacio dispoñible para a imaxe:..%s = %llu bytesTamaño do bloque..............%llu bytes Número total de bloques.......%llu Número de bloques empregados..%llu Número de bloques baldeiros...%llu Non se pode detectar o sistema de ficheiros da partición %sNon se pode bloquear a partición %sNon se pode abrir a partición %sNon se pode ler %s do ficheiro de imaxeNon se pode ler o sector 'FSInfo'Non se pode ler o MBR: imaxe danadaNon se poden ler os 'super bloques'Non se pode ler o bloque %ld dende a partición (%s)Non se pode ler o bitmap %ld dende a imaxeNon se pode ler o bloque %ld dende a particiónNon se pode ler o bloque %ld dende a imaxe (%d)Non se pode ler o bloque de arranqueNon se pode ler o sector de arranqueNon se poden ler as informaciónsNon se pode ler a cabeceira: a imaxe foi danadaNon se pode ler a cabeceira principalNon se poden ler os 'super bloques'Non se pode escribir o MBRNon se pode ler o seguiente ficheiro de volume: %s %sNon se pode escribir %s na imaxeNon se poden escreber os 'super bloques'Non se pode escribir o bitmap %ld na imaxeNon se pode escribir o bloque %ld no disco duroNon se pode escribir o bloque %ld na imaxeNon se poden escribir as informaciónsNon se pode escribir a cabeceira principalNon se pode escribir a cabeceira principalNon se pode escribir o MBRCancelarNon se pode crear o temporal [%s]. Non hai espacio.Non se pode crear o temporal [%s]. Por favor, comproba se hai espacio dabondo e ten permiso de acceso.Non se atopa o $bitmap con búsqueda experimentalNon se pode montar %sNon se pode abrir o ficheiro de depuración. Non se pode ler "/proc/partitions" (%s). Entón, debe chamar o Partition Image dende a línea de comandos. Vexa "partimage --help" para axuda.Non se pode ler a imaxeNon se pode desmontar %sNon se pode empregar o ficheiro de rexistro $bitmapTrocarComprobar a partición antes de salvarCliente #Nivel de compresiónNivel del compresión:............Ningún Nivel de compresión:.............bzip2Nivel de compresión:.............gzipNivel de compresión:..............lzoNivel del compresión:............NingúnNivel de compresión:.............bzip2Nivel de compresión:.............gzipNivel de compresión:.............lzoO modo de compresión debe ser 0 (ningún), 1 (gzip) ou 2 (bzip2) ConfirmaciónConectar có servidorConexión rexeitada polo servidor: opcións de rede incompatibles. Tenteo sen a opción '-L' no servidorConexión rexeitada polo servidor: versións diferentesContinuarContinuar (F5)Ficheiro de imaxe actual:....%sFicheiro de imaxe actual:........%sDatos copiados:..............%s / %sDatos copiados:...................%s / %sSistema de ficheiros detectado.%s¡Disco cheo! Non se pode escreber o seguinte volume (%s.%.3ld) en %s Por favor, introduza outra ruta a directorio (sen o nome de ficheiro):Disco co MBR a restaurar¿Realmente desexa cancelar a operación actual?Realmente desexa restaura %s dende o ficheiro de imaxa %s?Encriptar os datos da rede con SSLIntroduzca outra ruta completa (directorio e nome).Introduzca descripciónIntroduza un novo ficheiroIntroduza o seu usuarioIntroduza o contrasinalBorrar os bloques libres con valores ceroErroErro en readFilenameAttributeErro o pecharErro mentres se comproban os datos: Número de bloques incorrecto. Se cadra o volume ou algúns datos foron saltadosErro durante a escritura do ficheiro de imaxe: disco cheo!Erro: %sErro: Non se pode executar 'halt'Erro: Non se pode executar 'reboot'Tempo estimado para o remate:.%sTempo estimado para o remate:.....%sSaír (F6)¿Saír do partimage?Información Ext2fsInformación Ext3fsInformación FATO ficheiro %s non é un ficheiro regular. Por seguridade, non podemos continuarSistema de arquivos..............%sFicheiro demasiado grande (máis de 2GB). Non se pode continuar. Este problema pode provir do kernel, da glibc ou do sistema de ficheiros no que se está a escreber a imaxeSistema de ficheiros:..%s Descripción:...........%s Dispositivo orixinal:..%s Ruta orixinal:........ %s Bandeiras:.............%ld: %s Data de creación:......%sTamaño da partición:....%s Servidor:..............%s Versión compatible:....%s Algoritmo de encrip.:..%ld -> %s Número MBR salvados:...%lu Sistema da copia: - máquina:.............%s - sistema operativo:...%s - versión:.............%s O modo para rematar debe ser 0 (agardar), 1 (halt), 2 (reiniciar) ou 3 (saír) Correxir esto e reiniciar Información HPFSApagarHóspedeIP/nome do servidor:Se remata satisfactoriamente:Imaxe creada en:..................%s Tamaño da imaxe:.............%sFicheiro de imaxe a crear......%sFicheiro de imaxa a empregar.....%sInformación da imaxeDivisión da imaxeImposible ler o MBR do discoImposible poñer a cero os bloques do disco duro: %sEn ficheiros de tamaño:..............Números máxicos de HPFS inválidos. Non é unha partición HPFS válida.Opcións de automontaxe inválidas. Lea o manual para máis detallesNivel de compresión inválido para %sSistema de ficheiros danado ou inválido %sNúmero de volumes inválido (%ld en troques de %ld).Información JFSLocalizaciónFiestra principal (F7)O $Bitmap do NFTS é demasiado pequenoInformación NTFSNTFS: O atributo "Lista de atributos" non está implementado.NTFS: O 'flag' de compresión para o atributo DATOS é nulo: %ldNTFS: Atributos de datos residentes non soportadosNTFS: processRunList() devolveu -1Novo VolumeNova localización de volumeInformación de depuración do NewtSeguinte NonO MBR foi atopado nesta imaxe. Non podemos continuarSen descripciónBandeira non postaNengún (moi rádio + imaxe moi grande)Non unha partición %s. Comprobe o sistema de ficheirosOkSó 4096 bytes por bloque %s de volume. Actualmente o bloque é de %lu bytesOperaciónOpciónsMBR orixinal a empregarMemoria insufienteMemoria insufiente.Memoria insuficiente: preciso %lu bytes para ler o gardado en readBitmap():Memoria insuficiente: preciso %lu bytes para ler o gardado en readVolumeLabel()¿Sobreescribir?¿Sobreescribir a imaxe?Sobreescribir sen preguntarPartimagedDemo do Partition Imaxe versión %s Demo do Partition Imaxe versión %s+SSL Partition Image versión %s (baixo a licencia GNU GPL2). As comprobacións sobre a partición atoparon erro(s)Descripción da particiónPartición a restaurar:.............%sPartición a gardar:..........%sA partición estaba na unidade:.........%s Contrasinal requeridoPor favor, prema "ok" para mountar [%s] en [%s]Porto:SaírReiniciarInformación ReiserFSRestaurar o MBR dende unha imaxeRestaurar o MBR no disco duroRestaurar a partición dende un ficheiro de imaxeReintentarO SSL foi deshabilitado en compilaciónGardar a partición nun novo ficheiroGardando a partición no ficheiro de imaxe...Fallo de segmentación. Por favor, envíe o erro e o ficheiros [%s] os autores SimulaciónModo simuladoRestauración simulada (non se escrebe nada)TamañoPartición a restaurar:.............%s = %llu bytesTamaño da partición:.........%s = %llu bytesTamaño da partición orixinal:.....%s = %llu bytesVelocidade:..................%s/minVelocidade:.......................%s/minDividir os volumes nun tamaño enteiro superior a 1024 (tamaño >= 1024 KB)EstadoCorrectoO texto non pode estar baldeiroO campo "Imaxe" está baldeiro. Non se pode continuarO campo "Servidor IP/Nome" está baldeiro. Non se pode continuarO campo "Porto Servidor" non é un enteiro válido. Non se pode continuarO atributo "nome de ficheiro" deber ser residente!A imaxe %s xa existe. Desexa sobreescribila?A partición %s está montada. Partition Image non pode funcionar sobre particións montadas. Por favor, desmontea. Pode usar o comando "umount %s"O MBR é unha parte moi importante do disco duro. Se escrebe un MBR defectuoso pode perder toda-las particións do seu disco duro. Non continue a menos que saiba o que está a facer. Prema 'Continuar' para restaurar. Dispositivo co MBR a restaurar:.....%s [%llu] MBR Orixinal:.......................%s [%llu]O MBR de [%s] foi satisfactoriamente restaurado. Precisa reiniciar a sua computadora se desexa que o sistema operativo empregue o novo MBR.O MBR foi restaurado satisfactoriamenteO actual soporte de %s é beta !O actual soporte de %s é experimental !O nivel de depuración debe ser 0 (ningún), 2 (usuario) ou (desenvolvedor) ou 3 (depuración) A seguinte imaxe xa existe. ¿Queres sobreescribila ou troca-lo nome? Ficheiro: %s Para trocar o nome, introduza a ruta completa (localización + nome) sen o número de volume ó final, e prema "Trocar"A seguinte imaxe está bloqueada. ¿Queres reintentalo ou troca-lo nome da imaxe? Ficheiro: %s Para trocar o nome, introduza a ruta completa (localización + nome) sen o número de volume ó final, e prema "Trocar"A imaxe "%s" non se pode ser atopadaA imaxe foi gardada cunha versión (%s) máis nova do Partition Image. Por favor, obteña a última versión.A imaxe foi creada cunha versión (%s) do Partition Image máis antiga. Debería empregar esa versión para restaurar a imaxe ou volver a creala coa versión actualA imaxe que tenta restaurar foi encriptada. A versión actual non suporta a encriptación. Por favor, obteña a última versión.O disco duro orixinal non cabe no disco duro actual. O MBR que está tentando restaurar foi gardado noutro disco duro. Isto significa que o disco duro orixinal e o actual non teñen a mesma capacidade ou non son o mesmo dispositivo (%s e %s). ¿Desexa continuar?A partición %s está bloqueada por outr proceso. Non pode empregala.A partición %s está bloqueada por outro proceso. Non se pode empregarA partición é demasido pequena para restaurar: O tamaño orixinal é:...........%llu bytes A partición destino:...........%llu bytesA partición foi gardada cunha versión posterios do Partition Image. Por favor, obteña a última versión.O segundo argumento [%s] debe ser un dispositivo válido (ex: /dev/hda1)O terceiro argumento [%s] debe ser un ficheiro regular válido (non un directorio, enlace...)O volume cambiou. Antigo: %s Novo: %s/%s.%.3ld Prema Enter para continuarTodo o MBRHoubo un erro de posicionamiento no 'CCheck'. Os datos se cadra foron danados. ¿Desexa continuar?Houbo un erro de posicionamiento no 'CCheck'. Os datos se cadra foron danados. ¿Desexa continuar?Houbo un erro mentres se leía o bitmapHoubo un erro ó restaurala partición: Os CRC64 son diferentes; a imaxe foi danada: Orixinal CRC64:.....%llu Actual CRC64:.....%lluTempo transcurrido:..........%sTempo transcurrido:..............%sDemasiados clientes conectados ó partimaged. Inténteo máis tardeImposible ler o rexitro MFT do $Bitmap. Desexa facer unha búsqueda experimental? (pode levar moito tempo)Volume non atopadoNúmero de volume:......%lu Tamaño do volume:......%s Nivel de compresión:...%ld -> %s Identificador:.........%llu=%llX AgardarAgardar despois de cada cambio de volumeAgardando polo cliente...Agardando...AdvertenciaAdvertencia: non pode cambiar o 'euid' porque non foi lanzado coma root espérase un acceso denegado ou problemas coma ise. Que restaurar:Información XFSSiNon entrou coma root. Pode ter erros de "acceso denegado" durante a execución.Está empregando o modo simulado: non se escreberá nadaPode escribir a descripción da partición gardada:Non ten dereitos de escritura en %sengadi-lo e reintentalo comprobando o sistema de ficheiros con fsckpechando...copiando os datos usados¡erro!búsqueda experimental feitafalsoo ficheiro %s non é un ficheiro do partimage: a cadea máxica non coincideo ficheiro %s é demasiado pequeno para ser un volume do partimagerematandoobtendo espacio...a imaxe %s xa está abertaimaxe bloqueadaimposible atopara o usuario "%s" inicializando a operacióninicializando a operación. Por favor, agarde...inodo perdidoerro local de CRCm_cSectorsPerCluster non pode ser nulo. Comprobe se a partición para gardar é FATa cadea máxica non coincide: erro na imaxe [%s]nonnengúnabrindo para ler...abrindo para escritura...lendo...lendo a información das particiónslendo as propiedades das particiónsrestaurar a partición dende unha ficheiro de imaxerestaurandogardar a partición nun ficheirosalvandoo porto do servidor debe estar entre 1 e 65535 estableo volume actual non corresponde ca imaxe actual: identificado incorrectodemasiados clientes conectadosverdadeiroimposible acceder a %s Por favor, introduza outra ruta ó directorio (sen o nome de ficheiro):descoñecidoinestableagardandoescribindo a cabeceiraescribindo...ruta incorrectasipartimage-0.6.8/po/en@boldquot.header0000644000000000000000000000247111252653200016240 0ustar rootroot# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # partimage-0.6.8/po/quot.sed0000644000000000000000000000023111252653200014267 0ustar rootroots/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g partimage-0.6.8/po/pl.po0000644000000000000000000015342611252653200013574 0ustar rootroot# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Partimage\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2001-08-12 18:51+0100\n" "Last-Translator: Marek L. Kozak \n" "Language-Team: Polonais \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Odtworzenie MBR na twardy dysk" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Dysk z MBR do odtworzenia" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Oryginalny MBR, który bêdzie u¿yty" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Co odtworzyæ:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Ca³y MBR" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Nie mo¿na odczytaæ \"/proc/partitions\" (%s). Zatem musisz u¿yæ linii " "poleceñ, by uruchomiæ Partition Image. Wpisz \"partimage --help\" by uzyskaæ " "pomoc." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Kontynuuj (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Wyjd¼ (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Okno g³ówne (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "zapisz partycjê do pliku obrazu" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Poziom kompresji" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "¯aden (bardzo szybki + bardzo du¿y plik" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opcje" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Sprawd¼ partycjê przed zapisem" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Wprowad¼ opis" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Zama¿ bez powiadomienia" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Tryb dzielenia obrazu" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Automatyczne dzielenie (gdy brak miejsca)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Do plików których rozmiar jest:............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Czekaj po ka¿dej zmianie woluminu" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Je¶li zakoñczono sukcesem:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Czekaj" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Wy³±cz" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Prze³aduj" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Opu¶æ" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partycja do zapisania:...........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Rozmiar partycji:.......%s = %llu bajtów" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Plik obrazu do utworzenia.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Wykryty system plików:........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Poziom kompresji:...........¯aden" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Poziom kompresji:...........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Poziom kompresji:...........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Poziom kompresji:...........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Pozosta³y czas:................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Prêdko¶æ:....................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Skopiowane dane:.............%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Bie¿±cy plik obrazu:.........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Rozmiar pliku obrazu:........%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Dostêpne miejsce dla obrazu:.%s = %llu bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "odtwórz partycjê z pliku obrazu" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Wyczyszczenie wolnych bloków zerami" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Symulacja odtworzenia (bez ¿adnego zapisu)" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "odtwórz partycjê z pliku obrazu" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partycja do odtworzenia:..........%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Rozmiar partycji do odtworzenia:..%s = %llu bytes" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Plik obrazu, który ma byæ u¿yty:..%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "System plików:....................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Partycja by³a na urz±dzeniu:......%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Obraz utworzony:..................%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Rozmiar oryginalnej partycji:.....%s = %llu bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Czas miniony:.....................%s" #: src/client/gui_text.cpp:757 #, fuzzy, c-format msgid "Estimated time remaining:.........%s" msgstr "Plik obrazu do utworzenia.........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Prêdko¶æ:.........................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Dane skopiowane:..................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Bierz±cy obraz pliku:.............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Poziom kompresji:...............¯aden\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Poziom kompresji:................gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Poziom kompresji:................bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Poziom kompresji:................lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Zmieñ" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Anuluj" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Wprowad¼ now± nazwê pliku" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Nastêpuj±cy obraz pliku ju¿ istnieje.\n" "Czy chcesz zamazaæ czy zmieniæ nazwê pliku obrazu ?\n" "Plik: %s\n" "Aby zmieniæ nazwê pliku, proszê wprowadziæ pe³n± ¶cie¿kê dostêpu\n" "(lokalizacja + nazwa pliku) bez numeru woluminu na koñcu, \n" "i naci¶nij \"Zmieñ\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Zamazaæ obraz ?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Zama¿" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Nastêpuj±cy plik obrazu jest zablokowany.\n" "Czy chcesz zaczekaæ i ponowiæ próbê czy zmieniæ nazwê pliku obrazu ?\n" "Plik: %s\n" "Aby zmieniæ nazwê pliku, proszê wprowadziæ pe³n± ¶cie¿kê dostêpu\n" "(lokalizacja + nazwa pliku) bez numeru woluminu na koñcu, \n" "i naci¶nij \"Zmieñ\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "plik obrazu zablokowany" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Ponów próbê" #: src/client/gui_text.cpp:921 #, fuzzy, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "brak dostêpu do %s\n" "\n" "Proszê, wprowadziæ inn± ¶cie¿kê do katalogu (bez nazwy pliku):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "z³a ¶cie¿ka" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automatyczne montowanie" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Proszê, nacisn±æ \"ok\" aby zamontowaæ [%s] na [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Nie mo¿na odczytaæ nastêpuj±cej nazwy woluminu:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Wprowad¼ inn± pe³n± ¶cie¿kê dostêpu (katalog + nazwa)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Wolumin nie odnaleziony" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Flagi nieaktywne" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Brak opisu" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "¿aden" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "nieznany" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "System plików:.........%s\n" "Opis:..................%s\n" "Originalne urz±dzenie:.%s\n" "Originalna ¶cie¿ka:... %s\n" "Flagi:.................%ld: %s\n" "Data utworzenia:.......%sRozmiar partycji:......%s\n" "Nazwa hosta:...........%s\n" "Wersja Kompatybilna:...%s\n" "Algorytm szyfrowania:..%ld -> %s\n" "Liczba zapisanych MBR:.%lu\n" "\n" "System zabezpieczeñ.:\n" "- maszyna:.............%s\n" "- system operacyjny:...%s\n" "- wydanie:.............%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Urz±dzenie:............%s\n" "Liczba bloków urz±dzenia:.%llu\n" "Model urz±dzenia:......%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Numer woluminu:........%lu\n" "Rozmiar woluminu:......%s\n" "Poziom kompresji: ....%ld -> %s\n" "Identifikator:.........%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Plik obrazu \"%s\" nie mo¿e byæ odnaleziony" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Nie mozna odczytaæ pliku obrazu" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informacje o obrazie" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "B³±d" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "O Partition Image %s" #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image jest rozpowszechniany na licencji GNU GPL 2\n" "\n" "wersja:....%s\n" "sieæ:......http://www.partimage.org/\n" "\n" "Autorzy:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Nie mo¿na zapisaæ bloku %ld do obrazu" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Nie mo¿na zapisaæ %s do obrazu" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Nie mo¿na zapisaæ bloku mapy bitowej %ld do obrazu" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Nie mo¿na odczytaæ bloku mapy bitowej %ld z obrazu" #: src/client/interface_base.cpp:77 #, fuzzy, c-format msgid "Can't write block %ld to harddrive" msgstr "Nie mo¿na zapisaæ bloku %ld do obrazu" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Nie mo¿na odczytaæ bloku %ld z obrazu (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Nie mo¿na odczytaæ %s z obrazu" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Nie mo¿na odczytaæ SuperBloku" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Nie mo¿na zapisaæ SuperBloku" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Nie mo¿na odczytaæ bloku %ld z twardego dysku" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "" "Nie mo¿na odczytaæ bloku mapy bitowej %ld z partycji (%s) twardego dysku" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Nie mo¿na pisaæ do MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Nie mo¿na czytaæ z MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "To nie jest partycja %s. Sprawd¼ typ systemu plików" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "Partycja by³a zapisana nowsz± wersj± Partion Image. Proszê ¶ci±gn±æ ostatni± " "wersjê." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "B³±d podczas zapisu pliku obrazu: pe³ny dysk !" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Nie mo¿na wykryæ systemu plików partycji %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Nie mo¿na zapisaæ g³ównego nag³ówka" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Nie mo¿na zapisaæ g³ównego ci±gu" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Nie mo¿na odczytaæ g³ównego ci±gu" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Obraz który próbujesz odtworzyæ by³ zaszyfrowany. Obecna wersja nie wspiera " "szyfrowania. Proszê ¶ci±gn±æ ostatni± wersjê programu." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s nie jest pierwszym woluminem obrazu. Proszê spróbowaæ ponownie z numerem " "woluminu 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s nie jest poprawn± partycj± pliku obrazu." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Partycja jest zbyt ma³a by mog³a byæ odtworzona:\n" "Originalny rozmiar partycji:........%llu bytes\n" "Docelowy rozmiar partycji:..........%llu bytes" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Wyst±pi³ b³±d podczas odtwarzania partycji:\n" "CRC64 s± ró¿ne, obraz pliku by³ uszkodzony:\n" "Originalne CRC64:.....%llu\n" "Bierz±ce CRC64:.......%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "B³êdny numer woluminu (%ld zamiast %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "B³±d podczas zamykania" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "Partycja %s jest ju¿ zablokowana przez inny proces. Nie mo¿na z ni± pracowaæ" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Nie mo¿na otworzyæ partycji %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Nie mo¿na zablokowaæ partycji %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Nie mo¿na odczytaæ g³ównego nag³ówka: plik obrazu by³ uszkodzony" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Nie mo¿na zapisaæ informacji" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Nie mo¿na odczytaæ informacji" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Nie mo¿na odczytaæ MBR Magic: plik obrazu by³ uszkodzony" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Ostrze¿enie" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Nie jeste¶ zalogowany jako root. Podczas pracy mog± pojawiæ siê b³êdy \"brak " "dostêpu\"" #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nowy wolumin" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Wolumin zosta³ zmieniony.\n" "Stary: %s\n" "Nowy: %s/%s.%.3ld\n" "Naci¶nij Enter aby kontynuowaæ" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Potwierdzenie" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Czy naprawdê chcesz odtworzyæ %s z pliku obrazu %s ?" #: src/client/interface_base.cpp:317 #, fuzzy, c-format msgid "%s found errors on the file system." msgstr "W systemie plików s± b³êdy, albo nie mo¿na uruchomiæ %s" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Bie¿±ce %s wsparcie jest eksperymentalne !" #: src/client/interface_base.cpp:345 #, fuzzy, c-format msgid "The current %s support is beta !" msgstr "Bie¿±ce %s wsparcie jest eksperymentalne !" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Tryb symulacji" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "U¿ywasz trybu symulacji: nie bêdzie wykonany ¿aden zapis" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "MBR jest bardzo wa¿nymi danymi na twardym dysku. Je¶li zapiszesz z³y MBR, " "stracisz wszystkie partycje na twardym dysku. Nie kontynuuj, chyba ¿e wiesz " "co robisz. Nici¶nij 'Kontynuuj' by otworzyæ.\n" "Urz±dzenie z MBR do ogtworzenia:....%s [%llu]\n" "Originalny MBR:.....................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Oryginalny twardy dysk nie mie¶ci siê na bie¿±cym twardym dysku. MBR który " "próbujesz u¿yæ by³ zapisany na innym twardym dysku. Oznacza to, ¿e " "oryginalny i bie¿±cy twardy dysk nie maj± tego samego rozmiaru lub s± na " "innych urz±dzeniach (%s i %s). Czy chcesz kontynuowaæ ?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Sukces" #: src/client/interface_base.cpp:399 #, fuzzy, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "MBR [%s] zaosta³ pomy¶lnie odtworzony. Bêdziesz musia³ zrestartowaæ komputer " "je¶li chcesz ¿eby system operacyjny uzywa³ nowego MBR." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "B³±d: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Operacja anulowana na ¿yczenie u¿ytkownika" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Plik obrazu %s ju¿ istnieje. Czy chcesz go zamazaæ ?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Odmowa dostêpu" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Nie masz uprawnieñ do zapisu na %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Niepoprawny poziom kompresji dla %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "plik obrazu %s jest ju¿ otwarty" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "plik %s jest zbyt krótki aby by³ woluminem partimage: nie mo¿na odczytaæ " "nag³ówka" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "plik %s nie jest plikiem partimage: ci±g ID nie pasuje" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "Ci±g ID nie pasuje: b³±d w pliku obrazu [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "bierz±cy wolumin nie mie¶ci siê w bierz±cym obrazie: z³y identyfikator" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Brak pamiêci" #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "niepoprawne has³o/odmowa logowania" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "Zbyt wielu klientów po³±czonych z partimaged. Proszê spróbowaæ pó¼niej" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "Partycja %s jest ju¿ zablokowana przez inny proces. Nie mo¿na z ni± pracowaæ" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "B³±d podczas sprawdzania danych: Niepoprawny numer bloku. Wolumin lub inne " "dane mog³y byæ pominiête." #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image wersja %s (distrybuowany na licencji GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "MBR by³ odtworzony z powodzeniem" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Symulacja" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operacja" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" #: src/client/main.cpp:894 msgid "stable" msgstr "" #: src/client/main.cpp:894 msgid "unstable" msgstr "" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "" #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "" #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Nie mo¿na odczytaæ MBR Magic: plik obrazu by³ uszkodzony" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Nie mo¿na odczytaæ g³ównego nag³ówka: plik obrazu by³ uszkodzony" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "" #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "tak" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "nie" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informacje ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informacje ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Wyst±pi³ b³±d podczas odczytu bitmapy" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Informacje FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Nie mo¿na odczytaæ boot sektora" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" #: src/client/fs/fs_fat.cpp:379 #, fuzzy msgid "Can't read FSInfo sector" msgstr "Nie mo¿na odczytaæ boot sektora" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s nie jest partycj± systemu plików NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Brak pamiêci: potrzeba %lu bajtów do odczytania pliku zapisu w readBitma()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Brak pamiêci" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "" #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "" #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "" #: src/server/partimaged.cpp:85 msgid "error !" msgstr "" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "" #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "" #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "" #: src/server/partimaged.cpp:157 msgid "saving" msgstr "" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "" #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "" #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "" #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "" #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" #: src/shared/common.cpp:80 msgid "\n" msgstr "" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr "" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr "" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr "" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr "" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr "" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr "" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr "" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr "" #: src/shared/common.cpp:105 msgid "true" msgstr "" #: src/shared/common.cpp:106 msgid "false" msgstr "" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr "" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr "" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr "" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr "" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr "" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr "" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr "" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "" #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Bajtów" #~ msgid "Overwrite image ?" #~ msgstr "Zamazaæ obraz ?" #~ msgid "" #~ "Can't open partition with ext2fs_open(). Maybe partition is not an ext2 " #~ "file system." #~ msgstr "" #~ "Nie mo¿na odczytaæ partycji funkcj± ext2fs_open(). Mo¿e nie jest " #~ "topartycja systemu plików ext2fs." #~ msgid "%s is not an ext2fs file system partition" #~ msgstr "%s nie jest partycj± systemu plików ext2fs" #~ msgid "Can't read block bitmaps\n" #~ msgstr "Nie mo¿na odczytaæ bloku bitmap\n" partimage-0.6.8/po/sk.po0000644000000000000000000023743711252653200013603 0ustar rootroot# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: partimage 0.7.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2003-09-25 00:01+0100\n" "Last-Translator: Milan Plzik \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-2\n" "Content-Transfer-Encoding: 8bit\n" # src/client/gui_text.cpp:56 #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Obnovi» MBR na harddisku" # src/client/gui_text.cpp:59 #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disk s MBR na obnovenie" # src/client/gui_text.cpp:62 #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Originálny MBR" # src/client/gui_text.cpp:65 #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Èo obnovi»" # src/client/gui_text.cpp:67 #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Celý MBR" # src/client/gui_text.cpp:203 src/client/misc.cpp:1741 #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Nemô¾em naèíta»\"/proc/partitions\" (%s). Na spustenie Partition Image " "musíte pou¾i» príkazový riadok. Napí¹te \"partimage --help\" pre pomoc " # src/client/gui_text.cpp:293 #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Pokraèova» (F5)" # src/client/gui_text.cpp:294 src/client/interface_newt.cpp:214 #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Koniec (F6)" # src/client/gui_text.cpp:295 #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Hlavné okno (F7)" # src/client/gui_text.cpp:306 src/client/gui_text.cpp:450 #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "ulo¾i» oddiel do súboru" # src/client/gui_text.cpp:308 #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Úroveò kompresie" # src/client/gui_text.cpp:309 #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "®iadna (veµmi rýchle + veµmi veµký súbor)" # src/client/gui_text.cpp:332 src/client/gui_text.cpp:596 #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Voµby" # src/client/gui_text.cpp:333 #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Skontrolova» oddiel pred ulo¾ením" # src/client/gui_text.cpp:334 #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Zada» popis" # src/client/gui_text.cpp:335 #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Prepísa» bez pýtania" # src/client/gui_text.cpp:338 #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Mód delenia obrazov" # src/client/gui_text.cpp:339 #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Automatické delenie (keï nie je miesto)" # src/client/gui_text.cpp:340 #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Do súborov, ktorých veµkos» je:....." #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" # src/client/gui_text.cpp:344 #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Èaka» po ka¾dom zväzku" # src/client/gui_text.cpp:346 src/client/gui_text.cpp:601 #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Ak sa skonèí úspe¹ne:" # src/client/gui_text.cpp:347 src/client/gui_text.cpp:602 #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Èakaj" # src/client/gui_text.cpp:348 src/client/gui_text.cpp:603 #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Zastav poèítaè" # src/client/gui_text.cpp:349 src/client/gui_text.cpp:604 #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Re¹tart" # src/client/gui_text.cpp:350 src/client/gui_text.cpp:605 #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Odchod" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" # src/client/gui_text.cpp:453 #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Oddiel na ulo¾enie:..........%s" # src/client/gui_text.cpp:456 #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Veµkos» oddielu:.............%s = %llu bajtov" # src/client/gui_text.cpp:459 #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Vytváraný súbor s obrazom....%s" # src/client/gui_text.cpp:465 #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Zistený súborový systém:.....%s" # src/client/gui_text.cpp:471 #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Úroveò kompresie:...........®iadna" # src/client/gui_text.cpp:474 #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Úroveò konpresie:............gzip" # src/client/gui_text.cpp:477 #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Úroveò kompresie:............bzip2" # src/client/gui_text.cpp:480 #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Úroveò kompresie:............lzo" # src/client/gui_text.cpp:531 #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Pou¾itý èas:.................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "" # src/client/gui_text.cpp:536 #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Rýchlos»:....................%s/min" # src/client/gui_text.cpp:539 #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Skopírovaných dát:...........%s / %s" # src/client/gui_text.cpp:571 #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Aktuálny súbor s obrazom:....%s" # src/client/gui_text.cpp:576 #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Veµkos» súboru s obrazom:....%s" # src/client/gui_text.cpp:580 #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Dostupné miesto pre obraz:...%s = %llu bajtov" # src/client/gui_text.cpp:593 src/client/gui_text.cpp:735 #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "obnovi» oddiel zo súboru s obrazom" # src/client/gui_text.cpp:598 #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Premaza» voµné bloky nulami" # src/client/gui_text.cpp:599 #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simulácia obnovovania (nebude sa zapisova»)" # src/client/gui_text.cpp:593 src/client/gui_text.cpp:735 #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "obnovi» oddiel zo súboru s obrazom" # src/client/gui_text.cpp:738 #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Oddiel na obnovenie:..............%s" # src/client/gui_text.cpp:741 #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Veµkos» oddielu na obnovenie:.....%s = %llu bajtov" # src/client/gui_text.cpp:744 #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Súbor s obrazom...................%s" # src/client/gui_text.cpp:747 #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Súborový systém:..................%s" # src/client/gui_text.cpp:752 #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Oddiel bol na zariadení:..........%s\n" # src/client/gui_text.cpp:755 #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Obraz bol vytvorený na:...........%s\n" # src/client/gui_text.cpp:758 #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Veµkos» pôvodného oddielu:........%s = %llu bajtov" # src/client/gui_text.cpp:697 src/client/gui_text.cpp:818 #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Pou¾itý èas:......................%s" # src/client/gui_text.cpp:459 #: src/client/gui_text.cpp:757 #, fuzzy, c-format msgid "Estimated time remaining:.........%s" msgstr "Vytváraný súbor s obrazom....%s" # src/client/gui_text.cpp:702 src/client/gui_text.cpp:823 #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Rýchlos»:.........................%s/min" # src/client/gui_text.cpp:826 #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Skopírovaných dát:................%s / %s" # src/client/gui_text.cpp:866 #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Aktuálny súbor s obrazom:.........%s" # src/client/gui_text.cpp:871 #: src/client/gui_text.cpp:804 #, fuzzy msgid "Compression level:................None\n" msgstr "Úroveò kompresie:................%s\n" # src/client/gui_text.cpp:474 #: src/client/gui_text.cpp:807 #, fuzzy msgid "Compression level:................gzip" msgstr "Úroveò konpresie:............gzip" # src/client/gui_text.cpp:477 #: src/client/gui_text.cpp:810 #, fuzzy msgid "Compression level:................bzip2" msgstr "Úroveò kompresie:............bzip2" # src/client/gui_text.cpp:480 #: src/client/gui_text.cpp:813 #, fuzzy msgid "Compression level:................lzo" msgstr "Úroveò kompresie:............lzo" # src/client/gui_text.cpp:891 #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Zmeni»" # src/client/gui_text.cpp:892 src/client/interface_newt.cpp:118 # src/client/interface_newt.cpp:128 src/client/interface_newt.cpp:141 # src/client/interface_newt.cpp:353 src/client/interface_newt.cpp:406 #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Zru¹i»" # src/client/gui_text.cpp:894 #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Zadajte nový názov súboru" # src/client/gui_text.cpp:938 #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Súbor s obrazom u¾ existuje.\n" "Chcete súbor prepísa», alebo zmeni» jeho meno ?\n" "Súbor: %s\n" "Pri zmene mena zadajte prosím úplnú cestu\n" "(umiestnenie + meno súboru) bez èísla zväzku na konci, \n" "a stlaène \"Zmeni»\"" # src/client/interface_base.cpp:406 #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Prepísa» obraz ?" # src/client/gui_text.cpp:943 #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Prepísa»" # src/client/gui_text.cpp:955 #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Súbor s obrazom je zamknutý.\n" "Chcete poèka» a skúsi» znovu, alebo zmeni» jeho meno ?\n" "Súbor: %s\n" "Pri zmene mena zadajte prosím úplnú cestu\n" "(umiestnenie + meno súboru) bez èísla zväzku na konci, \n" "a stlaène \"Zmeni»\"" # src/client/gui_text.cpp:960 #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "obraz zamknutý" # src/client/gui_text.cpp:960 #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Znovu" # src/client/gui_text.cpp:973 #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "nemô¾em získa» prístup k %s\n" "\n" "Prosím zadajte iný adresár (bez názvu súboru):" # src/client/gui_text.cpp:976 #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "chybná cesta" # src/client/imagefile.cpp:594 #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automatické pripojenie" # src/client/imagefile.cpp:595 #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Prosím stlaète \"ok\" na pripojenie [%s] na [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" # src/client/imagefile.cpp:937 #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Nemô¾em preèíta» zväzok:\n" "%s\n" "%s" # src/client/imagefile.cpp:938 #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Zadajte inú úplnú cestu (adresár a meno)" # src/client/imagefile.cpp:939 #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Zväzkok nenájdený" # src/client/imginfo.cpp:44 #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "®iaden príznak" # src/client/imginfo.cpp:50 #: src/client/imginfo.cpp:50 msgid "No description" msgstr "®iaden popis" # src/client/imginfo.cpp:56 #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "¾iaden" # src/client/imginfo.cpp:60 #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "neznámy" # src/client/imginfo.cpp:64 #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Súborový systém:.......%s\n" "Popis:.................%s\n" "Pôvodné zariadenie:....%s\n" "Pôvodná cesta:........ %s\n" "Príznaky:..............%ld: %s\n" "Dátum vytvorenia:......%sVeµkos» oddielu:.......%s\n" "Meno poèítaèa:.........%s\n" "Kompatibilná verzia:...%s\n" "©ifrovanie:.....%ld -> %s\n" "Poèet ulo¾ených MBR:...%lu\n" "\n" "Systém zálohy:\n" "- poèítaè:.............%s\n" "- operaèný systém:.....%s\n" "- vydanie:.............%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" # src/client/imginfo.cpp:102 #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Èíslo zväzku:..........%lu\n" "Veµkos» zväzku:........%s\n" "Úroveò kompresie:. ....%ld -> %s\n" "Identifikátor:.........%llu=%llX\n" "\n" # src/client/imginfo.cpp:128 #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Súbor s obrazom \"%s\" nebol nájdený" # src/client/imginfo.cpp:154 #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Nemô¾em naèíta» obraz" # src/client/imginfo.cpp:209 #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informácie o obraze" # src/client/interface_base.cpp:40 src/client/interface_newt.cpp:128 # src/client/misc.cpp:1876 src/client/fs/fs_ntfs.cpp:178 #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Chyba" # src/client/interface_base.cpp:48 #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "O Partition Image %s" # src/client/interface_base.cpp:50 #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image je distrubuovaný pod licenciou GNU GPL 2 (General Public " "License)\n" "\n" "verzia:....%s\n" "web:.......http://www.partimage.org/\n" "\n" "Autori:\n" "François Dupoux \n" "Franck Ladurelle " # src/client/interface_base.cpp:61 #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Nemô¾em zapísa» blok %ld do obrazu" # src/client/interface_base.cpp:65 #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Nemô¾em zapísa» do obrazu %s" # src/client/interface_base.cpp:69 #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Nemô¾em zapísa» bitmapu bloku %ld do obrazu" # src/client/interface_base.cpp:73 #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Nem¾em naèíta» bitmapu bloku %ld z obrazu" # src/client/interface_base.cpp:77 #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Nemô¾em zapísa» na disk blok %ld" # src/client/interface_base.cpp:81 #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Nemô¾em z obrazu naèíta» blok %ld (%d)" # src/client/interface_base.cpp:85 #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Nemô¾em naèíta» %s z obrazu" # src/client/interface_base.cpp:89 #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Nemô¾em naèíta» superblok" # src/client/interface_base.cpp:93 #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Nemô¾em zapísa» superblok" # src/client/interface_base.cpp:97 #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Nemô¾em naèíta» %ld z oddielu disku" # src/client/interface_base.cpp:101 #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Nemô¾em naèíta» bitmapu bloku %ld z oddielu disku (%s)" # src/client/interface_base.cpp:106 #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Nemô¾em zapísa» do MBR" # src/client/interface_base.cpp:112 #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Nemô¾em naèíta» MBR" # src/client/interface_base.cpp:118 #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "To nie je %s oddiel. Skontrolujte typ súborového systému" # src/client/interface_base.cpp:124 #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "Oddiel bol ulo¾ený pomocou nev¹ej verzie Partition Image. Prosím, stiahnite " "si najnov¹iu verziu." # src/client/interface_base.cpp:131 #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Chyba pri zápise obrazu: disk je plný !" # src/client/interface_base.cpp:137 #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Nemô¾em zisti» typ súborového systému v oddiele %s" # src/client/interface_base.cpp:143 #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Nemô¾em zapísa» hlavnú hlavièku" # src/client/interface_base.cpp:149 #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Nemô¾em zapísa» hlavné zakonèenie" # src/client/interface_base.cpp:155 #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Nemô¾em preèíta» hlavné zakonèenie" # src/client/interface_base.cpp:161 #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Obraz, ktorý ste sa pokúsili obnovi», je za¹ifrovaný. Aktuálna verzia " "nepodporuje ¹ifrovanie. Prosím, stiahnite si najnov¹iu verziu." # src/client/interface_base.cpp:169 #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s nie je prvý zväzok obrazu. Prosím, skúste znovu so zväzkom èíslo 000" # src/client/interface_base.cpp:176 #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s nie je platný obraz oddielu" # src/client/interface_base.cpp:182 #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Oddiel je na obnovenie príli¹ malý:\n" "Pôvodná veµkos» oddielu:........%llu bajtov\n" "Veµkost cieµového oddielu:......%llu bajtov" # src/client/interface_base.cpp:190 #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Pri obnovovaní oddielu sa vyskytla chyba:\n" "CRC64 sú rozdielne - súbor s obrazom je po¹kodený:\n" "Originálny CRC64:.....%llu\n" "Aktuálny CRC64:.......%llu" # src/client/interface_base.cpp:199 #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Neplatné èíslo zväzku (%ld namiesto %ld)." # src/client/interface_base.cpp:206 #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Chyba pri zatváraní" # src/client/interface_base.cpp:213 #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "Oddiel %s je u¾ zamknutý iným procesom. Nemô¾em na òom pracova»" # src/client/interface_base.cpp:226 #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Nemô¾em otvori» oddiel %s" # src/client/interface_base.cpp:232 #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Nemô¾em zamknú» oddiel %s" # src/client/interface_base.cpp:238 #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Nemô¾em preèíta» hlavnú hlavièku: súbor s obrazom bol po¹kodený" # src/client/interface_base.cpp:244 #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Nemô¾em zapísa» informácie" # src/client/interface_base.cpp:250 #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Nemô¾em naèíta» informácie" # src/client/interface_base.cpp:256 #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Nemô¾em preèita» MBR Magic: súbor s obrazom bol po¹kodený" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" # src/client/interface_base.cpp:282 src/client/interface_base.cpp:311 # src/client/interface_base.cpp:318 src/client/interface_base.cpp:341 # src/client/interface_base.cpp:361 src/client/misc.cpp:1868 #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Varovanie" # src/client/interface_base.cpp:282 src/client/misc.cpp:1868 #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Nie ste prihlásený ako root. Pri va¹ej práci sa mo¾u syskytnú» chyby ako " "\"Prístup zamietnutý\"." # src/client/interface_base.cpp:292 #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nový zväzok" # src/client/interface_base.cpp:292 #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Zväzok bol zmenený.\n" "Starý: %s\n" "Nový: %s/%s.%.3ld\n" "Stlaète Enter pre pokraèovanie" # src/client/interface_base.cpp:302 #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Potvrdenie" # src/client/interface_base.cpp:303 #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Naozaj chcete obnovi» %s z obrazu %s ?" # src/client/interface_base.cpp:311 #: src/client/interface_base.cpp:317 #, fuzzy, c-format msgid "%s found errors on the file system." msgstr "Na súborovom systéme sú chyby, alebo nemô¾em spusti» %s" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" # src/client/interface_base.cpp:318 #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Aktuálna podpora %s je experimentálna !" # src/client/interface_base.cpp:318 #: src/client/interface_base.cpp:345 #, fuzzy, c-format msgid "The current %s support is beta !" msgstr "Aktuálna podpora %s je experimentálna !" # src/client/interface_base.cpp:326 #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simulaèný mód" # src/client/interface_base.cpp:326 #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Pou¾ívate simulaèný mód: niè sa nebude zapisova»" # src/client/interface_base.cpp:342 #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "MBR je veµmi dôle¾itá èas» disku. Ak zapí¹ete zlý MBR, stratíte v¹etky " "na va¹om disku. Nepokraèujte, pokiaµ presne neviete, èo robíte. Stlaète " "'Pokraèova»' pre obnovenie.\n" "Zariadenie s MBR na obnovenie:......%s [%llu]\n" "Pôvodný MBR:........................%s [%llu]" # src/client/interface_base.cpp:362 #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Originálny harddisk nie je zhodný s aktuálnym harddiskom. MBR, ktorý sa " "pokú¹ate obnovi» bol ulo¾ený z iného disku. To znamená, ¾e pôvodný a " "aktuálny harddisk najú rozlièné veµkosti, alebo nie sú na tom istom " "zariadení (%s a %s) Chcete pokraèova» ?" # src/client/interface_base.cpp:372 src/client/main.cpp:742 #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Úspech" # src/client/interface_base.cpp:372 #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "MBR z [%s] bol úspe¹ne obnovený. Budete musie» re¹tartova» poèítaè ak " "chcete, aby operaèný systém pou¾il nový MBR." # src/client/interface_base.cpp:393 src/client/interface_base.cpp:403 #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Chyba: %s" # src/client/interface_base.cpp:400 #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Akcia bola zru¹ená u¾ívateµom" # src/client/interface_base.cpp:406 #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Obraz %s u¾ existuje. Chcete ho prepísa» ?" # src/client/interface_base.cpp:412 #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Prístup zamietnutý" # src/client/interface_base.cpp:412 #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Nemáte prístup na zápis na %s" # src/client/interface_base.cpp:416 #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Chybná úroveò kompresie pre %s" # src/client/interface_base.cpp:420 #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "Súbor s obrazom %s je u¾ otvorený" # src/client/interface_base.cpp:430 #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "súbor %s je príli¹ krátky na to, aby bol zväzok partimage: nemô¾em preèíta» " "hlavièku" # src/client/interface_base.cpp:440 #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "súbor %s nie je obraz z partimage: èarovné re»azce sa nezhodujú" # src/client/interface_base.cpp:445 #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "èarovné re»azce as nezhodujú: chyba v súbore s obrazom [%s]" # src/client/interface_base.cpp:449 #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "aktuálny zväzok nepatrí k aktuálnemu obrazu: zlý identifikátor" # src/client/interface_base.cpp:454 #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Málo pamäte." # src/client/interface_base.cpp:458 #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "nesprávne heslo/prihlásenie zamietnuté" # src/client/interface_base.cpp:462 #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" "Na partimaged je pripojených príli¹ veµa klientov. Skúste, prosím, neskôr" # src/client/interface_base.cpp:467 #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Sú podporované iba %s zväzky s 4096 bajtmi na blok. Aktuálne je %lu bajtov/" "blok" # src/client/interface_base.cpp:472 #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "Oddiel %s je u¾ zamknutý iným procesom. Nemô¾ete na òom pracova»" # src/client/interface_base.cpp:481 #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Chyba pri kontrolovaní dát: Chybné èislo bloku. Mo¾no bol preskoèený zväzok " "alebo dáta." # src/client/interface_base.cpp:486 #: src/client/interface_base.cpp:514 #, fuzzy, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Tento zväzok (%ld) nie je ten oèakávaný: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" # src/client/interface_base.cpp:525 #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "V tomto obraze nebol nájdený MBR. Nemô¾m pokraèova»" # src/client/interface_base.cpp:529 #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Kontrola oddielu na¹la na oddieloch chybu(-y)" # src/client/interface_base.cpp:544 #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Z disku na nedá preèíta» MBR" # src/client/interface_base.cpp:547 #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Chybný alebo po¹kodený súborový systém %s" # src/client/interface_base.cpp:553 #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Nedá sa vynulova» blok na disku: %s" # src/client/interface_base.cpp:557 #: src/client/interface_base.cpp:591 #, fuzzy msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "Spojenie odmietnuté serverom: nekompatibilné sie»ové nastavenia" # src/client/interface_base.cpp:561 #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Spojenie odmietnuté serverom: nezhodné verzie" # src/client/interface_base.cpp:565 #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Obraz bol vytvorený nov¹ím vydaním (%s) Partition Image. Prosím, " "aktualizujte software a skúste znovu." # src/client/interface_base.cpp:570 #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Súbor s obrazom bol vytvorený star¹ou (%s) verziou Partition Image. Na " "obnovenie musíte pou¾i» star¹iu verziu alebo musíte obraz znovu vytvori» " "aktuálnou verziou" # src/client/interface_base.cpp:577 #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s nie je platný súbor Partition Image, alebo je po¹kodený. Nemô¾em " "pokraèova»" # src/client/interface_base.cpp:582 #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "Súbor %s nie je obyèajný súbor. Z bezpeènostných dôvodov nemô¾em pokraèova»" # src/client/interface_base.cpp:587 #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Nemô¾em pripoji» %s" # src/client/interface_base.cpp:591 #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Nemô¾em odpoji» %s" # src/client/interface_base.cpp:595 #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Nemô¾em vytvori» doèasný súbor [%s]. Prosím, skontrolujte voµné miesto a èi " "máte dostatoèné prístupové práva." # src/client/interface_base.cpp:599 #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" "Nemô¾em vytvori» doèasný súbor [%s]. Na zariadení u¾ nie je voµné miesto." # src/client/interface_base.cpp:599 #: src/client/interface_base.cpp:639 #, fuzzy, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Nemô¾em vytvori» doèasný súbor [%s]. Na zariadení u¾ nie je voµné miesto." # src/client/interface_base.cpp:599 #: src/client/interface_base.cpp:642 #, fuzzy, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "Nemô¾em vytvori» doèasný súbor [%s]. Na zariadení u¾ nie je voµné miesto." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" # src/client/interface_base.cpp:607 #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Neznáma chyba %d -> %s" # src/client/interface_newt.cpp:37 #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Ladiace informácie Newt" # src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:108 # src/client/interface_newt.cpp:320 src/client/interface_newt.cpp:352 # src/client/interface_newt.cpp:405 #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" # src/client/interface_newt.cpp:141 #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Pokraèova»" # src/client/interface_newt.cpp:156 #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Áno" # src/client/interface_newt.cpp:156 #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Nie" # src/client/interface_newt.cpp:191 #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Oddiel na ulo¾enie/obnovenie" # src/client/interface_newt.cpp:193 #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Súbor s obrazom na vytvorenie/pou¾itie" # src/client/interface_newt.cpp:195 #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Akcia, ktorá sa má vykona»:" # src/client/interface_newt.cpp:196 #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Ulo¾i» oddiel do nového súboru s obrazom" # src/client/interface_newt.cpp:197 #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Obnovi» oddiel zo súboru s obrazom" # src/client/interface_newt.cpp:198 #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Obnovi» MBR zo súboru s obrazom" # src/client/interface_newt.cpp:200 #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Pripoji» sa k serveru" # src/client/interface_newt.cpp:202 #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "©ifrova» dáta na sieti s SSL" # src/client/interface_newt.cpp:204 #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL bolo vypnuté pri kompilácii" # src/client/interface_newt.cpp:204 #: src/client/interface_newt.cpp:229 #, fuzzy msgid "SSL&login disabled at compile time" msgstr "SSL bolo vypnuté pri kompilácii" # src/client/interface_newt.cpp:206 #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/meno servera:" # src/client/interface_newt.cpp:208 #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Port:" # src/client/interface_newt.cpp:212 #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Ïalej (F5)" # src/client/interface_newt.cpp:213 #: src/client/interface_newt.cpp:239 msgid "About" msgstr "O programe" # src/client/interface_newt.cpp:244 #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "Pole \"Obraz\" je prázdne. Nemô¾em pokraèova»" # src/client/interface_newt.cpp:252 #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "Pole \"IP/meno servera\" je prázdne. Nemô¾em pokraèova»" # src/client/interface_newt.cpp:258 #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "V poli \"Port\" nie je platná celoèíselná hodnota. Nemô¾em pokraèova»" # src/client/interface_newt.cpp:316 src/client/misc.cpp:985 #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Popis oddielu" # src/client/interface_newt.cpp:318 #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Mô¾ete zada» popis ulo¾eného oddielu:" # src/client/interface_newt.cpp:370 src/client/interface_newt.cpp:426 #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Text nemô¾e my» prázdny" # src/client/interface_newt.cpp:395 #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Potrebné heslo" # src/client/interface_newt.cpp:398 #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Zadajte vá¹ login" # src/client/interface_newt.cpp:402 #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Zadajte va¹e heslo" # src/client/interface_newt.cpp:442 #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Disk je plný! Nemô¾em zapísa» ïal¹í zväzok(%s.%.3ld)\n" "do %s\n" "Prosím, zadajte inú cestu (bez mena súboru):" # src/client/interface_newt.cpp:447 #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Nové umiestnenie zväzku" # src/client/main.cpp:224 src/client/misc.cpp:1903 #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "port servera musí by» medzi 1 a 65536\n" # src/client/main.cpp:233 #: src/client/main.cpp:249 #, fuzzy msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Mód kompresie musí by» 0 (¾iadna), 1(gzip), 2(bzip2) alebo 3(lzo)\n" # src/client/main.cpp:264 #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Mód skonèenia musí by» 0 (èakanie), 1(zastavenie), 2(re¹tart) alebo 3" "(odchod)\n" # src/client/main.cpp:274 #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "Ladiaca úroveò musí by» 0(¾iadna), 1(u¾ívateµská), 2(vývojárska), 3" "(ladenie)\n" # src/client/main.cpp:288 #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Veµkos» zväzku: %llu bajtov (%ld KB)\n" # src/client/main.cpp:325 #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image verzia %s (distribuované pod GNU GPL2).\n" # src/client/main.cpp:377 #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Nemô¾em otvori» ladiaci súbor\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" # src/client/main.cpp:731 #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "MBR bol úspe¹ne obnovený" # src/client/main.cpp:736 #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulácia" # src/client/main.cpp:738 #: src/client/main.cpp:726 msgid "Operation" msgstr "Operácia" # src/client/main.cpp:749 #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Chyba: Nemô¾em zastavi» poèítaè" # src/client/main.cpp:759 #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Chyba: Nemô¾em re¹tartova» poèítaè" # src/client/main.cpp:759 #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Chyba: Nemô¾em re¹tartova» poèítaè" # src/client/main.cpp:759 #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Chyba: Nemô¾em re¹tartova» poèítaè" # src/client/main.cpp:793 #: src/client/main.cpp:843 #, fuzzy, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) verzia %s [%s]\n" "---- distribuované pod GPL 2 licenciou (GNU General Public License) ----\n" "\n" "Podporované súborové systémy: ext2fs, reiserfs, fat16, fat32, ntfs(exp), " "hpfs\n" "\n" "pou¾itie: partimage [mo¾nosti] \n" " partimage \n" "\n" "napr: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "napr: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "napr: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "napr: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "napr: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "napr: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Argumenty:\n" "* :\n" " - save: ulo¾í dáta z oddielu do súboru\n" " - restore: obnoví oddiel zo súboru\n" " - restmbr: zapí¹e MBR zo súboru na harddisk\n" " - imginfo: vypí¹e informácie o súbore s obrazom\n" " - imgconv: konvertuje súbor s obrazom do súboru s inou úrovòou kompresie\n" "* : oddiel na obnovenie/ulo¾enie (príklad: /dev/hda1)\n" "* : súbor na èítanie/zápis dát; mô¾e by» veµký\n" "\n" "Mo¾nosti:\n" "* -z, --compress (úroveò kompresie obrazu):\n" " -z0, --compress=0 nekomprimova»: veµmi rýchle, ale veµmi veµké obrazy\n" " -z1, --compress=1 kompresia pomocou gzip: rýchla a malé súbory " "(východzie)\n" " -z2, --compress=2 (kompresia pomocou bzip2: veµmi pomalé a veµmi malé " "obrazy):\n" "* -c, --nocheck neskontroluje oddiel pred ukladaním\n" "* -o, --overwrite prepí¹e existujúci obraz bez potvrdenia \n" "* -d, --nodesc nepýta sa na popis súboru s obrazom\n" "* -V, --volume (rozdelí obraz na viacej zväzkov)\n" " -VX, --volume=X vytvorí zväzky veµkosti X KB\n" "* -w, --waitvol èaká na potvrdenie pri ka¾dej zmene zväzku\n" "* -e, --erase pri obnovovaní prema¾e prázdne bloky nulami\n" "* -m, --allowmnt nezru¹i», keï je oddiel pripojený. Nebezpeèné !\n" "* -M, --nombr nevytvára» zálohu MBR v súbore s obrazom \n" "* -h, --help vypí¹e pomoc\n" "* -v, --version vypí¹e verziu\n" "* -i, --compilinfo vypí¹e pou¾ité kompilaèné mo¾nosti\n" "* -f, --finish (akcia, keï sa skonèí úspe¹ne):\n" " -f0, --finish=0 èakaj: nerob niè\n" " -f1, --finish=1 zastav (vypni) poèítaè\n" " -f2, --finish=2 re¹tart (re¹tartuje poèítaè):\n" " -f3, --finish=3 odíï\n" "* -b, --batch dávkový mód: GUI nebude èaka» na ¾iadnu akciu " "u¾ívateµa\n" "* -y, --nosync nesynchronizuje disky po skonèení operácie " "(nebezpeèné) \n" "* -sX, --server=X adresa partimaged servera\n" "* -pX, --port=X port partimaged servera\n" "* -g, --debug=X nastaví ladiacu úrovaò na X (východzie: 1):\n" "* -n, --nossl vypne SSL v sie»ovom móde\n" "* -S, --simulate simulácia obnovovacieho módu\n" "* -aX, --automnt=X automatické pripojenie s X mo¾nos»ami. Pre podrobnosti " "si preèítajte dokumentáciu\n" "* -A --saveall ulo¾í aj voµné bloky v oddieli.\n" # src/client/main.cpp:844 #: src/client/main.cpp:894 msgid "stable" msgstr "stabilné" # src/client/main.cpp:844 #: src/client/main.cpp:894 msgid "unstable" msgstr "nestabilné" # src/client/main.cpp:979 #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s úspe¹ne dokonèené:\n" "\n" "Pou¾itý èas:....%s\n" "Rýchlos»:.......%s/min\n" "Kopír. dát:.....%s" # src/client/misc.cpp:514 #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "inicializujem operáciu. Prosím èakajte..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" # src/client/misc.cpp:726 #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Ukladám oddiel do súboru s obrazom..." # src/client/misc.cpp:819 #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "inicializujem operáciu" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" # src/client/interface_base.cpp:256 #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Nemô¾em preèita» MBR Magic: súbor s obrazom bol po¹kodený" # src/client/interface_base.cpp:238 #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Nemô¾em preèíta» hlavnú hlavièku: súbor s obrazom bol po¹kodený" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" # src/client/misc.cpp:1631 #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "chýba inode" # src/client/misc.cpp:1631 #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "Chýba indode na %s. Partimage ho mô¾e vytvori». Mô¾ete tie¾ pou¾i» príkaz " "mknod. Mám teraz vytvori» tento inode ?" # src/client/misc.cpp:1648 #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s nie je blokové zariadenie." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" # src/client/misc.cpp:1876 #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "Oddiel %s je pripojený. Partition Image nemô¾e pracova» na pripojených " "oddieloch. Najskôr ho, prosím odpojte. Mô¾ete to vykona» s \"umount %s\"" # src/client/misc.cpp:1896 #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "Veµkos» rozdeµovania zväzkov musí by» celoèíselná hodnota väè¹ia ako 1024" "(veµkost >= 1024 KB)" # src/client/misc.cpp:1916 #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" "Chybné mo¾nosti pre automatické pripojenie. Pre viac informácií si " "preèítajte manuál" # src/client/misc.cpp:1924 #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "Druhý argument [%s] musí by» platné zariadenie (napr.: /dev/hda1)" # src/client/misc.cpp:1933 src/client/misc.cpp:1943 #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Tretí argument [%s] musí by» platný obyèajný súbor (NIE adresár, symlink,..." # src/client/misc.cpp:88 #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Odís» z partimage ?" # src/client/misc.cpp:88 #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Chcete naozaj zru¹i» prebiehajúcu operáciu ?" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" # src/client/fs/fs_base.cpp:313 #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "èítam vlastnosti oddielov" # src/client/fs/fs_base.cpp:329 #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "kontrolujem súborový systém pomocou fsck" # src/client/fs/fs_base.cpp:348 #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "zapisujem hlavièku" # src/client/fs/fs_base.cpp:405 src/client/fs/fs_base.cpp:540 #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "kopírujem pou¾ité dátové bloky" # src/client/fs/fs_base.cpp:429 #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "èítam informácie o oddiele" # src/client/fs/fs_base.cpp:566 #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Veµkos» bloku.................%llu bajtov\n" "Celk. poèet blokov............%llu\n" "Poèet vou¾itých blokov........%llu\n" "Poèet voµných blokov..........%llu\n" # src/client/fs/fs_base.cpp:580 #: src/client/fs/fs_base.cpp:738 #, fuzzy, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sVyu¾itie miesta:..............%llu %%\n" "Celkom miesta:................%s\n" "Vyu¾ité miesto................%s\n" "Voµné miesto..................%s\n" "Veµkos» bitmapy...............%s\n" "Meno..........................%s\n" # src/client/fs/fs_ext2.cpp:79 #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sPoèet skupín..................%lu\n" "Prvý blok.....................%lu\n" "Ext3fs ¾urnalizácia...........%s\n" "Sparse super block............%s\n" "Podpora dlhých súborov........%s\n" "Revízia súb. systému..........%lu\n" # src/client/fs/fs_ext2.cpp:87 src/client/fs/fs_ext2.cpp:88 # src/client/fs/fs_ext2.cpp:89 #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "áno" # src/client/fs/fs_ext2.cpp:87 src/client/fs/fs_ext2.cpp:88 # src/client/fs/fs_ext2.cpp:89 #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "nie" # src/client/fs/fs_ext2.cpp:93 #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Ext3fs informácie" # src/client/fs/fs_ext2.cpp:95 #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Ext2fs informácie" # src/client/fs/fs_ext2.cpp:407 #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Vyskytla sa chyba pri èítaní bitmapy" # src/client/fs/fs_fat.cpp:231 #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sVeµkos» sektora...............%u\n" "Sektorov na cluster...........%u\n" "Poèet rezervovaných sektorov..%u\n" "Sektorov koreòového adresára..%lu\n" "Poèet FAT tabuliek............%u\n" "Poèet sektorov................%lu\n" "Sektorov na FAT...............%lu\n" "Poèet clusterov...............%lu\n" "Pou¾ité clustery..............%lu\n" "Voµné clustery................%lu\n" "Po¹kodené clustery............%lu\n" # src/client/fs/fs_fat.cpp:250 #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "FAT informácie" # src/client/fs/fs_fat.cpp:408 #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Nemô¾em naèíta» boot sektor" # src/client/fs/fs_fat.cpp:459 #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster nemô¾e by» nulový. Skontrolujte, èi oddiel, ktorý " "chcete ulo¾i» je FAT." # src/client/fs/fs_fat.cpp:408 #: src/client/fs/fs_fat.cpp:379 #, fuzzy msgid "Can't read FSInfo sector" msgstr "Nemô¾em naèíta» boot sektor" # src/client/fs/fs_ntfs.cpp:59 #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s nie je oddiel so súborovým systémom NTFS" # src/client/fs/fs_ntfs.cpp:128 #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "Málo pamäte: potrebujem %lu bajtov na naèítanie záznamu v readBitmap()" # src/client/fs/fs_ntfs.cpp:178 #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Nemô¾em naèíta» $Bitmap MFT záznam. Chcete ho skúsi» experimentálne hµada» ? " "(Mô¾e to trna» veµmi dlho)" # src/client/fs/fs_ntfs.cpp:193 #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Nemô¾em nájs» $bitmap experimentálnym hµadaním" # src/client/fs/fs_ntfs.cpp:205 #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Nemô¾em pou¾i» záznam $bitmap" # src/client/fs/fs_ntfs.cpp:214 #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS $Bitmap je príli¹ malá" # src/client/fs/fs_ntfs.cpp:230 src/client/fs/fs_ntfs.cpp:599 #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Málo pamäte" # src/client/fs/fs_ntfs.cpp:302 #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sbajtov na sektor..............%u\n" "Sektorov na cluster...........%u\n" "Veµkos» záznamu súboru........%lu\n" "LCN z MFT Data attrib........%llu\n" # src/client/fs/fs_ntfs.cpp:310 #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "NTFS informácie" # src/client/fs/fs_ntfs.cpp:335 #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Málo pamäte: potrebujem %lu bajtov na naèítanie záznamu v readVolumeLabel()" # src/client/fs/fs_ntfs.cpp:438 #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: \"Attribute List\" atribút e¹te nie je podporovaný." # src/client/fs/fs_ntfs.cpp:472 #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Príznak kompresie pre atribút DATA nie je nulový: %ld" # src/client/fs/fs_ntfs.cpp:487 #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Atribút \"Resident data\" nie je podporovaný" # src/client/fs/fs_ntfs.cpp:500 #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() vrálil -1" # src/client/fs/fs_ntfs.cpp:520 #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Chyba v readFilenameAttribute" # src/client/fs/fs_ntfs.cpp:520 #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "Atribút \"filename\" musí bu» rezidentný !" # src/client/fs/fs_ntfs.cpp:850 #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "hµadanie záznamu $bitmap" # src/client/fs/fs_ntfs.cpp:850 #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "experimentálne hµadanie bolo úspe¹né" # src/client/fs/fs_hpfs.cpp:144 #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS verzia:..................%d\n" # src/client/fs/fs_hpfs.cpp:148 #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "HPFS informácie" # src/client/fs/fs_hpfs.cpp:170 #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Nemô¾em preèíta» bootovací blok" # src/client/fs/fs_hpfs.cpp:182 #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Nemô¾em preèíta» super blok" # src/client/fs/fs_hpfs.cpp:194 #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Nemô¾em preèíta» spare blok" # src/client/fs/fs_hpfs.cpp:201 #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Chybné èarovné èísla HPFS. Toto nie je platný HPFS oddiel." # src/client/fs/fs_reiser.cpp:118 #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "ReiserFS informácie" # src/client/fs/fs_jfs.cpp:564 #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "JFS informácie" # src/client/fs/fs_xfs.cpp:212 #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sPpoèet alokaèných skupín:......%lu\n" "Blokov na alokaènú skupinu....%lu\n" "Veµkos» alokaènej skupiny.....%s\n" # src/client/fs/fs_xfs.cpp:219 #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "XSF informácie" # src/server/partimaged.cpp:68 #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Èakám ..." # src/server/partimaged.cpp:76 #: src/server/partimaged.cpp:85 msgid "error !" msgstr "chhyba !" # src/server/partimaged.cpp:95 #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "getspace ..." # src/server/partimaged.cpp:109 #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "zapisujem ..." # src/server/partimaged.cpp:136 #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "otváram pre zápis ..." # src/server/partimaged.cpp:147 #: src/server/partimaged.cpp:157 msgid "saving" msgstr "ukladám" # src/server/partimaged.cpp:152 #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "èítam ..." # src/server/partimaged.cpp:177 #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "zatváram ..." # src/server/partimaged.cpp:189 #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "otváram pre èítanie ..." # src/server/partimaged.cpp:190 #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "obnovujem" # src/server/partimaged.cpp:366 #: src/server/partimaged.cpp:382 msgid "finished" msgstr "dokonèené" # src/server/partimaged-gui_newt.cpp:51 #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" # src/server/partimaged-gui_newt.cpp:61 #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Klient #" # src/server/partimaged-gui_newt.cpp:62 #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Stav" # src/server/partimaged-gui_newt.cpp:63 #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Hostiteµ" # src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Umiestnenie" # src/server/partimaged-gui_newt.cpp:65 #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Veµkos»" # src/server/partimaged-gui_newt.cpp:87 #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "èakám" # src/server/partimaged-main.cpp:100 #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Chyba segmentácie. Prosím zaznamenajte túto chybu a po¹lite súbor [%s] " "autorom \n" # src/server/partimaged-main.cpp:109 #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) verzia %s\n" "---- distribuované pod GPL 2 licenciou (GNU General Public License) ----\n" "\n" "pou¾itie: partimaged [options]\n" "\n" "Mo¾nosti:\n" "* -h, --help vypí¹e pomoc\n" "* -v, --version vypí¹e verziu\n" "* -pX, --port=X port pre server (východzí %d)\n" "* -D, --daemon spustí sa ako démon, nie v popredí\n" "* -r dir, --chroot dir pou¾íje chroot na zvý¹enie bezpeènosti\n" "* -g, --debug=X nastaví ladiacu úroveò na X (východzie: 1)\n" # src/server/partimaged-main.cpp:132 #: src/server/partimaged-main.cpp:150 #, fuzzy, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Nemô¾em otvori» log súbor %s.\n" # src/server/partimaged-main.cpp:133 #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Opravte to a skúste znova.\n" # src/server/partimaged-main.cpp:145 #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "nomô¾em nájs» u¾íveteµa \"%s\"\n" # src/server/partimaged-main.cpp:146 #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "pridajte a skúste znova\n" # src/server/partimaged-main.cpp:149 #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Varovanie: nedá sa zmeni» euid, preto¾e program nebol spustený ako " "rootovský\n" "èakajte zamietnutia prístupu alebo nejaké iné chyby ako tieto.\n" # src/server/partimaged-main.cpp:195 #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Démon verzia %s+SSL\n" # src/server/partimaged-main.cpp:197 #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Démon verzia %s\n" # src/server/partimaged-main.cpp:199 #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distribuované pod GNU GPL 2)\n" # src/server/partimaged-main.cpp:314 #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Èakám na klienta ..." # src/server/partimaged-main.cpp:333 #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "pripojených príli¹ veµa klientov" # src/shared/common.cpp:78 #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "=== Partition Image: pou¾ité mo¾nosti kompilácie ===\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" # src/shared/common.cpp:79 #: src/shared/common.cpp:78 #, fuzzy msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Súborové systémy:\n" #: src/shared/common.cpp:80 msgid "\n" msgstr "" # src/shared/common.cpp:90 #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Podpora pre Ext2fs: zalo¾ená na knihovni libe2fs\n" # src/shared/common.cpp:92 #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Podpora Ext2fs: interný kód\n" # src/shared/common.cpp:95 #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Ladiace mo¾nosti:\n" # src/shared/common.cpp:101 #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" # src/shared/common.cpp:104 #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" # src/shared/common.cpp:135 #: src/shared/common.cpp:98 #, fuzzy msgid " - DEVEL ENABLED\n" msgstr " - SSL ZAPNUTÉ\n" # src/shared/common.cpp:137 #: src/shared/common.cpp:100 #, fuzzy msgid " - DEVEL DISABLED\n" msgstr " - SSL VYPNUTÉ\n" # src/shared/common.cpp:107 #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" # src/shared/common.cpp:109 #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" # src/shared/common.cpp:109 #: src/shared/common.cpp:105 msgid "true" msgstr "pravda" # src/shared/common.cpp:109 #: src/shared/common.cpp:106 msgid "false" msgstr "nepravda" # src/shared/common.cpp:126 #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Ïal¹ie mo¾nosti:\n" # src/shared/common.cpp:128 #: src/shared/common.cpp:110 #, fuzzy, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" " - CURRENT_IMAGE_FORMAT=%s\n" "\n" # src/shared/common.cpp:130 #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - U®ÍVATEIA SA MUSIA PRIHLÁSI«\n" # src/shared/common.cpp:127 #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" # src/shared/common.cpp:132 #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - U®ÍVATELIA SA NEPRIHLASUJÚ\n" # src/shared/common.cpp:127 #: src/shared/common.cpp:117 #, fuzzy msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS=%s\n" # src/shared/common.cpp:135 #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ZAPNUTÉ\n" # src/shared/common.cpp:137 #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL VYPNUTÉ\n" # src/shared/common.cpp:140 #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ZAPNUTÉ\n" # src/shared/common.cpp:142 #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID VYPNUTÉ\n" # src/shared/common.cpp:363 #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld bajtov" # src/shared/common.cpp:368 #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" # src/shared/common.cpp:373 #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" # src/shared/common.cpp:378 #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" # src/shared/common.cpp:383 #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" # src/client/gui_text.cpp:343 #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Bajtov" # src/client/interface_base.cpp:587 #, fuzzy #~ msgid "mount: %s" #~ msgstr "Nemô¾em pripoji» %s" # src/client/gui_text.cpp:68 #~ msgid "Only the boot loader" #~ msgstr "Iba bootovací záznam" # src/client/gui_text.cpp:69 #~ msgid "Only the partition table" #~ msgstr "Iba tabuµku oddielov" # src/client/gui_text.cpp:313 #~ msgid "Lzo (.lzo: quite fast + quite big image file)" #~ msgstr "Lzo (.lzo: celkom rýchle + celkom veµký súbor)" # src/client/gui_text.cpp:316 #~ msgid "( ) Lzo was disabled at compile time." #~ msgstr "( ) Podpora Lzo bola vypnutá pri kompilácii." # src/client/gui_text.cpp:322 #~ msgid "( ) Gzip was disabled at compile time." #~ msgstr "( ) Podpora Gzip bola vypnutá pri kompilácii." # src/client/gui_text.cpp:329 #~ msgid "( ) Bzip2 was disabled at compile time." #~ msgstr "( ) Podpora Bzip2 bola vypnutá pri kompilácii." # src/client/gui_text.cpp:336 #~ msgid "Save all blocks (even free ones)" #~ msgstr "Ulo¾i» v¹etky bloky (aj voµné)" # src/client/gui_text.cpp:649 src/client/misc.cpp:143 #~ msgid "converting the compression level" #~ msgstr "konvertujem do kompresnej úrovne" # src/client/gui_text.cpp:652 src/client/gui_text.cpp:714 #~ msgid "Old image to read:................%s" #~ msgstr "Pôvodný obraz:.............%s" # src/client/gui_text.cpp:654 #~ msgid "Old compression level:............%s" #~ msgstr "Pôvodná úroveò kompresie:.........%s" # src/client/gui_text.cpp:657 src/client/gui_text.cpp:716 #~ msgid "New image to create:..............%s" #~ msgstr "Vytváraný nový obraz:.............%s" # src/client/gui_text.cpp:659 #~ msgid "New compression level:............%s" #~ msgstr "Nová úroveò kompresie:............%s" # src/client/gui_text.cpp:705 #~ msgid "Data copied:......................%s" #~ msgstr "Skopírovaných dát:................%s" # src/client/gui_text.cpp:719 #~ msgid "Available space for image:........%s = %llu bytes" #~ msgstr "Dostupné miesto pre obraz:........%s = %llu bajtov" # src/client/gui_text.cpp:943 #~ msgid "Overwrite image ?" #~ msgstr "Prepísa» obraz ?" # src/client/imginfo.cpp:135 #~ msgid "Not a valid image file" #~ msgstr "Neplatný súbor s obrazom" # src/client/interface_base.cpp:603 #~ msgid "" #~ "Cannot convert the image file: you must use another compression level in " #~ "order to change something, with the -z option." #~ msgstr "" #~ "Nemô¾em konvertova» súbor s obrazom: musíte pou¾i» inú úroveò kompresie " #~ "spolu s prepínaèom -z, aby ste nieèo zmenili." # src/client/main.cpp:240 src/client/main.cpp:247 src/client/main.cpp:254 #~ msgid "Cannot use %s compression level: it was disabled at compile time.\n" #~ msgstr "Nemô¾em pou¾i» úroveò kompresie %s: bola vypnutá pri kompilácii.\n" # src/client/fs/fs_ext2.cpp:116 #~ msgid "" #~ "Can't open partition with ext2fs_open(). Maybe partition is not an ext2 " #~ "file system." #~ msgstr "" #~ "Nemô¾em otvori» oddiel pomocou ext2fs_open(). Má oddiel súborový systém " #~ "ext2 ?" # src/client/fs/fs_ext2.cpp:124 #~ msgid "%s is not an ext2fs file system partition" #~ msgstr "%s nie je oddiel so súborovým systémom ext2" # src/client/fs/fs_ext2.cpp:166 #~ msgid "Can't read block bitmaps\n" #~ msgstr "Nemô¾em naèíta» bitmapy blokov\n" # src/shared/common.cpp:82 #~ msgid " - JFS File system support (IBM Aix)\n" #~ msgstr " - Podpora pre JFS (IBM AIX)\n" # src/shared/common.cpp:86 #~ msgid " - XFS File system support (SGI Irix)\n" #~ msgstr " - Podpora pre XFS (SGI IRIX)\n" # src/shared/common.cpp:98 #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" # src/shared/common.cpp:113 #~ msgid "" #~ "\n" #~ "* Supported compression levels:\n" #~ msgstr "" #~ "\n" #~ "* Podporované úrovne kompresie:\n" # src/shared/common.cpp:116 #~ msgid " - LEVELSUPPORT_GZIP=true\n" #~ msgstr " - LEVELSUPPORT_GZIP=true\n" # src/shared/common.cpp:119 #~ msgid " - LEVELSUPPORT_BZIP2=true\n" #~ msgstr " - LEVELSUPPORT_BZIP2=true\n" # src/shared/common.cpp:122 #~ msgid " - LEVELSUPPORT_LZO=true\n" #~ msgstr " - LEVELSUPPORT_LZO=true\n" # src/shared/common.cpp:395 #~ msgid "None" #~ msgstr "®iadne" partimage-0.6.8/po/POTFILES.in0000644000000000000000000000154011256747730014403 0ustar rootroot./src/client/buffer.cpp ./src/client/gui_text.cpp ./src/client/image_net.cpp ./src/client/imagefile.cpp ./src/client/imginfo.cpp ./src/client/interface_base.cpp ./src/client/interface_newt.cpp ./src/client/main.cpp ./src/client/mbr_backup.cpp ./src/client/misc.cpp ./src/client/netclient.cpp ./src/client/fs/fs_base.cpp ./src/client/fs/fs_ext2.cpp ./src/client/fs/fs_fat.cpp ./src/client/fs/fs_ntfs.cpp ./src/client/fs/fs_hpfs.cpp ./src/client/fs/fs_reiser.cpp ./src/client/fs/fs_jfs.cpp ./src/client/fs/fs_xfs.cpp ./src/server/netserver.cpp ./src/server/partimaged.cpp ./src/server/partimaged-client.cpp ./src/server/partimaged-gui_dummy.cpp ./src/server/partimaged-gui_newt.cpp ./src/server/partimaged-main.cpp ./src/shared/access.cpp ./src/shared/common.cpp ./src/shared/exceptions.cpp ./src/shared/image_disk.cpp ./src/shared/messages.cpp ./src/shared/net.cpp partimage-0.6.8/po/pt.po0000644000000000000000000020367511252653200013606 0ustar rootroot# Copyright (C) 2003 # Manuel Padilha , 2003 # msgid "" msgstr "" "Project-Id-Version: Partimage 0.6.3_beta8POT-Creation-Date: 2002-10-14 17:19" "+0200\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2003-09-25 00:01+0100\n" "Last-Translator: Manuel Padilha \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Restaurar o MBR para o disco." #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disco com o MBR que pretende restaurar" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "MBR original que pretende usar" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "O que restaurar:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "O MBR completo" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "No foi possvel ler \"/proc/partitions\" (%s). Deve utilizar a linha de " "comandos\n" "para correr o Partition Image. Escreva \"partimage --help\" para obter ajuda." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Continuar (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Sair (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Janela Principal (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "guardar a partio no ficheiro de imagem" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Nvel de Compresso" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Nenhum (muito rpido + ficheiro muito grande)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opes" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Verificar a partio antes de guardar" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Inserir descrio" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Escrever por cima sem perguntar" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Modo de partio da imagem" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Partio automtica (quando no h espao livre)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Em ficheiros com tamanho:............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Esperar aps cada troca de volume" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Se terminar com sucesso:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Esperar" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Parar o computador" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Reiniciar o computador" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Sair" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partio a guardar:...........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Tamanho da Partio:.......%s = %llu bytes" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Ficheiro de imagem a criar.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Sistema de ficheiro detectado:........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Nvel de Compresso:...........Nenhum" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Nvel de Compresso:...........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Nvel de Compresso:...........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Nvel de Compresso:...........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Tempo decorrido:................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Estimativa de tempo restante:....%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Velocidade:.......................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Dados copiados:.................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Ficheiro de imagem actual:..........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Tamanho do ficheiro de imagem:.............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Espao disponvel para a imagem:...%s = %llu bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "restaurar partio a partir de um ficheiro de imagem" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Apagar blocos livres com o valor zero" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simulao do restauro (nada escrito)" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "restaurar partio a partir de um ficheiro de imagem" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partio a restaurar:.............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Tamanho da partio a restaurar:.....%s = %llu bytes" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Ficheiro de imagem a usar.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Sistema de ficheiros:......................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "A Partio estava no dispositivo:..........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Imagem criada em:.................%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Tamanho da partio original:...%s = %llu bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Tempo decorrido:.....................%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Estimativa de tempo restante:.........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Velocidade:............................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Dados copiados:......................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Ficheiro de imagem actual:...............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Nvel de Compresso:................None\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Nvel de Compresso:................gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Nvel de Compresso:................bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Nvel de Compresso:................lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Mudar" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Cancelar" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Inserir novo nome de ficheiro" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "O ficheiro de imagem seguinte j existe.\n" "Deseja sobrepr ou mudar o nome do ficheiro?\n" "Ficheiro: %s\n" "Para mudar o nome do ficheiro, escreva o path completo\n" "(caminho + nome do ficheiro) sem o nmero de volume no final,\n" "e carregue em \"Mudar\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Sobrepr imagem?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Sobrepr" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "O seguinte ficheiro de imagem est bloqueado.\n" "Deseja esperar e voltar a tentar mais tarde, ou mudar o nome do ficheiro?\n" "Ficheiro: %s\n" "Para mudar o nome do ficheiro, escreva o path completo\n" "(caminho + nome do ficheiro) sem o nmero de volume no final,\n" "e carregue em \"Mudar\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "ficheiro de imagem bloqueado" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Repetir" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "impossvel aceder a %s\n" "\n" "Por favor escolha outro directrio (sem o nome do ficheiro):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "path errado" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Mount automtico" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Por favor carregue em \"ok\" para montar [%s] em [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "No foi possvel ler o seguinte ficheiro de volume:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Escreva outro path completo (directrio & ficheiro)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume no encontrado" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Nenhuma flag activa" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Sem descrio" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "nenhum" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "desconhecido" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Sistema de ficheiros:..%s\n" "Descrio:.............%s\n" "Dispositivo original:..%s\n" "Path original:.........%s\n" "Flags:.................%ld: %s\n" "Data criao:..........%sTamanho da partio:...%s\n" "Hostname:..............%s\n" "Verso compatvel:.....%s\n" "Algoritmo encriptao:.%ld -> %s\n" "contador MBR:..........%lu\n" "\n" "Sistema do backup\n" "- mquina:.............%s\n" "- sistema operativo:...%s\n" "- verso:..............%s\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Dispositivo:...........%s\n" "Blocos do dispositivo:.%llu\n" "Modelo do dispositivo:.%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Nmero de volume:......%lu\n" "Tamanho do volume:.....%s\n" "Nvel de compresso:...%ld -> %s\n" "Identificador:.........%llu=%llX\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "O ficheiro de imagem \"%s\" no foi encontrado" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "No foi possvel ler o ficheiro de imagem" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informaes da Imagem" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Erro" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Sobre o Partition Image %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image distribudo sob a GNU GPL 2 (General Public License)\n" "\n" "verso:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Autores:\n" "Francois Dupoux \n" "Franck Ladurelle \n" "\n" "Verso Portuguesa:\n" "Manuel Padilha " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "No foi possvel escrever o bloco %ld na imagem" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "No foi possvel escrever %s na imagem" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "No foi possvel escrever o bloco de bitmap %ld na imagem" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "No foi possvel ler o bloco de bitmap %ld da imagem" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Na foi possvel escrever o bloco %ld no disco rgido" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "No foi possvel ler o bloco %ld da imagem (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "No foi possvel ler %s da imagem" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "No foi possvel ler o SuperBlock" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "No foi possvel escrever o SuperBlock" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "No foi possvel ler o bloco %ld da partio do disco" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "No foi possvel ler o bloco de bitmap %ld da partio do disco (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "No foi possvel escrever o MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "No foi possvel ler o MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "No uma partio %s. Verifique o tipo de sistema de ficheiros" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "A partio foi guardada com uma verso mais recente do Partition Image. Por\n" "favor obtenha a verso mais recente." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Erro durante a escrita do ficheiro de imagem: disco cheio!" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "No foi possvel detectar o sistema de ficheiros da partio %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "No foi possvel escrever o cabealho principal" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "No foi possvel escrever o eplogo principal" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "No foi possvel ler o eplogo principal" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "A imagem que est a tentar restaurar est encriptada. A verso actual\n" "no suporta encriptao. Por favor obtenha a ltima verso do partimage." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s no o primeiro volume de uma imagem. Por favor tente novamente com o\n" "nmero 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s no uma imagem vlida de uma partio." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "A partio demasiado pequena para ser restaurada:\n" "Tamanho original da partio:...%llu bytes\n" "Tamanho da partio de destino:.%llu bytes" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Ocorreu um erro durante o restauro da partio:\n" "Os valores CRC64 so diferentes, a imagem foi danificada:\n" "CRC64 original:.....%llu\n" "CRC64 actual:.......%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Nmero de volume invlido (%ld em vez de %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Erro no fecho" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "A partio %s j est bloqueada por outro processo. No possvel operar sobre ela" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "No foi possvel abrir a partio %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "No foi possvel bloquear a partio %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "No foi possvel ler o cabealho principal: a imagem est danificada" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "No foi possvel escrever as informaes" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "No foi possvel ler as informaes" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "No foi possvel ler o MBR Magic: a imagem est danificada" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Aviso" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "No est registado como root. Pode deparar com erros \"access denied\" " "durante\n" "a execuo." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Novo volume" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "O volume foi trocado.\n" "Antigo: %s\n" "Novo: %s/%s.%.3ld\n" "Carregue em Enter para continuar" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Confirmao" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Deseja realmente restaurar %s da imagem %s ?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "%s encontrou erros no sistema de ficheiros." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partimage no vai verificar a partio porque %s no existe." #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "Partimage no vai verificar a partio devido ao acesso negado a %s." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "O suporte para %s experimental!" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "O suporte para %s est em fase beta!" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Modo de simulao" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Est a usar o modo de simulao: nada ser escrito" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "O MBR constitui uma parte fundamental do disco rgido. Se escrever um mau\n" "MBR vai perder todas as parties do disco. No continue a menos que\n" "saiba o que est a fazer. Carregue em Continuar para restaurar.\n" "Dispositivo com MBR a restaurar.....%s [%llu]\n" "MBR original........................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "O disco rgido original no cabe no disco rgido actual. O MBR que est\n" "a tentar restaurar foi guardado a partir de outro disco. Isto significa\n" "que os discos no tm o mesmo tamanho ou no se encontram no mesmo\n" "dispositivo (%s e %s). Deseja continuar?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Sucesso" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "O MBR de [%s] foi restaurado com sucesso. Pode ser necessrio reiniciar\n" "o computador para que o sistema operativo use o novo MBR." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Erro: %s" # Acção cancelada a pedido do utilizador #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Aco cancelada a pedido do utilizador" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "O ficheiro de imagem %s j existe. Deseja sobrep-lo?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Acesso negado" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "No tem acesso de escrita em %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Nvel de compresso invlido para %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "A imagem %s j est aberta" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "O ficheiro %s muito pequeno para ser um volume do partimage: no possvel " "ler o cabealho" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "O ficheiro %s no um ficheiro do partimage: magic string incorrecta" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "magic string incorrecta: erro no ficheiro de imagem [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "o volume actual no cabe na imagem actual: identificador errado" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Memria esgotada." #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "password incorrecta ou login negado" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "H demasiados clientes ligados ao partimaged. Tente mais tarde" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "S so suportados volumes %s de 4096 bytes por bloco. O actual de %lu bytes/" "bloco" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "A partio %s j est bloqueada por outro processo. No possvel operar sobre ela" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Erro na verificao dos dados: Nmero de bloco invlido. Um volume ou alguns " "dados podem ter sido saltados" #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Este volume (%ld) no o esperado: %ld." #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Erro de Hostname/IP!\n" "Pode no ter sido possvel resolver o hostname. (Tente novamente com o IP)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "No foi encontrado nenhum MBR na imagem. No possvel continuar" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Foram encontrados erros durante a verificao das parties" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "No possvel ler o MBR do disco" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Sistema de ficheiros invlido ou danificado %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "No foi possvel limpar o bloco do disco: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Ligao recusada pelo servidor: opes de rede incompatveis. Tente desactivar a " "opo de login no servidor usando '-L'" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Ligao recusada pelo servidor: verses diferentes" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "A imagem foi criada com uma verso mais recente (%s) do Partition Image. " "Actualize o software e tente novamente." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "A imagem foi criada com uma verso antiga (%s) do Partition Image. Precisa de " "usar essa verso para restaurar a imagem, ou ento recri-la com a verso recente" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s no um ficheiro de imagem vlido ou encontra-se danificado. No possvel " "continuar" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "%s no um ficheiro regular. Por motivos de segurana no possvel continuar" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "No possvel montar %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "No possvel desmontar %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "No foi possvel criar um ficheiro temporrio [%s]. Verifique se tem os " "privilgios necessrios e se h espao suficiente." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "No foi possvel criar um ficheiro temporrio [%s]. No h espao disponvel." #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "No foi possvel criar o ficheiro temporrio [%s]. O acesso de escrita foi " "negado ao utilizador 'partimag'" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "No foi possvel criar o ficheiro temporrio [%s]. O acesso de escrita foi " "negado." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "O ficheiro muito grande (> 2MB). No possvel continuar. Este problema pode " "ter origem no kernel, na glibc ou no sistema de ficheiros onde a imagem est " "a ser guardada" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Erro desconhecido %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Informao de debug Newt" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Continuar" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Sim" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "No" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partio a guardar/restaurar" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Imagem a criar/usar" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Aco a tomar:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Guardar a partio num novo ficheiro de imagem" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Restaurar a partio a partir de um ficheiro de imagem" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Restaurar um MBR a partir de um ficheiro de imagem" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Ligar ao servidor" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Encriptar dados na rede usando SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL desactivado durante a compilao" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL&login desactivados durante a compilao" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/nome do servidor:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Porta:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Prximo (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Sobre" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "O campo \"Imagem\" est vazio. No possvel continuar" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "O campo \"IP/nome\" est vazio. No possvel continuar " #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "O campo \"Porta\" no contm um valor inteiro. No possvel continuar" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Descrio da partio" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Pode introduzir uma descrio da partio guardada:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "O texto no pode estar vazio" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Password necessria" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Introduza o seu login" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Introduza a sua password" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Disco cheio! No possvel guardar o prximo ficheiro de volume (%s.%.3ld)\n" "em %s\n" "Introduza o path para outra directoria (sem nome de ficheiro):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Localizao do Novo Volume" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "A porta do servidor deve estar entre 1 e 65535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "O modo de compresso deve ser 0 (nenhuma), 1(gzip), 2(bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "O modo de terminao deve ser 0(esperar), 1(parar), 2(reiniciar) ou 3(sair)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "O nvel de debug deve ser 0(nenhum), 1(utilizador), 2(developer) ou 3" "(debugging)\n" #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Tamanho do Volume: %llu bytes (%ld KB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image verso %s (distribudo sob a GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "No foi possvel abrir o ficheiro de debug.\n" #: src/client/main.cpp:529 #, fuzzy msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" "Tem o devfs activado, mas no se encontra montado. Deve mont-lo antes de " "continuar. Pretende faz-lo agora? (se no estiver seguro, responda \"Cancelar" "\")" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "forando cpia da cache do buffer para o disco." #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "O MBR foi restaurado com sucesso" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulao" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operao" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Error: No foi possvel parar o computador" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Erro: No foi possvel reiniciar o computador" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Erro: No foi possvel reiniciar o computador" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Erro: No foi possvel reiniciar o computador" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) verso %s [%s]\n" "---- distribudo sob a licena GPL 2 (GNU General Public License) ----\n" "\n" "Systemas de ficheiros suportados:....ext2fs, reiserfs, fat16, fat32, ntfs" "(exp), hpfs\n" "\n" "uso: partimage [opes] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Argumentos:\n" "* :\n" " - save: guardar os dados da partio num ficheiro de imagem\n" " - restore: restaurar uma partio a partir de um ficheiro de imagem\n" " - restmbr: restaurar um MBR a partir de um ficheiro de imagem\n" " - imginfo: mostrar informao sobre um ficheiro de imagem\n" "* : partio a guardar/restaurar (exemplo: /dev/hda1)\n" "* : ficheiro para os dados sero lidos/escritos. pode ser " "muito grande.\n" "\n" "Opes:\n" "* -z, --compress (nvel de compresso da imagem):\n" " -z0, --compress=0 no comprimir: muito rpido, mas resulta num ficheiro " "muito grande\n" " -z1, --compress=1 compress using gzip: rpido e produz um ficheiro " "pequeno (usado por omisso)\n" " -z2, --compress=2 compress using bzip2: muito lento, mas gera um " "ficheiro muito pequeno\n" "* -c, --nocheck no verificar a partio antes de guardar\n" "* -o, --overwrite sobrepr a imagem existente sem confirmar\n" "* -d, --nodesc no pedir descrio para a imagem\n" "* -V, --volume separar a imagem em vrios volumes\n" " -VX, --volume=X criar volumes com X KB de tamanho\n" "* -w, --waitvol aguardar uma confirmao aps cada troca de volume\n" "* -e, --erase apagar blocos vazios com zeros durante o restauro\n" "* -m, --allowmnt no abortar se a partio estiver montada. Perigoso!\n" "* -M, --nombr no criar um backup do MBR (Master Boot Record) no " "ficheiro de imagem\n" "* -h, --help mostrar ajuda\n" "* -v, --version mostrar verso\n" "* -i, --compilinfo mostrar opes de compilao usadas\n" "* -f, --finish aco a tomar quando termina com sucesso:\n" " -f0, --finish=0 wait: no fazer nada\n" " -f1, --finish=1 halt: parar o computador\n" " -f2, --finish=2 reboot: reinicar o computador\n" " -f3, --finish=3 quit\n" "* -b, --batch modo no-interactivo: a interface no aguarda ordens do " "utilizador\n" "* -y, --nosync no sincronizar os discos no final da operao " "(perigoso)\n" "* -sX, --server=X especificar o endereo IP do servidor partimaged\n" "* -pX, --port=X especificar a porta do servidor partimaged\n" "* -g, --debug=X definir o nvel de debug como sendo X (por omisso: 1):\n" "* -n, --nossl desactivar o SSL em modo de rede\n" "* -S, --simulate simulao do modo de restaurao\n" "* -aX, --automnt=X montagem automtica com argumentos X. Leia a documentao " "para mais detalhes\n" "* -UX --username=X username a usar na autenticao com o servidor\n" "* -PX --Password=X password a usar na autenticao com o servidor\n" #: src/client/main.cpp:894 msgid "stable" msgstr "estvel" #: src/client/main.cpp:894 msgid "unstable" msgstr "instvel" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s terminado com sucesso:\n" "\n" "Tempo decorrido.%s\n" "Velocidade:.....%s/min\n" "Dados copiados:.%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "inicializando a operao. Por favor aguarde..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Guardando a partio no ficheiro de imagem..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "inicializando a operao" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "No foi possvel ler o MBR Magic: a imagem est danificada" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "No foi possvel ler o cabealho principal: a imagem est danificada" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "falta um inode" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "O inode %s no existe. O partimage pode cri-lo por si. Tambm pode cri-lo " "manualmente usando o comando mknod. Pretende que o inode seja criado por si " "agora?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s no um block device." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "No tem acesso a /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Ocorreu um erro ao tentar ler /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "A partio %s est montada. O Partition Image no consegue operar em parties " "montadas. Por favor desmonte-a primeiro. Pode faz-lo usando \"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "O tamanho de cada volume deve ser um inteiro maior do que 1024 (tamanho >= " "1024KB)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Opes de automontagem invlidas. Leia o manual para mais instrues" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "O segundo argumento [%s] deve ser um dispositivo vlido (ex: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "O terceiro argumento [%s] deve ser um ficheiro regular (no pode ser uma " "directoria, link simblico, ...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Sair do partimage?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Deseja realmente cancelar a operao actual?" #: src/client/fs/fs_base.cpp:346 #, fuzzy msgid "local check error" msgstr "Erro de CRC local" #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Ocorreu um erro de posico em CCheck. Os dados podem ter sido danificados. " "Deseja continuar?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "Erro de CRC local" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Ocorreu um erro de posico em CCheck. Os dados podem ter sido danificados. " "Deseja continuar?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Ocorreu um erro de CRC em CCheck. Os dados podem ter sido danificados. " "Deseja continuar?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "lendo as propriedades da partio" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "verificando o sistema de ficheiro com o fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "escrevendo cabealho" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "copiando blocos de dados usados" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "lendo as informaoes da partio" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Tamanho do bloco..............%llu bytes\n" "Total de blocos...............%llu\n" "Blocos usados.................%llu\n" "Blocos livres.................%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sUtilizao de espao:.........%llu %%\n" "Espao usado..................%s\n" "Espao livre..................%s\n" "Espao de bitmap..............%s\n" "Etiqueta......................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sNmero de grupos............%lu\n" "Primeiro bloco................%lu\n" "Jornalizao Ext3fs...........%s\n" "Super bloco esparso...........%s\n" "Suporte ficheiros grandes.....%s\n" "Reviso sistema de ficheiros..%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "sim" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "no" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informao sobre Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informao sobre Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Ocorreu um erro ao ler o bitmap" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sTamanho do sector.............%u\n" "Sectores por cluster..........%u\n" "Sectores reservados...........%u\n" "Sectores da Root directory....%lu\n" "Tabelas FAT...................%u\n" "Total de Sectores.............%lu\n" "Sectores por FAT..............%lu\n" "Clusters......................%lu\n" "Clusters usados...............%lu\n" "Clusters livres...............%lu\n" "Clusters danificados..........%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Informaes sobre FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "No foi possvel ler o sector de arranque" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster no pode ser null. Verifique que a partio a guardar " "realmente FAT" #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "No foi possvel ler o sector FSInfo" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s no uma partio NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Memria esgotada: so precisos %lu bytes para ler o registo de ficheiro em " "readBitmap()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "No foi possvel ler o registo $Bitmap MFT. Deseja realizar uma procura " "experimental? (pode demorar bastante tempo)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "No foi possvel encontrar o $bitmap com a pesquisa experimental" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "No possvel usar o registo de ficheiro $bitmap" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "O $Bitmap de NTFS demasiado pequeno" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Memria Esgotada" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes por sector..............%u\n" "Sectores por cluster..........%u\n" "Tamanho do registo............%lu\n" "LCN do atributo MFT Data .....%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Informaes de NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Memria Esgotada: so necessrios %lu bytes para ler o registo do ficheiro em " "readVolumeLabel()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: O atributo \"Attribute List\" no ainda suportado." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Flag de compresso para o atributo DATA no null: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: atributo de dados residente no suportado" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS processRunList() devolveu -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Erro em readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "O atributo \"filename\" tem que ser residente!" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "pesquisa do registo $bitmap" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "pesquisa experimental foi bem sucedida" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS verso:..................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "Informaes HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "No foi possvel ler o bloco de arranque" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "No foi possvel ler o super bloco" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "No foi possvel ler o bloco suplente" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Os magic numbers de HPFS so invlidos. No se trata de uma partio HPFS." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Informaes ReiserFS" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Informaes JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sGrupos de Alocao:...........%lu\n" "Blocos por Grupo de alocao..%lu\n" "Tamanho do grupo de alocao..%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Informaes XFS" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Aguardando..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "erro!" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "procurando espao..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "escrevendo..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "abrindo para leitura..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "guardando" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "lendo..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "fechando..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "abrindo para leitura..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "restaurando" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "terminado" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Cliente #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Estado" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Host" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Localizao" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Tamanho" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "esperando" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Falha de segmentao. Por favor reporte o bug e envie o ficheiro [%s] aos " "autores\n" #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) verso %s\n" "---- distribudo sob a licena GPL 2 (GNU General Public License) ----\n" "\n" "uso: partimaged [opes]\n" "\n" "Opes:\n" "* -h, --help mostrar ajuda\n" "* -v, --version mostrar verso\n" "* -pX, --port=X porta do servidor (por omisso %d)\n" "* -D, --daemon iniciar como daemon, no interactivo\n" "* -r dir, --chroot dir usar chroot para aumentar a segurana\n" "* -g, --debug=X nvel de debug = X (por omisso 1)\n" "* -L, --nologin impedir login dos clientes\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "No foi possvel abrir o ficheiro de log %s: %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Corrija isto e tente novamente.\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "No foi possvel encontrar o utilizador \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "adicione e tente novamente\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Aviso: No foi possvel trocar o euid porque o programa no foi lanado como " "root\n" "Prepare-se para problemas de acesso negado e semelhantes.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Daemon verso %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Daemon verso %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distribudo sob a licena GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Esperando por cliente..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "muitos clientes ligados" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: opes de compilao usadas ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Sistemas de ficheiros suportados:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Suporte para Ext2fs: baseado na biblioteca libext2fs\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Suporte para Ext2fs: cdigo interno\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Opes de debug:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - DEVEL ENABLED\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - DEVEL DISABLED\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "verdadeiro" #: src/shared/common.cpp:106 msgid "false" msgstr "falso" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Outras opes:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - USERS MUST LOGIN\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "- PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - USERS DON'T LOGIN\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS no usado\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ENABLED\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL DISABLED\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ENABLED\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID DISABLED\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld bytes" #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Bytes" #~ msgid "mount: %s" #~ msgstr "mount: %s" partimage-0.6.8/po/LINGUAS0000644000000000000000000000004411252653200013631 0ustar rootrootda de es eu fi fr gl it nl pl pt sk partimage-0.6.8/po/Makevars0000644000000000000000000000345611252653200014312 0ustar rootroot# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Free Software Foundation, Inc. # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = partimage-debug@sourceforge.net # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = partimage-0.6.8/po/es.gmo0000644000000000000000000014351011252653754013743 0ustar rootrootÞ•o” ë ¸¹»Îá,AUrŽ¢/µ"å  > W m   § ½ Ó Ü å î ÷ X!#[!—!"M1"'"'§"PÏ"g #‰ˆ##$Ë6$t%¬w&"$'G'b'ƒ~'4(7(=( V( d(…(.˜(Ç($×(,ü(z))’¤)7*!L*(n*—*¯*Ç*à*+ù*%+9;+&u+-œ+$Ê+ï+,,-4,b,w,Ž,¥,+¸,ä,ü,%-"9-\-{-”-¬-Â-Ö-6Ý-].Kr.8¾.0÷.(/8/‚Q/Ô/eë/Q0c0‚0‰0§0°0'Â0'ê0&1%91!_1"1!¤1 Æ15ç1 2*2m<2.ª2Ù2 â2ð2$353$P3)u3Ÿ3q¿3144N49ƒ4$½4*â4 5525C5"W5z5€5“5²5]Á5+6 K6(U6~6!ž6À6$à6 77 747H7FY7$ 7–Å7‘\8<î9+:@:R:W:[\:¸:Ï:%é:;/;$O;t;‡;Z˜;"ó; <27<-j<%˜<7¾<;ö< 2= S=+t= =±=º=¿=È=Ù=Ý=ö=6>7?>+w>"£> Æ>Ñ>å> ü>?5 ??? N? Z?-{?©?R¬? ÿ? @@ %@3@AB@F„@ Ë@Õ@æ@;ÿ@G;A ƒA ŽAŠ’M"P&@PÜgP=DQ-‚Q°Q$ÆQëQ% R1R(CRlRrRwR~R!”R¶R$ÖRûRS"S$AS%fSLŒS ÙSäS2ôS'T1,T,^T1‹T#½T(áTI UTUZUbU+wU4£U?ØU+V<DVˆV+ W‰6X!ÀX âX(YG,YàtYáUZ#7[m[[©É[s\]J^Gd^¬^\,_?‰_VÉ_M ` n`O|`TÌ`+!aMa/Þab$.b=Sbt‘bccx.c"§cÊcÏcíc ddwd‘d¢d¸dÉdMÍd9e3Ue!‰e«e#+fBOf’f"¤f ÇfÓfóf gg0g=6g@tgµg ¾gËgègùg6hNh*ih ”h¢h²hMÄh9iLiOiTiii i‹iªi!Çi éióij*j.BjqjFxj¿jÙjOÞj.k6k,?klktk ƒk k›kƒŸk#m%mBm(Vmm˜m«mÀmÕmòmn"n45n$jnn"¦nÉnânøn oo2oHofoooxoo Šol•o/p 2p"ÓpTöp*Kq4vq\«qr™Šr$$såIs¤/tÓÔu¨vÈv æv¡w?©w éwówx xAx0Ux†x/šx6Êx–yµ˜y*Nz/yz?©z%éz"{#2{!V{Ax{ º{SÛ{;/|>k|0ª|&Û|&})}GI}"‘}"´} ×}ø}7~$H~$m~?’~3Ò~/#6*Z&…¬ÈOÑz!€aœ€Lþ€;K‡*È"Y‚f|‚ã‚3ü‚0ƒ'8ƒ `ƒjƒ0ƒ(°ƒ$Ùƒ!þƒ) „'J„%r„%˜„<¾„ û„ …"…6¤… Û…å…&ô…)†E†'c†(‹†&´† Û†|‡1™‡:ˇˆ4%ˆZˆ%rˆ˜ˆ¬ˆ&ƈíˆóˆ‰-‰y=‰>·‰ö‰9ÿ‰&9Š)`ŠŠŠ$ªŠ ÏŠÚŠòŠ‹‹V.‹(…‹¯®‹Ø^ŒR7Ž&ŠŽ±ŽÄŽËŽyÒŽLd+(­!Ö+ø$?sW+Ë÷G‘5_‘(•‘H¾‘M’'U’*}’2¨’Û’í’ü’ ““)“#-“Q“Cd“?¨“/è“#” <”J” j”‹”š”G”å”õ”* •94•n•[q• ͕ؕᕠõ• –T–Zc– ¾–Ì–ä–;—T<— ‘—F œ—Õã¤'¹§+á§æ ¨<ô¨;1©m©%‹© ±©4Ò©ª.ªKªSª Yªcª#zªžª)½ª çª)òª0«-M«/{«\«« ¬¬/%¬U¬?]¬-¬3ˬ#ÿ¬&#­`J­«­²­¹­5Ø­A®NP®4Ÿ®9Ô®—¯8¦¯ß°,m±$š±,¿±Vì± C²N³,n´ˆ›´¼$µŠáµl¶N†·QÕ·¡'¸rɸI<¹a†¹Qè¹ :ºQHº[šº%öºŒ»*©»Ô»"ô»M¼€e¼æ¼½”½*¬½×½*ß½ ¾ '¾ 5¾~?¾¾¾ξé¾û¾`ÿ¾6`¿;—¿"Ó¿„ö¿{À6›ÀÒÀ+éÀ Á$"Á GÁhÁ$pÁ•ÁX›ÁaôÁ VÂ`Â%vœÂ$µÂSÚÂ.Ã-JÃxËÛÃ]¸ÃHÄ_ÄbÄjÄÄ œÄ%¨Ä(ÎÄ-÷Ä %Å*1Å \Å2fÅ8™ÅÒÅJÚÅ%Æ DÆaNÆ °Æ ¼Æ>ÆÆ ÇÇ$Ç4ÇDǨ$8@kAöØSšêýèŒ ‚©•ç4]G+g ±ó‘¼Q-g!R"ÆbõE Ÿ0òüÄ÷[fÜú#WhY Þ³LÛf7V%c!mHÿôÃZ*n,–Åv9oÔ$ìMdTS'¶i1WµÎ\K@LÌžàG<«s/¦jU+M.B°mÇPÓ2ªûbIi E5llÕ´OOe ÁŽ'?QCN’y;Jo¥™:T[-%}P>aþßå6:&qeù‰HwBj x6—k¹I# J3Ï|(\,®‹t]3R£²7 / a;`§›ˆ"¢äzË¿éâ_=4{×Kïá¬8¡*rU1æÍA Ê?^hí¸î<XЄuÚÒF V¯=·X5ë&”>9˜F»2‡nƒc)(pÑC.)¾ÙNŠ…ñ­º½€Z _0ðÖ~œÀݤȆ`D“ÉãdY^Dø * Debug options: * Other options: * Supported file systems: - * Version is %s [%s]. - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%.2f GiB%.2f KiB%.2f MiB%.2f TiB%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBecause of a bug, you won't be able to restore MBR from any bzip2 compressed image unless you manualy run bzip2 -d on themBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Bzip2 bug workaroundCRC changed: the image is damagedCan't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot restore the MBR from an image compressed with bzip2. You have to change the compression level.Cannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sDEBUG: reboot the computerData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in Main TailError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot count remaining partimagesError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to find a local check structure. Data may be damaged. Do you want to continue ?Impossible to open logfile %s: %s Impossible to read MBR from diskImpossible to read the magic: the image is damagedImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsKnow bugLastLocationMain window (F7)MiBNTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon (http://www.partimage.org/) version %s ---- distributed under the GPL 2 license (GNU General Public License) ---- usage: partimaged [options] Options: * -h, --help show help * -v, --version show version * -d, --dest destination directory * -pX, --port=X server's port listening (defaults to %d) * -D, --daemon start in daemon mode, not foreground * -i, --compilinfo show compilation options used * -r dir, --chroot dir use chroot to improve security * -g, --debug=X set the debug level to X (default: 1) * -L, --nologin disable login from clients Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluThis volume (%ld) is not the expected one: %ld.Time elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX Volume size: %llu bytes (%ld MiB) WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:Wrong volume insertedXFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou have devfs enabled but not mounted. You have to do it to continue. You can also boot with non-devfs kernel if you have one.You haven't access to /proc/mounts.You will be prompted to remove this media and insert the right oneadd it and retry checking the file system with fsckclosing ...commiting buffer cache to disk.copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" incorrect password or user not in partimagedusers fileinitializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorlocal check errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 simulate partition restoration from image filestablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablevolume numbers changed: the image is damagedwaitingwriting headerwritting ...wrong pathyesProject-Id-Version: es Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2004-07-28 20:49+0200 Last-Translator: Luis Llorente Language-Team: español MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First-Translator: jon bengoetxea X-Generator: KBabel 1.3.1 * Opciones de depuración: * Otras opciones: * Sistemas de ficheros soportados: - * Versión es %s [%s]. - APPEND_PID=%s - CHEUID DISABLED - CHEUID ACTIVADO - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Soporte Ext2fs basado en la librería libext2fs - Soporte Ext2fs: código interno - PARTIMAGED_LOG=%s - PARTIMAGED_USERS no utilizado - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN búsqueda de registro $bitmap%.2f GiB%.2f KiB%.2f MiB%.2f TiB%lld bytes%s terminó satisfactoriamente: Tiempo transcurrido:...%s Velocidad:..........%s/min Datos copiados:....%s%s encontró errores en el sistema de ficheros.El inodo %s no existe. Partimage puede crearlo por usted. También puede utilizar el comando mknod manualmente. ¿Quiere que se cree por usted este inodo ahora?%s no es un dispositivo de bloque.%s no es un fichero de imagen válido o está dañado. Lo siento, no puedo continuar%s no es una imagen de partición válida.%s no es una partición con sistema de ficheros NTFS%s no es el primer volumen de una imagen. Por favor, reintente con el número de volumen 000%sNúmero de asignaciones de grupo:.......%lu Bloques por grupo de asignación...%lu Tamaño del grupo de asignación:........%s %sBytes por sector..............%u Sectores por cluster...........%u Tamaño del registro de fichero..............%lu LCN de MFT Data attrib........%llu %sversión HPFS:.................%d %sNúmero de grupos..............%lu Primer bloque...................%lu Ext3fs transaccional.........%s Densidad super bloque............%s Soporte de ficheros grandes...........%s Revisión del sistema de ficheros..........%lu %sTamaño del sector...................%u Sectores por cluster...........%u Número de sectores reservados........%u Sectores de directorio raíz........%lu Número de tablas FAT..............%u Número total de sectores...........%lu Sectores por FAT...............%lu Número de clusters:...............%lu Clusters utilizados.................%lu Clusters libres.................%lu Clusters dañados..............%lu %s Utilización de espacio:..................%llu %% Espacio utilizado....................%s Espacio libre....................%s Tamaño del mapa de bits...................%s Etiqueta.........................%s (distribuido bajo la GNU GPL2) * Fichero imagen a crear/usar* Partición a guardar/restaurar-------------------- MBR %.3d ------------------- Dispositivo:................%s Número de bloques del dispositivo:...%llu Modelo del dispositivo:..........%s ==== Partition Image: opciones de compilación utilizadas ==== Acerca deAcerca de Partition Image %sAcceso denegadoAcción cancelada por el usuarioAcción a realizar:Ocurrió un error al intentar leer /proc/mounts.Montaje automáticoDivisión automática (cuando no quede espacio)Espacio disponible para la imagen:.....%s = %llu bytesDebido a un fallo, no podrá restaurar el MBR de ningún fichero imagen comprimido con bzip2 a no ser que ejecute manualmente bzip2 -d en los ficherosTamaño de bloque....................%llu bytes Número de bloques totales............%llu Número de bloques utilizados.............%llu Número de bloques libres.............%llu Solución temporal para el fallo con Bzip2CRC modificado: el fichero imagen está dañadoNo se puede detectar el sistema de ficheros de la partición %sNo se puede bloquear la partición %sNo se puede abrir la partición %sNo se puede leer %s desde la imagenNo se puede leer el sector FSInfoNo se puede leer la cabecera MBR: el fichero imagen está dañadoNo se puede leer el Super BloqueNo se puede leer el bloque de mapa de bits %ld de la partición del disco duro (%s)No se puede leer el bloque de mapa de bits %ld de la imagenNo se puede leer el bloque %ld de la partición del disco duroNo se puede leer el bloque %ld de la imagen (%d)No se puede leer el bloque de arranqueNo se puede leer el sector de arranqueNo se pueden leer informacionesNo se puede leer la cabezera principal: El fichero imagen está dañadoNo se puede leer la cola principalNo se puede leer bloque de reservaNo se puede leer el super bloqueNo se puede leer el MBRNo se puede leer el siguiente fichero de volumen: %s %sNo se puede escribir %s en la imagenNo se puede escribir el Super BloqueNo se puede escribir el bloque de mapa de bits %ld en la imagenNo se puede escribir el bloque %ld en el disco duroNo se puede escribir el bloque %ld en la imagenNo se pueden escribir informacionesNo se puede escribir la cabecera principalNo se puede escribir la cola principalNo se puede escribir el MBRCancelarNo se puede crear el fichero temporal [%s]. No queda espacio en el dispositivo.No se puede crear el fichero temporal [%s]. Por favor, verifique que hay espacio suficiente y que tiene permiso de acceso.No se puede crear el fichero temporal en [%s]. El usuario 'partimag' no tiene acceso de escrituraNo se puede crear el fichero temporal en [%s]. Acceso de escritura denegado.No se puede encontrar $bitmap con la búsqueda experimentalNo se puede montar %sNo se puede abrir el fichero de depurado. No se puede leer "/proc/partitions"(%s). Debe usar la linea de comandos para ejecutar Partition Image. Escriba "partimage --help" para la ayuda.No se puede leer el fichero imagenNo se puede restaurar el MBR de una imagen comprimida con bzip2. Debe cambiar el nivel de compresión.No se puede desmontar %sNo se puede utilizar el registro de fichero $bitmapCambiarVerificar la particion antes de guardarCliente #Nivel de compresiónNivel de compresion:....................Ninguno Nivel de compresion:...............bzip2Nivel de compresion:............gzipNivel de compresion:..........IzoNivel de compresión:.............NingunoNivel de compresión:.............bzip2Nivel de compresión:............gzipNivel de compresión:.............IzoEl modo de compresión debe ser 0 (nada), 1(gzip), 2(bzip2) ConfirmaciónConectar con el servidorConexión rechazada por el servidor: opciones de red incompatibles. Intente deshabilitar la opción login en el servidor con '-L'Conexión rechada por el servidor: versiones distintasContinuarContinuar (F5)Fichero de imagen actual:...........%sFichero de imagen en curso:............%sDEBUG: reiniciar el ordenadorDatos copiados:.................%s / %sDatos copiados:..................%s / %sSistema de ficheros detectado:......%s¡Disco lleno! No se puede escribir el siguiente fichero del volumen (%s.%.3ld) en %s Por favor, introduzca otra ruta de directorio (sin el nombre de fichero):Disco con el MBR a restaurar¿Realmente quiere cancelar la operación actual?¿Quiere realmente restaurar %s del fichero de imagen %s ?Cifrar datos en la red con SSLIntroduzca otra ruta completa ( directorio y nombre)Introducir descripciónIntroduzca un nuevo nombre de ficheroIntroduzca su loginIntroduzca su contraseñaBorrar bloques libres con valores ceroErrorError en la cola principalError en readFilenameAttributeError al cerrarError al verificar los datos: número de bloque inválido. Puede que un volumen o algunos datos se hayan pasado por alto.Error al intentar escribir el fichero imagen: ¡ disco lleno !Error:%sError: no se pueden contabilizar las partimages restantesError: no se puede apagar el ordenadorError: no se puede reiniciar el ordenadorTiempo restante estimado:....%sTiempo restante estimado:.........%sSalir (F6)¿ Salir de partimage ?Informaciones Ext2fsInformaciones Ext3fsInformaciones FATEl fichero %s no es un fichero normal. Por razones de seguridad, no se puede continuarSistema de ficheros:..................%sFichero demasiado grande (mayor de 2 GB). No puede continuar. Este problema puede ser debido al kernel, a la glibc, al sistema de ficheros donde se está escribiendo la imagenSistema de ficheros:............%s Descripción:...........%s Dispositivo original:.......%s Ruta original del fichero:.... %s Banderas:.................%ld: %s Fecha de creación:.........%sTamaño de partición:........%s Nombre del equipo:..............%s Versión compatible:....%s Algoritmo de cifrado:..%ld -> %s Número de MBR guardado:.......%lu Sistema de la copia de seguridad: - máquina:.............%s - sistema operativo:....%s - versión:.............%s El modo de finalización debe ser 0 (esperar), 1(apagar), 2(reiniciar) o 3(salir) Solucione esto y vuelva a intentarlo. Informaciones HPFSApagarEquipoError de nombre de equipo/IP! No se pudo resolver el nombre del equipo. (Inténtelo otra vez utilizando la dirección IP)IP/nombre del servidor:Si acaba satisfactoriamente:Imagen creada en:......................%s Tamaño del fichero imagen:...........%sFichero imagen a crear.........%sFichero de imagen a usar.................%sInformaciones de la imagenModo de imagen divididaNo es posible encontrar una estructura de verificación local. Los datos pueden estar dañados. ¿Quiere continuar?Imposible abrir fichero de registro %s: %s Imposible leer el MBR del discoNo se puede leer la cabecera principal: el fichero imagen está dañadoImposible poner a cero el bloque en el disco duro: %sEn ficheros cuyo tamaño es:............Números de cabecera HPFS inválidos. No es una partición HPFS válida.Opciones de montaje automático no válidas. Lea el manual para más detallesNivel de compresión no válido para %sSistema de ficheros %s inválido o dañadoNúmero de volumen no válido (%ld en vez de %ld).Informaciones JFSError conocidoÚltimoLocalizaciónVentana Principal (F7)MiBNTFS: $Bitmap es demasiado pequeñoInformaciones NTFSNTFS: el atributo "Lista de atributos" todavía no está soportado.NTFS: bandera de compresión para el atributo DATA no nula: %ldNTFS: atributo de datos residentes no soportadoNTFS: processRunList() devolvió -1Nuevo volumenLocalización del nuevo volumenInformación de depurado de newtSiguiente (F5)NoNo se encontró el MBR en este fichero de imagen. No se puede continuarSin descripcionBandera sin activarNinguno (muy rápido + fichero muy grande)No es una partición %s. Verifique el sistema de ficherosOkSólo se soportan volúmenes %s con 4096 bytes por bloque. El actual tiene %lu bytes/bloqueOperaciónOpcionesMBR original de usoSin memoriaSin memoria.Sin memoria: se necesitan %lu bytes para leer el registro de fichero en readBitmap()Sin memoria: se necesitan %lu bytes para leer el registro del fichero en readVolumeLabel()Sobreescribir¿Sobreescribir imagen?Sobreescribir sin preguntarPartimage no verificará la partición porque %s no existe.Partimage no verificará la partición porque no tiene acceso de ejecución para %s.PartimagedPartition Image (http://www.partimage.org/) versión %s [%s] ---- distribuido bajo la licencia GPL 2 (GNU General Public License) ---- Sistemas de ficheros soportados:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs utilización: partimage [opciones] partimage ej: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ej: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ej: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ej: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ej: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ej: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Argumentos: * : - save: guarda los datos de la partición en un fichero imagen - restore: restaura la partición desde un fichero imagen - restmbr: restaura el MBR del fichero imagen a un disco duro - imginfo: muestra información sobre el fichero imagen * : partition a guardar/restaurar (ejemplo: /dev/hda1) * : fichero donde se leerán/escribirán los datos. Puede ser muy grande Opciones: * -z, --compress (nivel de compresión del fichero imagen): -z0, --compress=0 no comprime: muy rápido pero fichero imagen muy grande -z1, --compress=1 comprime utilizando gzip: rápido y fichero imagen pequeño (por defecto) -z2, --compress=2 comprime utilizando bzip2: muy lento y fichero imagen muy pequeño * -c, --nocheck no verifica la partición antes de guardar * -o, --overwrite sobreescribe el fichero imagen existente sin preguntar confirmación * -d, --nodesc no pregunta descripción del fichero imagen * -V, --volume (divide la imagen en varios volúmenes) -VX, --volume=X crea volúmenes con un tamaño de X MB * -w, --waitvol espera por una confirmación después de cada cambio de volumen * -e, --erase borra los bloques vacíos al restaurar con bytes a cero * -m, --allowmnt no falla si la partición está montada. ¡Peligroso ! * -M, --nombr no crea una copia del MBR (Master Boot Record) en el fichero imagen * -h, --help muestra ayuda * -v, --version muestra versión * -i, --compilinfo muestra las opciones de compilación utilizadas * -f, --finish (acción a realizar si termina satisfactoriamente): -f0, --finish=0 esperar: no hace nada -f1, --finish=1 apagar (power off) el ordenador -f2, --finish=2 reiniciar (reinicia el ordenador): -f3, --finish=3 salir * -b, --batch modo batch: la interfaz de usuario no esperará acciones del usuario * -y, --nosync no sincroniza los discos al final de la operación (peligroso) * -sX, --server=X asigna la dirección ip del servidor partimaged * -pX, --port=X asigna el puerto de escucha del servidor partimaged * -g, --debug=X activa el nivel de depurado a X (por defecto: 1): * -n, --nossl desactiva SSL en modo red * -S, --simulate simulación del modo de restauración * -aX, --automnt=X Monta automáticamente con opciones X. Lea la documentación para más detalles * -UX --username=X Nombre del usuario para autentificarse en el servidor * -PX --Password=X Contraseña para la autentificación del usuario en el servidor Demonio Partition Image (http://www.partimage.org/) versión %s ---- distribuido bajo la licencia GPL 2 (GNU General Public License) ---- utilización: partimaged [opciones] Opciones: * -h, --help muestra ayuda * -v, --version muestra versión * -d, --dest directorio de destino * -pX, --port=X puerto de escucha del servidor (por defecto %d) * -D, --daemon iniciar en modo demonio, no en primer plano * -i, --compilinfo muestra opciones de compilación utilizadas * -r dir, --chroot dir utiliza chroot para mejorar la seguridad * -g, --debug=X asigna el nivel de depuración a X (por defecto: 1) * -L, --nologin desactiva login de los clientes Demonio de Partition Image versión %s Demonio de Partition Image versión %s+SSL Partition Image se distribuye bajo la licencia GNU GPL 2 (General Public License) versión:....%s web:.........http://www.partimage.org/ Autores: Francois Dupoux Franck Ladurelle Partition Image versión %s (distribuido bajo la GNU GPL2). Las verificaciones encontraron error(es) en las particionesDescripción de la particiónPartición a restaurar:............%sPartición a guardar:.........%sLa partición estaba en el dispositivo:..........%s Requiere contraseñaPor favor, pulse "ok" para montar [%s] en [%s]Puerto:SalirReiniciarInformaciones ReiserFSRestaurar un MBR del fichero imagenRestaurar un MBR al disco duroRestaurar partición de un fichero imagenReintentarSSL desactivado en tiempo de compilaciónSSL&login desactivados en tiempo de compilaciónGuardar partición en un nuevo fichero imagenGuardando la partición al fichero de imagen...Fallo de segmentación. Por favor, informe del fallo y envíe el fichero [%s] a los autores SimulaciónModo simulaciónSimulación de la restauración (no se escribe)TamañoTamaño del la partición a restaurar:..........%s = %llu bytesTamaño de la partición:.......%s=%llu bytesTamaño de la particion original:...%s = %llu bytesVelocidad:...................%s/minTransferencia:..................%s/minEl tamaño de división de los volúmenes debe ser un entero mayor que 1024 (tamaño >= 1024 KB)EstadoÉxitoEl texto no puede estar vacíoEl campo "Imagen" está vacío. No se puede continuarEl campo "Servidor IP/Nombre" está vacío. No se puede continuarEl campo "Puerto del Servidor" no es un número válido. No se puede continuarEl atributo "nombre de fichero" debe ser residente !El fichero imagen %s ya existe. ¿Quiere sobreescribirlo?La partición %s está montada. Partition Image no puede funcionar en particiones montadas. Por favor, desmóntela antes. Puede hacerlo con "umount %s"El MBR es un dato muy importante del disco duro. Si escribe un MBR erróneo, perderá todas las particiones de su disco duro. No continúe a no ser que sepa lo que está haciendo. Pulse 'Continar' para restaurar. Dispositivo con MBR para restaurar:.........%s [%llu] MBR original:.......................%s [%llu]El MBR de [%s] se restauró sin problemas. Puede que necesite reiniciar su ordenador si quiere que el sistema operativo utilice el nuevo MBR.El MBR ha sido restaurado satisfactoriamente¡ El soporte actual de %s es beta !¡ El soporte actual de %s es experimental !El nivel de depuración debe ser 0(nada), 1(usuario), 2(desarrollador) ó 3(depurado) El fichero imagen ya existe ¿Quiere sobreescribir o cambiar el nombre del fichero imagen ? Fichero: %s Para cambiar el nombre del fichero, por favor introduzca la ruta completa (localización + nombre fichero) sin el número del volumen al final, y pulse "Cambiar"El siguiente fichero imagen está bloqueado. ¿Quiere esperar y reintentar o cambiar el nombre del fichero imagen ? Fichero:%s Para cambiar el nombre del fichero, por favor introduzca la ruta completa (localización+nombre fichero) sin el número del volumen al final, y pulse "Cambiar"El fichero imagen "%s" no se puede encontrarEl fichero imagen se creó con una versión más nueva (%s) de Partition Image. Por favor, actualice el programa y vuelva a intentarlo.El fichero imagen se creó con una versión más antigua (%s) de Partition Image. Debe utilizar la versión antigua para restaurar la imagen, o debe crearla de nuevo con la versión actualLa imagen que intenta restaurar fue cifrada. La versión actual no soporta cifrado. Por favor, descargue la última versión de partimage.El disco duro original no cabe en el disco duro actual. El MBR que está intentando restaurar fue guardado de otro disco duro. Esto significa que el el disco duro original y el actual no tienen el mismo tamaño o que no están en el mismo dispositivo (%s y %s). ¿Quiere continuar?La partición %s está bloqueada por otro proceso. No puede hacer nada en ellaLa partición %s está bloqueada por otro proceso. No se puede hacer nada en ellaLa partición es muy pequeñapara ser restaurada: Tamaño de la partición original:...........%llu bytes Tamaño de la partición de destino:.........%llu bytesLa partición se guardó con una versión más nueva de Partition Image. Por favor, descargue la última versión.El segundo argumento [%s] debe ser un dispositivo válido (ej: /dev/hda1)El tercer argumento [%s] debe ser un fichero normal (no un directorio, un enlace simbólico, ...)El volumen ha cambiado. Antiguo: %s Nuevo: %s/%s.%.3ld Pulse Enter para continuarEl MBR enteroHubo un error CRC en CCheck. Los datos pueden estar dañados. ¿Quiere continuar?Hubo una posición de error en CCheck. Los datos pueden estar dañados. ¿Quiere continuar?Hubo un error al leer el mapa de bitsHubo un error al restaurar la partición: Los CRC64 son distintos, la imagen está dañada: CRC64 original:.....%llu CRC64 actual:......%lluEste volumen (%ld) no es el esperado: %ld.Tiempo transcurrido:.........%sTiempo transcurrido:............%sDemasiados clientes conectados a partimaged. Por favor, inténtelo más tardeNo se puede leer el registro $Bitmap MFT.¿Quiere hacer una búsqueda experimental para encontrarlo? (puede llevar mucho tiempo)Error desconocido %d -> %sVolumen no encontradoNúmero de volumen:.........%lu Tamaño del volumen:.........%s Nivel de compresión:...........%ld -> %s Identificador:.................%llu=%llX Tamaño del volumen: %llu bytes (%ld MiB) EsperarEsperar después de cada cambio de volumenEsperando por el cliente ...Esperando ...AtenciónAtención: no se pudo cambiar el euid porque no se ejecutó como root espere algunos accesos denegados o problemas como este. Qué restaurar:Volumen insertado erróneoInformaciones XFSSíNo está dentro del sistema como root. Puede que tenga errores de "acceso denegado" al trabajar.Está utilizando modo de simulación: no se escribiráPuede introducir una descripción de la partición salvada:No tiene acceso de escritura en %sDebe tener devfs activado pero sin montar. Debe hacerlo para continuar. También puede arrancar con un kernel sin devfs si lo tiene.No tiene acceso a /proc/mounts.Se le dirá que quite este medio e inserte el correctoañádalo y reintente verificando el sistema de ficheros con fsckcerrando ...enviando caché del buffer al disco.copiando bloques de datos usadoserror !búsqueda experimental satisfactoriafalsoel fichero %s no es un fichero imagen partimage: las cadenas de la cabecera no coincidenel fichero %s es demasiado corto para estar en un volumen partimage: no se puede leer la cabeceraterminadoconseguir espacio ...el fichero imagen %s ya está abiertofichero imagen bloqueadoimposible encontrar al usuario "%s" contraseña incorrecta o usuario no presente en el fichero de usuarios de partimageinicializando la operacióniniciando la operación. Por favor, espere...inodo desaparecidoerror CRC localerror de verificación localm_cSectorsPerCluster no puede ser nulo. Verifique que la partición a guardar es de tipo FAT.las cadenas de la cabecera no coinciden: error en el fichero imagen [%s]noningunoabriendo para leer ...abriendo para escribir ...leyendo ...leyendo información de la particiónleyendo las propiedades de la particiónRestaurar una partición de un fichero imagenrestaurandoguardar una partición a un fichero imagenguardandoel puerto del servidor debe estar entre 1 y 65535 simular restauración de partición de un fichero imagenestableel volumen actual no coincide con la imagen actual: identificador erróneodemasiados clientes conectadosverdaderoimposible acceder a %s Por favor, introduzca otra ruta de directorio (sin el nombre de fichero):desconocidoinestablelos números del volumen han cambiado: la imagen está dañadaesperandoescribiendo cabeceraescribiendo ...ruta incorrectasípartimage-0.6.8/po/da.gmo0000644000000000000000000014000011252653754013707 0ustar rootrootÞ•nŒ ëü¨©«¾Ññ 1Eb~’/¥"Õø . G ] o € — ­ à Ì Õ Þ ç Xò #K!—o!"M!"'o"'—"P¿"g#‰x##$Ë&$tò$¬g&"'7'R'ƒn'4ò''(-( F( T(u(.ˆ(·($Ç(,ì(z)’”)'*!<*(^*‡*Ÿ*·*Ð*+é*+9++&e+-Œ+$º+ß+õ+ ,-$,R,g,~,•,+¨,Ô,ì,%-")-L-k-„-œ-²-Æ-6Í-].Kb.8®.0ç./(/‚A/Ä/eÛ/A0S0r0y0—0 0'²0'Ú0&1%)1!O1"q1!”1 ¶15×1 22m,2.š2É2 Ò2à2$3%3$@3)e33q¯3!44>49s4$­4*Ò4ý45"535"G5j5p5ƒ5¢5]±5+6 ;6(E6n6!Ž6°6$Ð6 õ6ÿ67$787FI7$7–µ7‘L8<Þ9:0:B:G:[L:¨:¿:%Ù:ÿ:;$?;d;w;Zˆ;"ã; <2'<-Z<%ˆ<7®<;æ< "= C=+d==¡=ª=¯=¸=É=Í=æ=6ø=7/>+g>"“> ¶>Á>Õ> ì>ö>5ù>/? >? J?-k?™?Rœ? ï?ù?@ @#@A2@Ft@ »@Å@Ö@;ï@G+A sA ~AŠ‚M" P&0PÜWP=4Q-rQ Q$¶QÛQ%ûQ!R(3R\RbRgRnR!„R¦R$ÆRëRñR"S$1S%VSL|S ÉSÔS2äST1T,NT#{T(ŸTIÈTUU U+5U4aU?–U+ÖU<Vˆ?V+ÈV‰ôW!~X  X(ÁXGêXà2YáZ#õZm[©‡[1\¿\J×]G"^j^\ê^?G_V‡_MÞ_ ,`O:`TŠ`+ß` a/œaÌa$ìa=btObÄbÛbxìb"ecˆcc«c ÂcÏcw×cOd`dvd‡dM‹d9Ùd3e!Geie#éeB fPf"bf …f‘f±fÊfÒfîf=ôf@2gsg |g‰g¦g·g6Õg h*'h Rh`hphM‚h9Ðh i ii'i =iIihi!…i §i±iÎi*Õi.j/jF6j}j—jOœjìjôj,ýj*k2k Ak NkYkU]k³lµlÔl#çl mm2mLmfmƒmŸm¸mBÑm+n@n!Wnyn’n¨n¿n Ön÷no/o7o?oGo OoiYoÃoàoqp]Šp0èpqM6qs„q„øq#}rÒ¡rts öt—u)²u%Üuuv=xv¶v¹vÏv#Þvw4wSw.fw6•wÌw”Lxáx.òx>!y`y|y#˜y¼y8Ûyz9-z/gz.—z-Æzôz{'-{@U{*–{Á{Ü{õ{)|$2|W|0q|'¢|*Ê|(õ|!}+@}l} €}CŠ}YÎ}K(~7t~9¬~æ~ ú~~šh¸!€"7€Z€"`€ƒ€Œ€* €$Ë€#ð€"$7$\#"¥BÈ ‚‚}-‚0«‚Ü‚ å‚&ó‚&ƒ'Aƒ&iƒ&ƒ·ƒwÓƒ"K„9n„@¨„#é„/ …=…Q…e…z…"…³…¸…Ë…è…vù…Ip†º†+Æ#ï†#‡7‡+R‡ ~‡Їœ‡¯‡‡LÒ‡"ˆ–BˆðÙˆYÊŠ$‹@‹Q‹ Y‹`f‹Ç‹Ú‹.í‹,Œ+IŒ1uŒ§ŒÆŒ`äŒ!Eg4…2º*íDŽ4]Ž"’޵Ž,ËŽøŽ 14N;_;›2×% 0;N lxH|Å×%æ0 ‘=‘ZB‘‘ ¦‘ ´‘Õ‘î‘U’Z^’ ¹’Ã’Ü’Aö’P8“ ‰“b ”“\÷Ÿ"T¢&w¢ßž¢5~£F´£û£,¤'>¤)f¤¤(¤¤ͤÔ¤Û¤ä¤"ù¤.¥&K¥ r¥@}¥1¾¥&ð¥&¦S>¦ ’¦¦2±¦ ä¦Bï¦-2§'`§'ˆ§c°§¨¨$¨1D¨<v¨C³¨+÷¨>#©¡b©Cª‡H«Ы+í«:¬^T¬Ò³¬Ö†­%]®lƒ®Ë𮄼¯A°MR±M ± î±^²?î²k.³Wš³ò³Oû³TK´. ´–Ï´.fµ•µ²µPϵ ¶¢¶·¶„ʶ*O·z··œ· ³·½·}Æ·D¸Y¸o¸¸Z‚¸Hݸ5&¹\¹’|¹$º>4ºsº Šº «ºµºÕºñº%÷º»8#»U\»²»º»%Ó»ù»¼@/¼p¼=…¼ üѼà¼mï¼;]½™½½£½º½ Ò½ܽù½#¾ 9¾!C¾e¾*l¾4—¾̾KÓ¾¿=¿AB¿„¿‹¿:“¿οÕ¿ æ¿ ñ¿ý¿¨$7?kAöØRšêýèŒ ‚©•ç3]G*f±ó‘¼Q-g!R!ÆbõD Ÿ/òüÄ÷ZeÜú"WhY Þ³KÛ f6V$b lHaôÃY*m+–Åv9nÔ#ìMdTS'¶i1VµÎ\K@LÌžàF;«s.¦iT+L-A°mÇPÓ1ªûHh E5lkÕ´NOe ÁŽ&>PCM’y;Io¥™9S[,%}O>aþßå6:%qdù‰GwBjx5—j¹I# J3Ï|'[,®‹t\2Q£²7 / `:_§›ˆ"¢äzË¿éâ_<4{×Jïá¬8¡)rU0æÍ@ Ê?]gí¸î<XЄuÚÒF U¯=·W4ë&”=8˜E»2‡nƒc((pÑB.)¾ÙÿNŠ…ñ­º½€Z ^0ðÖ~œÀݤȆ`C“ÉãcX^Dø * Debug options: * Other options: * Supported file systems: - * Version is %s [%s]. - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%.2f GiB%.2f KiB%.2f MiB%.2f TiB%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBecause of a bug, you won't be able to restore MBR from any bzip2 compressed image unless you manualy run bzip2 -d on themBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Bzip2 bug workaroundCRC changed: the image is damagedCan't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot restore the MBR from an image compressed with bzip2. You have to change the compression level.Cannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sDEBUG: reboot the computerData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in Main TailError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot count remaining partimagesError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to find a local check structure. Data may be damaged. Do you want to continue ?Impossible to open logfile %s: %s Impossible to read MBR from diskImpossible to read the magic: the image is damagedImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsKnow bugLastLocationMain window (F7)MiBNTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon (http://www.partimage.org/) version %s ---- distributed under the GPL 2 license (GNU General Public License) ---- usage: partimaged [options] Options: * -h, --help show help * -v, --version show version * -d, --dest destination directory * -pX, --port=X server's port listening (defaults to %d) * -D, --daemon start in daemon mode, not foreground * -i, --compilinfo show compilation options used * -r dir, --chroot dir use chroot to improve security * -g, --debug=X set the debug level to X (default: 1) * -L, --nologin disable login from clients Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluThis volume (%ld) is not the expected one: %ld.Time elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX Volume size: %llu bytes (%ld MiB) WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:Wrong volume insertedXFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou have devfs enabled but not mounted. You have to do it to continue. You can also boot with non-devfs kernel if you have one.You haven't access to /proc/mounts.You will be prompted to remove this media and insert the right oneadd it and retry checking the file system with fsckclosing ...commiting buffer cache to disk.copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" incorrect password or user not in partimagedusers fileinitializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorlocal check errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 simulate partition restoration from image filestablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablevolume numbers changed: the image is damagedwaitingwriting headerwritting ...wrong pathyesProject-Id-Version: da Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2004-02-09 07:40+0100 Last-Translator: Gunner Poulsen Language-Team: Dansk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.2 * Fejlfindingsindstillinger: * Andre tilvalg: * Understøttede filsystemer: - * Version %s [%s. - APPEND_PID=%s - CHEUID ER SLÃ…ET FRA - CHEUID ER SLÃ…ET TIL - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL ER SLÃ…ET FRA - DEVEL ER SLÃ…ET TIL - understøttelse af Ext2fs : baseret pÃ¥ libext2fs biblioteket - understøttelse af Ext2fs: intern kode - PARTIMAGED_LOG=%s - PARTIMAGED_USERS bruges ikke - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL ER SLÃ…ET FRA - SSL ER SLÃ…ET TIL - BRUGERE SKAL IKKE LOGGE IND - BRUGERE SKAL LOGGE IND søger efter $bitmap record%.2f GB%.2f kb%.2f MB%.2f TB%lld byte%s afslutteder problemfrit: Brugt tid:................%s Hastighed:..........%s/min Data kopieret:....%s%s fandt fejl i filsystemet.%s inode eksisterer ikke. Partimage kan lave den for dig. Du kan ogsÃ¥ lave den manuelt med kommandoen mknod. Skal denne inode laves for dig nu?%s er ikke en blokenhed.%s er ikke en brugbar partitions-spejlbilledfil, eller den er beskadiget. Kan ikke fortsætte%s er ikke en brugbar partitions-spejlbilledfil.%s er ikke en NTFS-partition%s er ikke det første volume af dette spejlbillede. Start med volume nr. 000%sAntal grupper allokeret:.......%lu Blokke per allokeret gruppe...%lu Størrelse af allokerede grupper:........%s %sbyte per sektor.......%u Sektorer per klynge.............%u File record størrelse...........%lu LCN of MFT Data attribut....%llu %sHPFS version:.................%d %sAntal grupper......%lu Første blok...........................%lu Ext3fs-journalisering............%s Superblok med huller...........%s Understøttelse af store filer..%s Filsystemrevision................%lu %sSektorstørrelse..%u Sektorer per klynge..............%u Antal reserverede sektorer..%u Sektorer i rodkataloget.........%lu Antal FAT tabeller...............%u Totalt antal sektorer............%lu Sektorer per FAT................%lu Antal klynger.......................%lu Brugte klynger.....................%lu Ubrugte klynger...................%lu Beskadigede klynger..........%lu %spladsforbrug:..%llu %% Brugt plads....................%s Ubrugt plads..................%s Bitmap størrelse...........%s Etikette..........................%s (udgivet under GNU GPL 2) * Spejlbilledfil der skal oprettes/bruges* Partition der skal gemmes/gendannes-------------------- MBR %.3d ------------------- Enhed:................%s Enhedsbloktal:...%llu Enhedsmodel:....%s ==== Partition Image: Tilvalg anvendt ved oversættelse ==== OmOm Partition Image %sAdgang nægtetHandlingen blev afbrudt af brugerenHandling der skal udføres:Der opstod en fejl under læsningen af /proc/mounts.Montér automatiskOpdel automatisk (nÃ¥r der ikke er mere plads)Tilgængelig plads til spejlbilledet:...%s = %llu bytePÃ¥ grund af en fejl kan du ikke gendanne MBR fra en spejlbilledfil komprimeret med bzip2 med mindre du kører bzip2 -d pÃ¥ denBlok størrelse...................%llu byte Totalt antal blokke............%llu Antal brugte blokke..........%llu Antal ledige blokke..........%llu OmgÃ¥ bzip2-fejlCRC er ændret: Spejlbilledfilen er beskadigetUde af stand til at fastslÃ¥ filsystemtypen for partitionen %sKan ikke lÃ¥se partition %sKan ikke Ã¥bne partition %sKan ikke læse %s fra spejlbilledetKan ikke læse FSinfo-sektorenKan ikke læse MBR Magic: Spejlbilledfilen er beskadigetKan ikke læse superblokKan ikke læse bitmapblok %ld fra harddisk-partition (%s)Kan ikke læse bitmapblok %ld fra spejlbilledetKan ikke læse blok %ld fra harddisk-partitionKan ikke læse blok %ld fra spejlbillede (%d)Kan ikke læse opstartsblokKan ikke læse boot-sektorenKan ikke læse spejlbilledinformationenKan ikke læse hovedindledningen: Spejlbilledfilen er beskadigetKan ikke læse filafslutningen (main tail)Kan ikke læse reserveblokKan ikke læse superblokKan ikke læse MBRKan ikke læse følgende volumefil: %s %sKan ikke skrive %s til spejlbilledetKan ikke skrive superblokKan ikke skrive bitmapblok %ld til spejlbilledetKan ikke skrive blok %ld pÃ¥ harddiskenKan ikke skrive blok %ld til spejlbilledetKan ikke skrive spejlbilledinformationenKan ikke skrive hovedindledningenKan ikke skrive filafslutningen (main tail)Kan ikke skrive MBRAnnullérKan ikke oprette temp-fil [%s]. Der er ikke mere plads pÃ¥ enheden.Kan ikke oprette temp-fil [%s]. Undersøg om der er plads nok, og om du har skriveadgang.Kan ikke oprette temp-fil i [%s]. Brugeren 'partimag' har ikke skriveadgangKan ikke oprette temp-fil i [%s]. Skriveadgang nægtet.Kunne ikke finde $bitmap ved den eksperimentelle søgningKan ikke montere %sKan ikke Ã¥bne fejlfindingsfil. Kan ikke læse "/proc/partitions" (%s). SÃ¥ du mÃ¥ køre Partion Image fra kommandolinjen. Tast "partimage --help" for hjælp.Kan ikke læse spejlbilledfilKan ikke genoprette MBR fra en spejlbilledefil komprimeret med bzip2. Du skal ændre kompressionsniveau.Kan ikke afmontere %sKan ikke bruge $bitmap file recordSkiftKontrollér partition før gemningKlient #KomprimeringsniveauKomprimeringsniveau:................Ingen Komprimeringsniveau:...........bzip2Komprimeringsniveau:...........gzipKomprimeringsniveau:...........lzoKomprimeringsniveau:...........ingenKomprimeringsniveau:...........bzip2Komprimeringsniveau:...........gzipKomprimeringsniveau:...........lzoKomprimeringen skal enten være 0 (ingen), 1(gzip) eller 2(bzip2) BekræftelseForbind til serverenForbindelse nægtet af serveren: netværksindstillingerne er forkerte. Prøv at fjerne login-muligheden for serveren med '-L'Forbindelse nægtet af serveren: forkert versionFortsætFortsæt (F5)Nuværende spejlbilledfil:..........%sNuværende spejlbilledfil:..........%sFEJLHÃ…RNDTERING: genstart din computerData kopieret:.................%s / %sData kopieret:.................%s / %sFinder filsystem:........%sDisk fuld! Kan ikke skrive næste volumefil (%s.%.3ld) til %s Skriv venligst stien til et nyt katalog (uden filnavnet):Disk med den MBR du vil genoprette�sker du virkeligt at standse den nuværende operation?�sker du virkeligt at gendanne %s fra denne spejlbilledfil %s?Krypter data pÃ¥ netværket med SSLSkriv en anden komplet sti (katalog og filnavn)Tilføj beskrivelseIndtast nyt filnavnSkriv dit brugernavnSkriv din adgangskodeFjern frie blokke med værdien nulFejlFejl i hovedsporetFejl i readFilenameAttributeFejl ved lukningDer opstod en fejl under undersøgelse af data: Forkert blokantal. MÃ¥ske er et volume eller nogle data sprunget over.Der opstod en fejl under skrivningen af spejlbilledfilen: disken er fuld!Fejl: %sFejl: Kan optælle de resterende partimagesFejl: Kan ikke lukke computeren nedFejl: Kan ikke genstarte computerenResterende tid:.........%sSpejlbilledfil der skal oprettes.........%sAfslut (F6)Afslut Partimage?Ext2fs-informationExt3fs-informationFAT-informationFilen %s er ikke en almindelig fil. Af sikkerhedsgrunde fortsættes der ikkeFilsystem:......................%sKan ikke fortsætte. Filen er for stor. (Større end 2 GB). Problemet kan stamme fra din kerne, glibc eller det filsystem spejlbilledfilen skrives pÃ¥Filsystem:......................%s Beskrivelse:...................%s Oprindelig enhed:...........%s Oprindelig sti til filen:.....%s Flag:................................%ld: %s Oprettelsesdato:.............%s Partitionsstørrelse:.........%s Værtsnavn (Hostname):.%s Kompatibel version:........%s Krypteringsalgoritme:.....%ld -> %s Antal MBR gemt:............%lu Sikkerhedskopieret system: - maskine:.....................%s - styresystem :.............%s - version:......................%s Afslutningstilstanden skal enten være 0 (vent), 1(luk ned), 2(genstart) eller 3(afslut) Ret dette og forsøg igen. HPFS-informationLuk nedVært (host)Fejl i værtsnavn/IP-adresse MÃ¥ske kunne værtsmavnet ikke findes. (Prøv igen med IP-adressen)Serverens IP/navn:Hvis alt lykkedes:Spejlbillede oprettet pÃ¥:.................%s Spejlbilledfilens størrelse:.............%sSpejlbilledfil der skal oprettes.........%sSpejlbilledfil der skal bruges.................%sInformationer om spejlbilledetSpejlbilledeopdelingstilstandDet er umuligt at finde en lokal tjekstruktur. Dataene er mÃ¥ske beskadigede. Vil du fortsætte?Umuligt at Ã¥bne logfilen %s: %s Kan ikke læse MBR fra diskenKan ikke læse magic: Spejlbilledfilen er beskadigetUmuligt at nulstille denne blok pÃ¥ harddisken: %sIntro-filer hvis størrelse er............Ugyldige HPFS magic numbers. Dette er ikke en gyldig HPFS-partition.Ugyldige automount-tilvalg. Læs detaljer i manualenForkert komprimeringsniveau for %sUgyldigt filsystem %sForkert volumenummer (%ld i stedet for %ld).JFS-informationKendt fejlSidsteStedHovedvinduet (F7)MBNTFS $Bitmap er for lilleNTFS-informationNTFS: "Attribut Liste" attribut er endnu ikke understøttetNTFS: Komprimeringsflag for DATA-attribut er ikke null: %ldNTFS: Resident data attribut er ikke understøttetNTFS: processRunList() returnerede -1Nyt volumeNy volumeplaceringNewt fejlfindings-informationNæste (F5)NejDer blev ikke fundet nogen MBR i dette spejlbillede. Kan ikke fortsætteIngen beskrivelseIntet flag satIngen (meget hurtig + meget stor fil)Det er ikke en %s partition. Tjek filsystemtypenO.k.Der er kun understøttelse af %s volumener med 4096 byte per blok. Denne har %lu byte/blokHandlingIndstillingerHvilken original MBR skal brugesLøb tør for hukommelseLøb tør for hukommelse.Løb tør for hukommelse: skal bruge %lu byte for at læse file record i readBitmap()Løb tør for hukommelse: skal bruge %lu byte for at læse file record i readVolumeLabel()OverskrivOverskriv spejlbilledet?Overskriv uden at spørgePartimage vil ikke undersøge partionen fordi %s ikke eksisterer,Partimage vil ikke undersøge partionen. Eksekveringsrettigheder mangler pÃ¥ %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- udgivet under GPL 2 licensen (GNU General Public License) ---- Understøttede filsystemer:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs brug: partimage [tilvalg] partimage fx: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz fx: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg fx: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 fx: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz fx: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 fx: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Parametre: * : - save: Gem partitionens data i en spejlbilledfil - restore: genopret partitionen fra en spejlbilledfil - restmbr: genopret MBR fra en spejlbilledfil til harddisken - imginfo: vil oplysninger om en spejlbilledfil * : partition der skal gemmes/genoprettes (eksempel: /dev/hda1) * : fil hvor dataene læses/gemmes. Kan være meget stor tilvalg: * -z, --compress (spejlbilledfilens komprimeringsniveau): -z0, --compress=0 komprimér ikke: meget hurtig, giver meget stor spejlbilledfil -z1, --compress=1 komprimér med gzip: hurtig, giver lille spejlbilledfil (standard) -z2, --compress=2 (komprimér med bzip2: meget langsom, giver meget lille spejlbilledfil): * -c, --nocheck undersøg ikke partitionen før den gemmes * -o, --overwrite overskriv den eksisterende spejlbilledfil uden at spørge * -d, --nodesc bed ikke om nogen oplysninger til spejlbilledfilen * -V, --volume (opdel spejlbilledfilen i flere volumefiler) -VX, --volume=X lav volumefiler af størrelsen X kb * -w, --waitvol vent pÃ¥ bekræftelse ved hvert skift af volume * -e, --erase fjern tomme blokke ved genoprettelse med zero byte * -m, --allowmnt fortsæt uanset om partitionen er monteret. Farligt! * -M, --nombr lav ingen sikkerhedskopi af MBR (Mast Boot Record) i spejlbilledfilen * -h, --help vis hjælp * -v, --version vis version * -f, --finish (handling der udføres hvis alt gÃ¥r godt): -f0, --finish=0 vent: lad være med at gøre noget som helst -f1, --finish=1 luk og sluk maskinen -f2, --finish=2 genstart maskinen: -f3, --finish=3 afslut. * -b, --batch automatisk tilstand: den grafiske grænseflade venter ikke pÃ¥ indtastninger * -y, --nosync lad være med at synkronisere diskene efter at programmet er færdigt (farligt) * -sX, --server=X angiv partimaged-serverens IP-adresse * -pX, --port=X angiv den port partimaged-serveren lytter pÃ¥ * -g, --debug=X sæt fejlfindings-niveauet til X (standard: 1): * -n, --nossl slÃ¥ SSL fra i netværkstilstand * -S, --simulate simulation af gendannelse * -aX, --automnt=X automatisk montering med X som tilvalg. Læs dokumentationen for flere detaljer * -UX --username=X Brugernavn for adgang til serveren * -PX --Password=X Adgangskode til serveren Partition Image-dæmon (http://www.partimage.org/) version %s ---- udgivet under GPL 2 licens (GNU General Public License) ---- brug: partimaged [tilvalg] tilvalg: * -h, --help vis hjælp * -v, --version vis version * -d, --dest destinationsmappen * -pX, --port=X den port serveren lytter pÃ¥ (standard er %d) * -D, --daemon start som dæmon, ikke i forgrunden * -r dir, --chroot dir benyt chroot for at øge sikkerheden * -g, --debug=X sæt fejlsøgningsniveauet til X (standard: 1) * -L, --nologin slÃ¥ log-pÃ¥ fra klienter fra Partition Image-dæmon version %s Partition Image-dæmon version %s+SSL Partition Image distribueres under GNU GPL 2 (General Public License) version:...%s hjemmeside:.......http://www.partimage.org/ Forfattere: Francois Dupoux Franck Ladurelle Partition Image version %s (udgivet under GNU GPL2). Undersøgelsen af partitionen('erne) fandt fejl pÃ¥ partitionen('erne)partitionsbeskrivelsePartition som skal gendannes:.............%sPartition der skal gemmes:...........%sPartitionen var pÃ¥ enheden:..........%s Adgangskode krævesTryk "o.k." for at montere [%s] pÃ¥ [%s]Port: AfslutGenstartReiserFS-informationGendan en MBR fra spejlbilledfilenGendan MBR (Master boot record) pÃ¥ harddiskenGendan partition fra en spejlbilledfilPrøv igenSSL-understøttelse blev i sin tid slÃ¥et fra ved oversættelsenSSL-&understøttelse slÃ¥et fra ved kompileringenGem partitionen i en ny spejlbilledfilGemmer partitionen i spejlbilledfil...Forkert segmentation. Send en beskrivelse og filen [%s] til programmets forfattere SimuleringSimuleringstilstandSimulering af gendannelsen (der skrives ingenting)StørrelseStørrelse af den partition der skal gendannes:.....%s = %llu bytePartitionens størrelse:.......%s = %llu byteHastighed:.......................%s/minHastighed:.......................%s/minStørrelsen pÃ¥ opsplittede volumener skal være et heltal større end 1024 (størrelse >= 1024 kb)TilstandSuccesTekstfeltet mÃ¥ ikke være tomt"Spejlbilled"-feltet er tomt. Kan ikke fortsætte"Server IP-adresse/Navn"-feltet er tomt. Kan ikke fortsætte"Server Port"-feltet er ikke et gyldigt heltal. Kan ikke fortsætte"filnavn"-attributten skal være til stede!Spejlbilledfilen %s eksisterer allerede. Skal den overskrives?partitionen %s er monteret. Partition Image kan ikke arbejde pÃ¥ monterede partitioner. Afmontér partitionen først. Du kan gøre det med kommandoen "umount %s"MBR er en meget vigtig del af harddisken. Hvis du skriver en defekt MBR, vil du miste alle partitioner pÃ¥ harddisken. Fortsæt IKKE, med mindre du ved hvad du laver. Tryk pÃ¥ 'Fortsæt' for at gendanne. Enhed med den MBR der skal gendannes:...%s [%llu] Oprindelig MBR:.............................................%s [%llu]Det er lykkedes at gendanne MBR pÃ¥ [%s]. Du skal sikkert genstarte computeren,hvis du vil have styresystemet til at bruge den nye MBR.Det lykkedes at gendanne MBRUnderstøttelse af %s er kun eksperimentel!Den nuværende understøttelse af %s er kun eksperimentel!Fejlfindings niveauet skal enten være 0(intet), 1(bruger), 2(udvikler) eller 3(fejlsøgning) Følgende spejlbilledfil eksisterer allerede. Vil du overskrive den eller ændre filnavn? Fil: %s Hvis du vil ændre filnavnet skrives den fulde sti (sti + filnavn) uden volumenummer til sidst, og tryk "�dr"Følgende spejlbilledfil er lÃ¥st. �sker du at vente og prøve igen eller ændre filnavnet? Fil: %s Hvis du vil ændre filnavnet skrives den fulde sti (sti + filnavn) uden volumenummer til sidst, og tryk "�dr"Spejlbilledfilen "%s" kan ikke findesDette spejlbillede er lavet med en nyere version af Partition Image (%s). Opdatér programmet og prøv igen.Beklager, dette spejlbillede er lavet med en ældre version af Partition Image (%s).Du skal bruge den gamle version til at gendanne spejlbilledet, eller du mÃ¥ lave et nyt spejlbillede med denne version.Dette spejlbilled er gemt krypteret. Denne version af Partition Image understøtter ikke kryptering. Hent venligst en nyere version.Den oprindelige harddisk er ikke den samme som denne. Den MBR du er i gang med at genoprette er gemt fra en anden harddisk. Det betyder at den oprindelige og den nuværende harddisk ikke er lige store, eller de er ikke tilsluttet samme enhed (%s og %s). Vil du fortsætte?Partitionen %s er allerede lÃ¥st af en anden proces. Kan ikke arbejde med denPartitionen %s er allerede lÃ¥st af en anden proces. Kan ikke arbejde med denDenne partition er for lille til at blive gendannet: Den oprindelige partitions størrelse:...%llu byte Slutpartitionens størrelse:...................%llu byteDenne partition er gemt med en nyere version af Partion Image. Hent venligst en nyere version.Det andet argument [%s] skal være en gyldig enhed fx /dev/hda1Det tredie argument [%s] skal være en almindelig fil (ikke et katalog, en symbolsk henvisning eller andet)Volumet er ændret. Gammelt: %s Nyt:.......... %s/%s.%.3ld Tryk Retur for at fortsætteHele MBRDer var en CRC fejl i CCheck. Dataene er mÃ¥ske beskadigede. Vil du fortsætte?Der var en positionsfejl i CCheck. Dataene er mÃ¥ske beskadigede. Vil du fortsætte?Der opstod en fejl under læsning af bitmappenDer opstod en fejl under gendannelsen: CRC64 er forskellige, spejlbilledfilen er beskadiget: Oprindelig CRC64:........%llu Nuværende CRC64:......%lluDette volume (%ld) er ikke det forventede: %ldBrugt tid:................%sBrugt tid:................%sDer er i øjeblikket for mange klienter tilsluttet partimaged. Prøv igen senereUde af stand til at læse $Bitmap MFT record. �sker du at foretage en eksperimentel søgning efter den? (det kan tage lang tid)Ukendt fejl %d -> %sVolume ikke fundetvolumenummer:...........%lu Volumestørrelse:..........%s Komprimeringsniveau:.%ld -> %s Identifikation:.................%llu=%llX Volumets størrelse: %llu bytes (%ld MiB) VentVent efter hvert volumeskiftVenter pÃ¥ klienten...Venter...AdvarselAdvarsel: Vi kunne ikke ændre euid fordi vi ikke var startet som root forvent at fÃ¥ nægtet adgang og problemer som disse. Hvad skal gendannes:Forkert volume indsatXFS-informationJaDu er ikke logget ind som root. Du fÃ¥r muligvis "adgang nægtet"-fejl hvis du fortsætterDu er i simuleringstilstand: Der vil ikke blive skrevet noget pÃ¥ diskenDu kan tilføje en beskrivelse af den gemte partitionDu har ikke skriveadgang til %sDu har slÃ¥et devfs til men ikke monteret det. Det skal gøres før du fortsætter. Du kan ogsÃ¥ starte op pÃ¥ en kerne ude devfs, hvis du har en.Du har ikke adgang til /proc/mounts.Du vil blive bedt om af fjerne mediet og indsætte det rigtigetilføj og prøv igen undersøger filsystemet med fscklukker...gemmer buffer-cache pÃ¥ disken.kopierer data blokke i brugfejl!den eksperimentelle søgning lykkedesfalsk%s er ikke et partimage-volume: magic string passer ikkefilen %s er for kort til at være et partimage-volume: kan ikke læse filindledningenfærdighent pladsoplysninger...Spejlbilledfilen %s er allerede Ã¥benspejlbilledfilen er lÃ¥stkan ikke finde bruger "%s" forkert adgangskode eller brugeren er ikke filen partimagedusersopstarter handlingengør klar til at udføre handlingen handlingen. Vent venligstinode manglerlokal CRC-fejllokal tjekfejlm_cSectorsPerCluster mÃ¥ ikke være null. Undersøg om partitionen du vil gemme nu ogsÃ¥ er en FAT-partition.magic string er ikke identisk: fejl i spejlbilledfilen [%s]nejingenÃ¥bner for læsning...Ã¥bner til skrivning...læser...læser partitionsoplysningerlæser partitionsegenskabergendan partition fra spejlbilledfilgenskabergem partition som spejlbilledefilgemmerserverporten skal ligge mellem 1 og 65535 simulér gendannelse af partition fra spejlbilledfilstabledet nuværende volume passer ikke til spejlbilledet: forkert identifikationfor mange klienter tilsluttetsandadgang til %s nægtet Vælg et andet katalog (sti uden filnavn):ukendtustabilvolume-nummeret er ændret: Spejlbilledfilen er beskadigetventerskriver filhovedskriver...forkert stijapartimage-0.6.8/po/fr.gmo0000644000000000000000000013277511256750661013755 0ustar rootrootÞ•UÄ Él‘“¦¹Ùì2Nb/u"¥Èßþ-?Pg} “Xž#÷—³MÍ' 'C Pk g¼ ‰$!#®!ËÒ!tž"¬$"À$ã$þ$ƒ%4ž%Ó%Ù% ò% &!&.4&c&$s&,˜&’Å&(X''™'±'Ê'+ã'(9%(&_(-†($´(Ù(ï()-)L)a)x))+¢)Î)æ)%ý)"#*F*e*~*–*¬*À*6Ç*]þ*K\+8¨+0á+,",‚;,¾,Õ,ç,- -+-4-'F-'n-&–-%½-!ã-".!(. J.5k. ¡.®.mÀ.../]/ f/t/$”/$¹/)Þ/0q(0š04·09ì0$&1*K1v1ˆ1›1¬1"À1ã1é12]2+u2 ¡2«2!Ë2í2$ 3 23<3M3a3u3F†3$Í3–ò3‘‰4<6X6m66„6[‰6å6ü6%7<7\7$|7¡7´7"Å7 è7- 8%787]8;•8 Ñ8 ò8+9?9P9Y9j9ƒ96•97Ì9+:"0: S:^:r: ‰:“:5–:Ì: Û: ç:-;6;R9; Œ;–;ž; ²;À;AÏ;F< X<b<s<;Œ<GÈ< = ="I&BIÜiI=FJ-„J²J$ÈJíJ% K3K(EKnKtKyK€K!–K¸K$ØKýKL" L$CL%hLLŽL ÛLæL2öL)M1.M,`M1M#¿M(ãMI NVN\NdN+yN4¥N?ÚN+O<FOˆƒO+ P‰8Q!ÂQ äQ(RG.RàvRáWS#9Tm]T©ËTuUVJWGfW®W\.X?‹XVËXM"Y pYO~YTÎY+#ZOZ/àZ[$0[=U[t“[\\x0\©\®\Ì\ ã\ð\wø\p]]’]M–]9ä]3^!R^#t^˜^"ª^ Í^Ù^ù^__6_=<_@z_»_ Ä_Ñ_î_ÿ_`*8` c`q`M`9Ï` a aa&a P}(}0¸}é} ~!~4~'N~v~!}~Ÿ~yµ~6/ f*q.œË!è €€+€?€S€kk€+×€—›O¤ƒ"ôƒ„(„1„\7„”„§„#„!æ„!…,*…W…p…-…,¾…7ë…!#†EE†J‹†&Ö†-ý†/+‡[‡ l‡y‡‡¬‡5¾‡:ô‡2/ˆ%bˆˆˆ—ˆ°ˆ ͈ÚˆAÞˆ ‰3‰(N‰Dw‰¼‰]¿‰ Š(Š0ŠIŠ^ŠFsŠPºŠ ‹‹$‹=>‹R|‹ Ï‹" Ú‹"ý—& ˜ãG˜?+™&k™’™&®™&Õ™,ü™)š*=šhšnš vš‚š&™š"Àš,ãš ›!›(>›g›0‡›Y¸› œœ+-œYœ9`œ.šœ4Éœ%þœ*$[O«°¸2Ô>žNFž+•ž;Áž›ýžh™Ÿ•¡˜¡&µ¡#Ü¡W¢X¢Z£*o¤|𤻥£Ó¥2w¦bª§_ ¨£m¨€©J’©dÝ©^Bª¡ªj°ª|«1˜«£Ê«,n¬ ›¬%¼¬Câ¬z&­¡­º­…Í­S®*\®‡®Ÿ® ®®‘¸® J¯X¯i¯[m¯Fɯ3°.D°'s°›°,¶° ã°&ñ°%±>±G±g±Ol±U¼±²²%+²Q²)j²”²1¬² Þ²ë²^ÿ²A^³ ³¤³©³ij á³(í³(´$?´ d´(q´ š´8¥´Þ´Nå´4µNµTSµ¨µ°µ ¹µĵ Úµèµùµ/AÌB‹O@Ç¿½8;Jk²%Cèph$$5yf0ó>>îÄÒØò—.›ºÅŽÝt«7T2%£¾PSY43”b¦êÍ ´GOÈùKöL/ÛB•LR¨s¯?r¼ð‡âïDûáM,­~¬&µãQ"|D0 nJ#תÐ6à¤i IƒŒQÖ"#'X)¢–¶FR˜V EFCa+¸æz,®À‰} ]lõÎ üm<U-H(=g*'ë-{= xøNdHw©ß!Þ“ZËúcåU5ÙÿÂ;.‚™eŠ·…Ü¥Úš<þôŸ&žP^Ôϱ8(7+4v9Ój€)G:\†NÕ÷S!Á `çˆÑA1» ³W3T[9äíE:° ý ?_ñKÉM§Iœ¡u’éo„ ìqÊÆ*1‘6¹Ã2@ * Debug options: * Other options: * Supported file systems: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to open logfile %s: %s Impossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image is distributed under the GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Authors: Francois Dupoux Franck Ladurelle Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluThis volume (%ld) is not the expected one: %ld.Time elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou haven't access to /proc/mounts.add it and retry checking the file system with fsckclosing ...commiting buffer cache to disk.copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: fr Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2003-10-17 23:20+0000 Last-Translator: HOIZEY François-Olivier Language-Team: Français MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.1 * Options de debug: * Autres options: * Systemes de fichiers supportés: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DESACTIVE - DEVEL ACTIVE - Support Ext2fs: basé sur la librairie libext2fs - Support Ext2fs: code interne - PARTIMAGED_LOG=%s - PARTIMAGED_USERS non utilisé - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN recherche de l'enregistrement $bitmap%lld octets%s terminé avec succés: Temps écoulé:.........%s Vitesse:................%s/min Données copiées:....%s%s erreur dans le système de fichier.L'inode %s n'existe pas. Partimage peut le créer pour vous. Vous pouvez utiliser la commande mknod. Voulez vous que cet inode soit crée pour vous maintenant ?%s n'est pas un périphérique.%s n'est pas un fichier PartImage valide est endommagé. Il est impossible de continuer%s n'est pas un fichier image valide%s n'est pas une structure de fichier NTFS%s n'est pas le premier volume de l'image. Merci de réessayer avec le volume numéro 000%sNombre de groupe d'allocation:.......%lu Blocs par groupes d'allocations:..........%lu Taille du groupe d'allocation:...............%s %sBytes par secteur..............%u Secteurs par cluster..............%u Taille d'enregistement ...........%lu Attribut LCN de MFT..........%llu %sversion HPFS:.................%d %sNombre de groupe...............%lu Premier bloc..............................%lu Journalisation Ext3fs................%s Super bloc Sparse......................%s Support des fichiers larges.........%s Revision du systeme de fichier.....%lu %sTaille d'un secteur...................%u Clusters par secteurs.................%u Nombre de secteurs reservés......%u Secteurs repertoire racine.........%lu Nombre de tables FAT..............%u Nombre total de secteurs..........%lu Secteurs pas FAT.....................%lu Nombres de clusters...............%lu Clusters utilisés......................%lu Clusters libres........................%lu Clusters endommagés.............%lu %sUtilisation de l'espace disque......%llu %% Espace utilisé..................................%s Espace libre....................................%s Taille Bitmap...................................%s Label..............................................%s (soumis à la licence GNU GPL 2) * Fichier image à créer/utiliser* Partition à sauvergarder/restaurer-------------------- MBR %.3d ------------------- Périphérique:................%s Nombre de bloc:...........%llu Modèle du périphérique:.%s ==== Partition Image: Options de compilation utilisées ==== A proposA propos de Partition Image %sAccès non autoriséArrêt demandé par l'utilisateurTâche à réaliser:Une erreur est survenue à la lecture de /proc/mounts.Montage automatiqueSegmentation automatique (si disque plein)Espace libre pour l'image:...%s = %llu octectsTaille du bloc....................%llu octets Nombre total de blocs............%llu Nombre de blocs utilisés...........%llu Nombre de blocs libres...........%llu Impossible de détecter le systeme de fichier de %sImpossible de vérouiller la partition %sImpossible d'ouvrir la partition %sImpossible de lire %s depuis l'imageImpossible de lire le secteur d'information de structure de fichiers.Impossible de lire MBR Magic : fichier image endommagéImpossible de lire le SuperBlockImpossible de lire le bloc bitmap %ld à partir de la partition (%s)Impossiblde de lire le bloc bitmap %ld depuis l'imageImpossible de lire le bloc %ld à partir de la partitionImpossiblde de lire le bloc %ld à partir de l'image (%d)impossible de lire le bloc de bootImpossible de lire le secteur de bootImpossible de lire les informationsImpossible de lire l'entête principale: fichier image endommagéImpossible de lire la file d'attenteImpossible de lire le bloc de secoursImpossible de lire le super blocImpossible de lire le MBRImpossible de lire le fichier de volume suivant: %s %sImpossible d'ecrire %s dans l'imageImpossible d'ecrire le SuperBlockImpossible d'ecrire le bloc bitmap %ld dans l'imageImpossible d'écrire le bloc %ld sur le disque durImpossible d'ecrire le bloc %ld dans l'imageImpossible d'écrire les informationsImpossible d'écrire l'entête principaleImpossible d'écrire la liste d'attenteImpossible d'écrire le MBRAbandonnerImpossible de créer le fichier temporaire [%s]. Disque saturé.Impossible de créer le fichier temporaire [%s]. Merci de vérifier qu'il y ait assez d'espace et que vous avez les droits d'accés.Impossible de créer le fichier temporaire [%s]. Droits d'écriture non accordésImpossible de créer le fichier temporaire [%s]. Droits d'écriture non accordés.Impossible de trouver $bitmap avec la recherche experimentaleImpossible de monter %sImpossible d'ouvrir le fichier de debugage. Impossible de lire "/proc/partitions" (%s). Vous devez utiliser la ligne de commande pour lancer Partition Image. Tapez "partimage --help" pour avoir l'aide.Impossible de lire le fichier imageImpossible de démonter %sImpossible d'utiliser l'enregistrement $bimap du fichierChangerVérifier la partition avant sauvegardeClient #Niveau de compressionNiveau de compression:................Aucun Niveau de compression:................bzip2Niveau de compression:................gzipNiveau de compression:................lzoNiveau de compression:...........AucunNiveau de compression:...........bzip2Niveau de compression:...........gzipNiveau de compression:...........lzoLe mode de compression doit être 0 (aucun), 1(gzip) ou 2(bzip2) ConfirmationConnexion au serveurConnexion refusée par le serveur:options réseau incompatibles. Essayez de désactiver l'option de login sur le serveur avec '-L'Connexion refusée par le serveur: versions incompatiblesContinuerContinuer (F5)Fichier image en cours:..........%sFichier image en cours:...............%sDonnées copiées:................%s / %sDonnées copiées:......................%s / %sSysteme de fichier detecté:........%sDisque plein! Impossible d'écrire le volume suivant (%s.%.3ld) sur %s Merci d'entrer un autre chemin (sans le nom de fichier):Disque avec le MBR à restaurerVoulez vous arrêter l'operation en cours ?Voulez vous réellement restaurer %s à partir de l'image %s ?Crypter les données du réseau avec SSLEntrez un autre chemin complet (répertoire+nom)Entrez une descriptionEntrez un nouveau nom de fichierEntrez votre loginEntrez votre mot de passeEffacer les blocks libres avec des zeroErreurErreur dans readFilenameAttributeErreur a la fermetureErreur pendant la vérification des données: Numéro de bloc invalide. Un volume ou des informations ont été ignorés.Erreur lors de l'écriture de l'image : disque plein !Erreur: %sErreur: Impossible d'arréter l'ordinateurErreur: Impossible de redémarrer l'ordinateurTemps restant estimé:....%sTemps restant estimé:.........%sQuitter (F6)Quitter Partimage ?Informations Ext2fsInformations Ext3fsInformations sur la FATLe fichier %s n'est pas un fichier régulier. Pour des raisons de sécurité il est impossible de continuerSysteme de fichier:......................%sFichier trop grand (plus de 2 GB). Impossible de continuer. Ce probléme peut venir du noyau, de glibc ou du systeme de fichier où l'image est écriteSystème de fichier:............%s Description:......................%s Périphérique d'origine:.......%s Chemin d'origine:..............%s Options:.......................%ld: %s Date de création:...............%sTaille de partition:........%s Nom d'hôte:.......................%s Version compatible:............%s Algorithme d'encription:.....%ld -> %s Compteur de MBR sauvé:...%lu Système de sauvegarde: - Machine:.......................%s - Systeme d'exploitation:....%s - Version:.........................%s Le mode de fin doit être 0 (attendre), 1(arrêter), 2(rebooter) ou 3(quitter) Corrigez l'erreur et recommencez information HPFSArrêterHôteErreur de nom de domaine/IP ! Le nom de domaine ne peut être joint (réessayez avec une IP)IP/nom du serveur:Si effectué avec succès:Image crée le:.................%s Taille de l'image:.............%sFichier image a créer.........%sFichier image à utiliser.................%sInformations sur l'imageMode de segmentation des imagesImpossible d'ouvrir le fichier de log %s: %s Imposible de lire le MBR à partir du disqueImpossible de mettre à zéro le bloc sur le disque: %sDans des fichiers de:............Nombre magique HPFS invalide. Ce n'est pas une partition HPFS valide.Options d'automount invalide. Reportez vous au manuel pour plus de detailsNiveau de compression invalide pour %sSystème de fichier invalide ou endommagé %sNumero de volume invalide (%ld au lieu de %ld).Informations JFSLocalisationMenu principal (F7)$Bitmap de NTFS est trop petitInformations NTFSNTFS: "Attribute List" l'attribut n'est pas supportéNTFS: L'option de compression pour DATA n'est pas nul: %ldNTFS: Attribut de données residente non supportéNTFS: rocessRunList() a retourné -1Nouveau volumeNouveau chemin de VolumeInformation de debugage NewtSuivant (F5)NonPas de MBR trouvé dans le fichier image. Impossible de continuerPas de descriptionPas d'option selectionnéeAucun (tres rapide + fichier très gros)N'est pas une partition %s . Vérifiez le type du systeme de fichierOkSeuls les %s de 4096 octets par bloc volumes sont supportés. L'actuel est de %lu octets/blocOpérationOptionsMBR original à utiliserPas assez de memoirePas assez de memoirePas assez de memoire: nécessite %lu octets pour lire l'enregistrementPas assez de memoire: necessite %lu octets pour lire l'enregistrement du fichierEcraserEcraser l'image?Ecraser sans confirmationPartimage ne vérifiera pas la partition car %s n'existe pas.Partimage ne vérifiera pas la partition en raison d'un problème d'accès sur %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- Soumis à la licence GPL 2 license (GNU General Public License) ---- Systèmes de fichiers supportés:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs Syntaxe: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: Sauvergarde un partition dans un fichier image - restore: Restaure une partition à partir d'un fichier image - restmbr: Restaure un MBR à partir d'un fichier image - imginfo: Affiche les informatiosn d'un fichier image * : Partition à sauver/restaurer (exemple: /dev/hda1) * : Fichier contenant les données. Peut être énorme Options: * -z, --compress (Niveau de compression du fichier image): -z0, --compress=0 (Aucune compression. Le fichier image peut être énorme) -z1, --compress=1 (Compression avec gzip. Fichier plus petit un peu plus lent) (defaut) -z2, --compress=2 (Compression avec bzip2.Fichier très compact mais compression très lente) * -c, --nocheck Ne pas verifier la partition avant la sauvegarde * -o, --overwrite Ecraser sans confirmation * -d, --nodesc Ne pas demander de description pour le fichier image * -V, --volume (Segmenter en plusieurs fichiers) -VX, --volume=X Créer des volumes avec une taille de X Ko * -w, --waitvol Attendre une confirmation après chaque volumes * -e, --erase Effacer les blocs vides avec des zeros * -m, --allowmnt Continuer meme si la partition est déjà montée. Dangereux ! * -M, --nombr Ne pas créer de sauvegarde du MBR dans le fichier image * -h, --help Affiche l'aide * -v, --version Affiche la version * -i, --compilinfo Affcihe les options de compilations uilisées * -f, --finish (Action à réaliser si tout c'est bien déroulé): -f0, --finish=0 Attendre: ne rien faire d'autre -f1, --finish=1 Eteindre: Eteindre l'ordinateur -f2, --finish=2 reboot : Redémarrer l'ordinateur: -f3, --finish=3 quitter * -b, --batch Mode batch: L'interface utilisateur n'attend rien de l'utilisateur * -y, --nosync Ne pas synchroniser les disques à la fin des operations (dangereux !) * -sX, --server=X Donne l'ip du serveur partimaged * -pX, --port=X Donne le port d'écoute de partimaged * -g, --debug=X Option du niveau de debug X (defaut: 1): * -n, --nossl Desactiver le mode SSL pour le reseau. * -S, --simulate Mode simulation de la restauration * -aX, --automnt=X Montage automatique avec l'option X. Consultez la doc pour plus d'informations Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image est distribué selon la license GNU GPL 2 (General Public License) version:...%s web:.......http://www.partimage.org/ Auteurs: Francois Dupoux Franck Ladurelle Version de Partition Image %s (soumis à la licence GNU GPL2). Erreur(s) trouvées dans une partitionDescription de la partitionPartition à restaurer:.............%sPartition à sauvegarder:...........%sPartition sur le péripherique:..........%s Mot de passe requisAppuyez sur "ok" pour monter [%s] sur [%s]Port:QuitterRedémarrerInformations Reiser FSRestaurer un MBR à partir d'une imageRestaurer le MBR sur le disque durRestaurer la partition à partir d'une imageRecommencerSSL désactivé à la compilationSSL&login désactivé à la compilation.Faire une image de la partitionSauvegarde la partition dans le fichier image...Erreur de segmentation. Merci de reporter ce bug et envoyez le fichier [%s] aux auteurs. SimulationMode simulationSimuler une restauration (rien n'est ecrit)TailleTaille de la partition à restaurer:.....%s = %llu octetsTaille de la partition:.......%s = %llu octetsTaille de la partition originale:...%s = %llu octetsVitesse:.......................%s/minVitesse:............................%s/minLa taille des segments de volumes doit être un entier superieur à 1024 (taille >= 1024Ko)EtatRéussiLe texte ne peut être videLe champ "Image" est vide. Impossible de continuerLe champ "IP/Nom du serveur" est vide. Impossible de continuerLe champ "Port du serveur" n'est pas un entier valide. Impossible de continuerL'attribut "filename" doit etre résident !Le fichier image %s existe déjà. Voulez vous l'écraser ?La partition %s est montée. PartImage ne peut pas travailler sur une partition montée. Démontez la avant s'il vous plait. Pour cela utilisez "umount %s"Le MBR est d'une importance capitale sur votre disque dur. En ecrivant un mauvais MBR vous risquez de perdre TOUTES les partitions de votre disque. Ne continuez QUE si vous êtes pas SUR de ce que vous faites. Pressez 'Continuer' pour restaurer. Périphérique avec le MBR a restaurer:........%s [%llu] MBR original....................................%s [%llu]Le MBR de [%s] a bien été restauré. Vous aurez sans doute besoin de redemarrer votre ordinateur si vous voulez que le systeme le prenne en compte.Restauration du MBR réussieLe support de %s est en version Beta !Le support de %s est experimental !Le niveau de debug doit être 0(aucun), 1(utilisateur), 2(developpeur) ou 3(debugging) Le fichier image suivant existe déjà. Souhaitez vous l'écraser ou en changer le nom ? Fichier: %s Pour changer le nom du fichier, merci d'entrer le chemin complet (localisation+nom de fichier) sans le numero de volume a la fin; et appuyez sur "Changer" Le fichier image suivant est verouillé. Souhaitez vous attendre et réessayer ou changer le nom du fichier? Fichier: %s Pour changer le nom du fichier, merci d'entrer le chemin complet (localisation+nom du fichier) sans le numero de volume a la fin, et appuyez sur "Changer"Le fichier image "%s" n'a pu être trouvéLe fichier image a été crée avec une version plus recente (%s) de Partimage. Merci de le mettre à jour et de réessayer.Le fichier image a été crée avec une version plus ancienne (%s) de PartImage. Vous devez utiliser l'ancienne version pour restaurer votre image ou la recréer avec la version actuelle.Le fichier image que vous essayez de réstaurer est crypté. La version en cours ne gere pas l'encryptage. Merci de télécharger la derniere version de Partimage.Le disque dur original ne correspond pas au disque courant. Le MBR que vous essayez de restaurer a été sauvegardé a partir d'un autre disque dur. Il est possible que le disque original et actuel n'aient pas la même taille ou ne soient pas sur le même périphérique (%s et %s). Continuer quand même ?La partition %s est déjà verouillé par un autre processus. Vous ne pouvez pas travailler dessusLa partition %s est déjà verouillée par un autre processus. Impossible de travailler dessus.La partition est trop petite pour etre restaurée: Taille de la partition originale:..........%llu octets Taille de la partition cible:.................%llu octetsLa partition a été sauvegardée avec une version plus recente de Partition Image. Merci de télécharger la dernière version.Le second argument [%s] doit etre un périphérique valide (ex: /dev/hda1)Le troisieme arguments {%s] doit etre un fichier valide (pas un repertoireni un lien symbolique,...)Le volume a bien été changé. Ancien: %s Nouveau: %s/%s.%.3ld Pressez Entrée pour continuerLe MBR completIl y a une erreur de CRC dans le CCheck. Des données sont peux-être endomagées. Voulez vous continuer ?Il y a une erreur de position dans la verification CCheck. Des données sont peut-être endomagées. Voulez vous continuer ?Il y a eu une erreur pendant la lecture du bitmapUne erreur s'est produite lors de la restauration: Les CRC64 sont différents. Le fichier image est endommagé: CRC64 original:.....%llu CRC64 actuel:........%llu Ce volume (%ld) n'est pas le: %ld escompté.Temps ecoulé:................%sTemps ecoulé:.....................%sTrop de clients connectés à Partimaged. Merci d'essayez plus tardImpossible de lire l'enregistrement $Bitmap MFT. Voulez vous effectuer une recherche experimentale (peut-être très long)Erreur inconnue %d -> %sVolume non trouvéNumero du volume:.......%lu Taille du volume:.........%s Niveau de compression:...%ld -> %s Identifiant:..................%llu=%llX AttendreAttendre apres chaque changement de volumeAttente d'un client ...En attente ...AttentionAttention: impossiblde changer euid car vous n'avez pas executé en tant que root Attendez vous à des accés interdits ou problemes similaires. A restaurer :Informations XFSOuiVous n'êtes pas loggé en root. Vous aurez l'erreur "access denied" au cours du processus.Vous utilisez le mode simulation : aucune écriture ne sera effectuéeEntrez une description de la partition sauvegardéeVous n'avez pas la permission d'écrire sur %sVous n'avez pas accès à /proc/mounts.ajoutez le et recommencez verification du systeme de fichier avec fsckfermeture ...délègue la mémoire tampon au disquecopie des blocs de données utiliséserreur !recherche experimentale reussiefauxLe fichier %s n'est pas un fichier partimage: la magic string ne correspond pasLe fichier %s trop court pour être un volume Partimage: impossible de lire l'entêtefinimesure l'espace ...Le fichier image %s est déjà ouvertFichier image verouilléimpossible de trouver l'utilisateur "%s" Initialise l'opérationInitialise les opérations. Veuillez patienter...inode absentErreur de CRC localLe nombre de secteurs par clusters ne doit pas etre nul. Verifiez la partition à sauvegarder.Magic string ne correspond pas: erreur dans le fichier image [%s]nonrienouverture pour lecture ...ouverture pour écriture ...lecture ...lecture des informations de la partitionlecture des propriétés de la partitionRestaurer une partition depuis imagerestaurationSauvegarder la partition (fichier image)sauvegardele port du serveur doit être compris entre 1 et 655535 stablele volume courant ne correspond pas à l'mage courante: mauvais identificateurTrop de client connectésvraiImpossible d'accéder a %s Merci d'entrez un autre chemin (sans le nom de fichier):inconnuinstableen attenteecriture de l'entêteécriture ...Chemin incorrectouipartimage-0.6.8/po/es.po0000644000000000000000000021037511252653200013565 0ustar rootroot# translation of es.po to español # Copyright (C) 2004 Free Software Foundation, Inc. # Luis Llorente , 2004. msgid "" msgstr "" "Project-Id-Version: es\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2004-07-28 20:49+0200\n" "Last-Translator: Luis Llorente \n" "Language-Team: español\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "First-Translator: jon bengoetxea \n" "X-Generator: KBabel 1.3.1\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Restaurar un MBR al disco duro" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disco con el MBR a restaurar" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "MBR original de uso" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Qué restaurar:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "El MBR entero" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "No se puede leer \"/proc/partitions\"(%s). Debe usar la linea de comandos " "para ejecutar Partition Image. Escriba \"partimage --help\" para la ayuda." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Continuar (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Salir (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Ventana Principal (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "guardar una partición a un fichero imagen" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Nivel de compresión" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Ninguno (muy rápido + fichero muy grande)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Opciones" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Verificar la particion antes de guardar" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Introducir descripción" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Sobreescribir sin preguntar" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Modo de imagen dividida" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "División automática (cuando no quede espacio)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "En ficheros cuyo tamaño es:............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "MiB" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Esperar después de cada cambio de volumen" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Si acaba satisfactoriamente:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Esperar" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Apagar" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Reiniciar" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Salir" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "Último" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partición a guardar:.........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Tamaño de la partición:.......%s=%llu bytes" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Fichero imagen a crear.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Sistema de ficheros detectado:......%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Nivel de compresión:.............Ninguno" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Nivel de compresión:............gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Nivel de compresión:.............bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Nivel de compresión:.............Izo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Tiempo transcurrido:.........%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Tiempo restante estimado:....%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Velocidad:...................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Datos copiados:.................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Fichero de imagen actual:...........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Tamaño del fichero imagen:...........%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Espacio disponible para la imagen:.....%s = %llu bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "Restaurar una partición de un fichero imagen" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Borrar bloques libres con valores cero" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simulación de la restauración (no se escribe)" #: src/client/gui_text.cpp:662 msgid "simulate partition restoration from image file" msgstr "simular restauración de partición de un fichero imagen" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partición a restaurar:............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Tamaño del la partición a restaurar:..........%s = %llu bytes" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Fichero de imagen a usar.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Sistema de ficheros:..................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "La partición estaba en el dispositivo:..........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Imagen creada en:......................%s \n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Tamaño de la particion original:...%s = %llu bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Tiempo transcurrido:............%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Tiempo restante estimado:.........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Transferencia:..................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Datos copiados:..................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Fichero de imagen en curso:............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Nivel de compresion:....................Ninguno\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Nivel de compresion:............gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Nivel de compresion:...............bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Nivel de compresion:..........Izo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Cambiar" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Cancelar" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Introduzca un nuevo nombre de fichero" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "El fichero imagen ya existe\n" "¿Quiere sobreescribir o cambiar el nombre del fichero imagen ?\n" "Fichero: %s\n" "Para cambiar el nombre del fichero, por favor introduzca la ruta completa\n" "(localización + nombre fichero) sin el número del volumen al final, \n" "y pulse \"Cambiar\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "¿Sobreescribir imagen?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Sobreescribir" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "El siguiente fichero imagen está bloqueado.\n" "¿Quiere esperar y reintentar o cambiar el nombre del fichero imagen ?\n" "Fichero:%s\n" "Para cambiar el nombre del fichero, por favor introduzca la ruta completa\n" "(localización+nombre fichero) sin el número del volumen al final, \n" "y pulse \"Cambiar\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "fichero imagen bloqueado" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Reintentar" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "imposible acceder a %s\n" "\n" "Por favor, introduzca otra ruta de directorio (sin el nombre de fichero):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "ruta incorrecta" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Montaje automático" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Por favor, pulse \"ok\" para montar [%s] en [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "Volumen insertado erróneo" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "Se le dirá que quite este medio e inserte el correcto" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "No se puede leer el siguiente fichero de volumen:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Introduzca otra ruta completa ( directorio y nombre)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volumen no encontrado" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Bandera sin activar" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Sin descripcion" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "ninguno" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "desconocido" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Sistema de ficheros:............%s\n" "Descripción:...........%s\n" "Dispositivo original:.......%s\n" "Ruta original del fichero:.... %s\n" "Banderas:.................%ld: %s\n" "Fecha de creación:.........%sTamaño de partición:........%s\n" "Nombre del equipo:..............%s\n" "Versión compatible:....%s\n" "Algoritmo de cifrado:..%ld -> %s\n" "Número de MBR guardado:.......%lu\n" "\n" "Sistema de la copia de seguridad:\n" "- máquina:.............%s\n" "- sistema operativo:....%s\n" "- versión:.............%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Dispositivo:................%s\n" "Número de bloques del dispositivo:...%llu\n" "Modelo del dispositivo:..........%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Número de volumen:.........%lu\n" "Tamaño del volumen:.........%s\n" "Nivel de compresión:...........%ld -> %s\n" "Identificador:.................%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "El fichero imagen \"%s\" no se puede encontrar" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "No se puede leer el fichero imagen" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informaciones de la imagen" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Error" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Acerca de Partition Image %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image se distribuye bajo la licencia GNU GPL 2 (General Public " "License)\n" "\n" "versión:....%s\n" "web:.........http://www.partimage.org/\n" "\n" "Autores:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "No se puede escribir el bloque %ld en la imagen" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "No se puede escribir %s en la imagen" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "No se puede escribir el bloque de mapa de bits %ld en la imagen" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "No se puede leer el bloque de mapa de bits %ld de la imagen" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "No se puede escribir el bloque %ld en el disco duro" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "No se puede leer el bloque %ld de la imagen (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "No se puede leer %s desde la imagen" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "No se puede leer el Super Bloque" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "No se puede escribir el Super Bloque" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "No se puede leer el bloque %ld de la partición del disco duro" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "" "No se puede leer el bloque de mapa de bits %ld de la partición del disco " "duro (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "No se puede escribir el MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "No se puede leer el MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "No es una partición %s. Verifique el sistema de ficheros" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "La partición se guardó con una versión más nueva de Partition Image. Por " "favor, descargue la última versión." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Error al intentar escribir el fichero imagen: ¡ disco lleno !" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "No se puede detectar el sistema de ficheros de la partición %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "No se puede escribir la cabecera principal" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "No se puede escribir la cola principal" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "No se puede leer la cola principal" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "La imagen que intenta restaurar fue cifrada. La versión actual no soporta " "cifrado. Por favor, descargue la última versión de partimage." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s no es el primer volumen de una imagen. Por favor, reintente con el número " "de volumen 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s no es una imagen de partición válida." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "La partición es muy pequeñapara ser restaurada:\n" "Tamaño de la partición original:...........%llu bytes\n" "Tamaño de la partición de destino:.........%llu bytes" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Hubo un error al restaurar la partición:\n" "Los CRC64 son distintos, la imagen está dañada:\n" "CRC64 original:.....%llu\n" "CRC64 actual:......%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Número de volumen no válido (%ld en vez de %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Error al cerrar" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "La partición %s está bloqueada por otro proceso. No se puede hacer nada en " "ella" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "No se puede abrir la partición %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "No se puede bloquear la partición %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "No se puede leer la cabezera principal: El fichero imagen está dañado" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "No se pueden escribir informaciones" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "No se pueden leer informaciones" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "No se puede leer la cabecera MBR: el fichero imagen está dañado" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "Error conocido" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" "No se puede restaurar el MBR de una imagen comprimida con bzip2. Debe " "cambiar el nivel de compresión." #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Atención" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "No está dentro del sistema como root. Puede que tenga errores de \"acceso " "denegado\" al trabajar." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nuevo volumen" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "El volumen ha cambiado.\n" "Antiguo: %s\n" "Nuevo: %s/%s.%.3ld\n" "Pulse Enter para continuar" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Confirmación" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "¿Quiere realmente restaurar %s del fichero de imagen %s ?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "%s encontró errores en el sistema de ficheros." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partimage no verificará la partición porque %s no existe." #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" "Partimage no verificará la partición porque no tiene acceso de ejecución " "para %s." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "¡ El soporte actual de %s es experimental !" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "¡ El soporte actual de %s es beta !" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Modo simulación" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Está utilizando modo de simulación: no se escribirá" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "El MBR es un dato muy importante del disco duro. Si escribe un MBR erróneo, " "perderá todas las particiones de su disco duro. No continúe a no ser que " "sepa lo que está haciendo. Pulse 'Continar' para restaurar.\n" "Dispositivo con MBR para restaurar:.........%s [%llu]\n" "MBR original:.......................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "El disco duro original no cabe en el disco duro actual. El MBR que está " "intentando restaurar fue guardado de otro disco duro. Esto significa que el " "el disco duro original y el actual no tienen el mismo tamaño o que no están " "en el mismo dispositivo (%s y %s). ¿Quiere continuar?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Éxito" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "El MBR de [%s] se restauró sin problemas. Puede que necesite reiniciar su " "ordenador si quiere que el sistema operativo utilice el nuevo MBR." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Error:%s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Acción cancelada por el usuario" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "El fichero imagen %s ya existe. ¿Quiere sobreescribirlo?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Acceso denegado" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "No tiene acceso de escritura en %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Nivel de compresión no válido para %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "el fichero imagen %s ya está abierto" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "el fichero %s es demasiado corto para estar en un volumen partimage: no se " "puede leer la cabecera" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" "el fichero %s no es un fichero imagen partimage: las cadenas de la cabecera " "no coinciden" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "" "las cadenas de la cabecera no coinciden: error en el fichero imagen [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" "el volumen actual no coincide con la imagen actual: identificador erróneo" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Sin memoria." #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "" "contraseña incorrecta o usuario no presente en el fichero de usuarios de " "partimage" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" "Demasiados clientes conectados a partimaged. Por favor, inténtelo más tarde" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Sólo se soportan volúmenes %s con 4096 bytes por bloque. El actual tiene %lu " "bytes/bloque" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "La partición %s está bloqueada por otro proceso. No puede hacer nada en ella" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Error al verificar los datos: número de bloque inválido. Puede que un " "volumen o algunos datos se hayan pasado por alto." #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Este volumen (%ld) no es el esperado: %ld." #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Error de nombre de equipo/IP!\n" "No se pudo resolver el nombre del equipo. (Inténtelo otra vez utilizando la " "dirección IP)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "No se encontró el MBR en este fichero de imagen. No se puede continuar" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Las verificaciones encontraron error(es) en las particiones" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Imposible leer el MBR del disco" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Sistema de ficheros %s inválido o dañado" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Imposible poner a cero el bloque en el disco duro: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Conexión rechazada por el servidor: opciones de red incompatibles. Intente " "deshabilitar la opción login en el servidor con '-L'" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Conexión rechada por el servidor: versiones distintas" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "El fichero imagen se creó con una versión más nueva (%s) de Partition Image. " "Por favor, actualice el programa y vuelva a intentarlo." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "El fichero imagen se creó con una versión más antigua (%s) de Partition " "Image. Debe utilizar la versión antigua para restaurar la imagen, o debe " "crearla de nuevo con la versión actual" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s no es un fichero de imagen válido o está dañado. Lo siento, no puedo " "continuar" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "El fichero %s no es un fichero normal. Por razones de seguridad, no se puede " "continuar" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "No se puede montar %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "No se puede desmontar %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "No se puede crear el fichero temporal [%s]. Por favor, verifique que hay " "espacio suficiente y que tiene permiso de acceso." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" "No se puede crear el fichero temporal [%s]. No queda espacio en el " "dispositivo." #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "No se puede crear el fichero temporal en [%s]. El usuario 'partimag' no " "tiene acceso de escritura" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "No se puede crear el fichero temporal en [%s]. Acceso de escritura denegado." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Fichero demasiado grande (mayor de 2 GB). No puede continuar. Este problema " "puede ser debido al kernel, a la glibc, al sistema de ficheros donde se está " "escribiendo la imagen" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Error desconocido %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Información de depurado de newt" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Continuar" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Sí" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "No" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partición a guardar/restaurar" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Fichero imagen a crear/usar" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Acción a realizar:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Guardar partición en un nuevo fichero imagen" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Restaurar partición de un fichero imagen" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Restaurar un MBR del fichero imagen" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Conectar con el servidor" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Cifrar datos en la red con SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL desactivado en tiempo de compilación" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL&login desactivados en tiempo de compilación" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/nombre del servidor:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Puerto:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Siguiente (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Acerca de" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "El campo \"Imagen\" está vacío. No se puede continuar" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "El campo \"Servidor IP/Nombre\" está vacío. No se puede continuar" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" "El campo \"Puerto del Servidor\" no es un número válido. No se puede " "continuar" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Descripción de la partición" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Puede introducir una descripción de la partición salvada:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "El texto no puede estar vacío" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Requiere contraseña" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Introduzca su login" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Introduzca su contraseña" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "¡Disco lleno! No se puede escribir el siguiente fichero del volumen (%s." "%.3ld)\n" " en %s\n" "Por favor, introduzca otra ruta de directorio (sin el nombre de fichero):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Localización del nuevo volumen" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "el puerto del servidor debe estar entre 1 y 65535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "El modo de compresión debe ser 0 (nada), 1(gzip), 2(bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "El modo de finalización debe ser 0 (esperar), 1(apagar), 2(reiniciar) o 3" "(salir)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "El nivel de depuración debe ser 0(nada), 1(usuario), 2(desarrollador) ó 3" "(depurado)\n" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Tamaño del volumen: %llu bytes (%ld MiB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image versión %s (distribuido bajo la GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "No se puede abrir el fichero de depurado.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" "Debe tener devfs activado pero sin montar. Debe hacerlo para continuar. " "También puede arrancar con un kernel sin devfs si lo tiene." #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "enviando caché del buffer al disco." #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "El MBR ha sido restaurado satisfactoriamente" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulación" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operación" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Error: no se puede apagar el ordenador" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Error: no se puede reiniciar el ordenador" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "Error: no se pueden contabilizar las partimages restantes" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "DEBUG: reiniciar el ordenador" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) versión %s [%s]\n" "---- distribuido bajo la licencia GPL 2 (GNU General Public License) ----\n" "\n" "Sistemas de ficheros soportados:....ext2fs, reiserfs, fat16, fat32, ntfs" "(exp), hpfs\n" "\n" "utilización: partimage [opciones] \n" " partimage \n" "\n" "ej: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ej: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ej: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ej: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ej: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ej: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Argumentos:\n" "* :\n" " - save: guarda los datos de la partición en un fichero imagen\n" " - restore: restaura la partición desde un fichero imagen\n" " - restmbr: restaura el MBR del fichero imagen a un disco duro\n" " - imginfo: muestra información sobre el fichero imagen\n" "* : partition a guardar/restaurar (ejemplo: /dev/hda1)\n" "* : fichero donde se leerán/escribirán los datos. Puede ser " "muy grande\n" "\n" "Opciones:\n" "* -z, --compress (nivel de compresión del fichero imagen):\n" " -z0, --compress=0 no comprime: muy rápido pero fichero imagen muy " "grande\n" " -z1, --compress=1 comprime utilizando gzip: rápido y fichero imagen " "pequeño (por defecto)\n" " -z2, --compress=2 comprime utilizando bzip2: muy lento y fichero imagen " "muy pequeño\n" "* -c, --nocheck no verifica la partición antes de guardar\n" "* -o, --overwrite sobreescribe el fichero imagen existente sin preguntar " "confirmación\n" "* -d, --nodesc no pregunta descripción del fichero imagen\n" "* -V, --volume (divide la imagen en varios volúmenes)\n" " -VX, --volume=X crea volúmenes con un tamaño de X MB\n" "* -w, --waitvol espera por una confirmación después de cada cambio de " "volumen\n" "* -e, --erase borra los bloques vacíos al restaurar con bytes a " "cero\n" "* -m, --allowmnt no falla si la partición está montada. ¡Peligroso !\n" "* -M, --nombr no crea una copia del MBR (Master Boot Record) en el " "fichero imagen\n" "* -h, --help muestra ayuda\n" "* -v, --version muestra versión\n" "* -i, --compilinfo muestra las opciones de compilación utilizadas\n" "* -f, --finish (acción a realizar si termina satisfactoriamente):\n" " -f0, --finish=0 esperar: no hace nada\n" " -f1, --finish=1 apagar (power off) el ordenador\n" " -f2, --finish=2 reiniciar (reinicia el ordenador):\n" " -f3, --finish=3 salir\n" "* -b, --batch modo batch: la interfaz de usuario no esperará " "acciones del usuario\n" "* -y, --nosync no sincroniza los discos al final de la operación " "(peligroso)\n" "* -sX, --server=X asigna la dirección ip del servidor partimaged\n" "* -pX, --port=X asigna el puerto de escucha del servidor partimaged\n" "* -g, --debug=X activa el nivel de depurado a X (por defecto: 1):\n" "* -n, --nossl desactiva SSL en modo red\n" "* -S, --simulate simulación del modo de restauración\n" "* -aX, --automnt=X Monta automáticamente con opciones X. Lea la " "documentación para más detalles\n" "* -UX --username=X Nombre del usuario para autentificarse en el servidor\n" "* -PX --Password=X Contraseña para la autentificación del usuario en el " "servidor\n" #: src/client/main.cpp:894 msgid "stable" msgstr "estable" #: src/client/main.cpp:894 msgid "unstable" msgstr "inestable" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s terminó satisfactoriamente:\n" "\n" "Tiempo transcurrido:...%s\n" "Velocidad:..........%s/min\n" "Datos copiados:....%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "iniciando la operación. Por favor, espere..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "Solución temporal para el fallo con Bzip2" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" "Debido a un fallo, no podrá restaurar el MBR de ningún fichero imagen " "comprimido con bzip2 a no ser que ejecute manualmente bzip2 -d en los " "ficheros" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Guardando la partición al fichero de imagen..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "inicializando la operación" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "Error en la cola principal" #: src/client/misc.cpp:1002 msgid "Impossible to read the magic: the image is damaged" msgstr "No se puede leer la cabecera principal: el fichero imagen está dañado" #: src/client/misc.cpp:1016 msgid "CRC changed: the image is damaged" msgstr "CRC modificado: el fichero imagen está dañado" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "los números del volumen han cambiado: la imagen está dañada" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inodo desaparecido" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "El inodo %s no existe. Partimage puede crearlo por usted. También puede " "utilizar el comando mknod manualmente. ¿Quiere que se cree por usted este " "inodo ahora?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s no es un dispositivo de bloque." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "No tiene acceso a /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Ocurrió un error al intentar leer /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "La partición %s está montada. Partition Image no puede funcionar en " "particiones montadas. Por favor, desmóntela antes. Puede hacerlo con " "\"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "El tamaño de división de los volúmenes debe ser un entero mayor que 1024 " "(tamaño >= 1024 KB)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" "Opciones de montaje automático no válidas. Lea el manual para más detalles" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" "El segundo argumento [%s] debe ser un dispositivo válido (ej: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "El tercer argumento [%s] debe ser un fichero normal (no un directorio, un " "enlace simbólico, ...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "¿ Salir de partimage ?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "¿Realmente quiere cancelar la operación actual?" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "error de verificación local" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "No es posible encontrar una estructura de verificación local. Los datos " "pueden estar dañados. ¿Quiere continuar?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "error CRC local" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Hubo una posición de error en CCheck. Los datos pueden estar dañados. " "¿Quiere continuar?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Hubo un error CRC en CCheck. Los datos pueden estar dañados. ¿Quiere " "continuar?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "leyendo las propiedades de la partición" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "verificando el sistema de ficheros con fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "escribiendo cabecera" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "copiando bloques de datos usados" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "leyendo información de la partición" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Tamaño de bloque....................%llu bytes\n" "Número de bloques totales............%llu\n" "Número de bloques utilizados.............%llu\n" "Número de bloques libres.............%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%s Utilización de espacio:..................%llu %%\n" "Espacio utilizado....................%s\n" "Espacio libre....................%s\n" "Tamaño del mapa de bits...................%s\n" "Etiqueta.........................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sNúmero de grupos..............%lu\n" "Primer bloque...................%lu\n" "Ext3fs transaccional.........%s\n" "Densidad super bloque............%s\n" "Soporte de ficheros grandes...........%s\n" "Revisión del sistema de ficheros..........%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "sí" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "no" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informaciones Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informaciones Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Hubo un error al leer el mapa de bits" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sTamaño del sector...................%u\n" "Sectores por cluster...........%u\n" "Número de sectores reservados........%u\n" "Sectores de directorio raíz........%lu\n" "Número de tablas FAT..............%u\n" "Número total de sectores...........%lu\n" "Sectores por FAT...............%lu\n" "Número de clusters:...............%lu\n" "Clusters utilizados.................%lu\n" "Clusters libres.................%lu\n" "Clusters dañados..............%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Informaciones FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "No se puede leer el sector de arranque" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster no puede ser nulo. Verifique que la partición a guardar " "es de tipo FAT." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "No se puede leer el sector FSInfo" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s no es una partición con sistema de ficheros NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Sin memoria: se necesitan %lu bytes para leer el registro de fichero en " "readBitmap()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "No se puede leer el registro $Bitmap MFT.¿Quiere hacer una búsqueda " "experimental para encontrarlo? (puede llevar mucho tiempo)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "No se puede encontrar $bitmap con la búsqueda experimental" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "No se puede utilizar el registro de fichero $bitmap" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS: $Bitmap es demasiado pequeño" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Sin memoria" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes por sector..............%u\n" "Sectores por cluster...........%u\n" "Tamaño del registro de fichero..............%lu\n" "LCN de MFT Data attrib........%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Informaciones NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Sin memoria: se necesitan %lu bytes para leer el registro del fichero en " "readVolumeLabel()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: el atributo \"Lista de atributos\" todavía no está soportado." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: bandera de compresión para el atributo DATA no nula: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: atributo de datos residentes no soportado" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() devolvió -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Error en readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "El atributo \"nombre de fichero\" debe ser residente !" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "búsqueda de registro $bitmap" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "búsqueda experimental satisfactoria" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sversión HPFS:.................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "Informaciones HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "No se puede leer el bloque de arranque" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "No se puede leer el super bloque" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "No se puede leer bloque de reserva" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Números de cabecera HPFS inválidos. No es una partición HPFS válida." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Informaciones ReiserFS" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Informaciones JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sNúmero de asignaciones de grupo:.......%lu\n" "Bloques por grupo de asignación...%lu\n" "Tamaño del grupo de asignación:........%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Informaciones XFS" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Esperando ..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "error !" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "conseguir espacio ..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "escribiendo ..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "abriendo para escribir ..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "guardando" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "leyendo ..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "cerrando ..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "abriendo para leer ..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "restaurando" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "terminado" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Cliente #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Estado" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Equipo" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Localización" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Tamaño" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "esperando" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Fallo de segmentación. Por favor, informe del fallo y envíe el fichero [%s] " "a los autores\n" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Demonio Partition Image (http://www.partimage.org/) versión %s\n" "---- distribuido bajo la licencia GPL 2 (GNU General Public License) ----\n" "\n" "utilización: partimaged [opciones]\n" "\n" "Opciones:\n" "* -h, --help muestra ayuda\n" "* -v, --version muestra versión\n" "* -d, --dest directorio de destino\n" "* -pX, --port=X puerto de escucha del servidor (por defecto %d)\n" "* -D, --daemon iniciar en modo demonio, no en primer plano\n" "* -i, --compilinfo muestra opciones de compilación utilizadas\n" "* -r dir, --chroot dir utiliza chroot para mejorar la seguridad\n" "* -g, --debug=X asigna el nivel de depuración a X (por defecto: 1)\n" "* -L, --nologin desactiva login de los clientes\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Imposible abrir fichero de registro %s: %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Solucione esto y vuelva a intentarlo.\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "imposible encontrar al usuario \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "añádalo y reintente\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Atención: no se pudo cambiar el euid porque no se ejecutó como root\n" "espere algunos accesos denegados o problemas como este.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Demonio de Partition Image versión %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Demonio de Partition Image versión %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distribuido bajo la GNU GPL2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Esperando por el cliente ..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "demasiados clientes conectados" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: opciones de compilación utilizadas ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" "\n" "* Versión es %s [%s].\n" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Sistemas de ficheros soportados:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Soporte Ext2fs basado en la librería libext2fs\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Soporte Ext2fs: código interno\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Opciones de depuración:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - DEVEL ENABLED\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - DEVEL DISABLED\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "verdadero" #: src/shared/common.cpp:106 msgid "false" msgstr "falso" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Otras opciones:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - USERS MUST LOGIN\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - USERS DON'T LOGIN\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS no utilizado\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ENABLED\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL DISABLED\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ACTIVADO\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID DISABLED\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld bytes" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "%.2f KiB" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "%.2f MiB" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "%.2f GiB" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "%.2f TiB" partimage-0.6.8/po/nl.gmo0000644000000000000000000010761111252653754013747 0ustar rootrootÞ•B, ¯<øù 2G[x/”"Äçþ6L^o†œ ²X½—®MÈ''>Pfg·‰#©ËÍt™ ¬""»"Þ"ù"ƒ#4™#Î#Ô# í# û#$/$$?$,d$’‘$($%M%e%}%–%+¯%Û%9ñ%&+&-R&$€&¥&»&Ò&-ê&'-'D'['+n'š'²'%É'"ï'(1(J(b(x(Œ(6“(]Ê(0()Y)i)‚‚)**.*M*T*r*{*'*'µ*&Ý*%+!*+"L+!o+ ‘+5²+ è+õ+m,.u,¤, ­,»,$Û,$-)%-O-qo-á-4þ-93.$m.*’.½.Ï.â.ó."/*/0/O/]^/+¼/ è/ò/!040$T0 y0ƒ0”0¨0¼0FÍ0$1–91‘Ð1<b3Ÿ3´3Æ3Ë3Ð3ç3%4'4G4$g4Œ4Ÿ4 °4-Ñ4%ÿ47%5;]5 ™5 º5+Û566!626K66]67”6+Ì6"ø6 7&7:7 Q7[75^7”7 £7 ¯7-Ð7þ7R8 T8^8f8 z8ˆ8A—8FÙ8 9*9;9 T9"_9&‚9=©9-ç9:$+:P:%p:–:(¨:Ñ:×:Ü:ã:!ù:;$;;`;f;$ƒ;%¨;LÎ; <&<26<i<1n<, <1Í<#ÿ<(#=IL=–=œ=¤=+¹=4å=?>+Z><†>ˆÃ>+L?‰x@!A $A(EAGnAà¶A#—Bm»B©)CÓCaDJyEGÄE F\ŒF?éFV)GM€G ÎGOÜGT,H+H­H>I$^I=ƒItÁI6JMJx^J×JÜJúJ KKw&KžK¯KÀKMÄK9L3LL!€L¢L"´L ×LãLüLM M=&M@dM¥M ®M»MØMéMN*"N MN[NMkN9¹NóNöNûNO &O2OQO!nO OšO·O*¾OéOFðO7PQPOVP¦P®P·P¿P ÎP ÛPæPXêPCRURhR{R“R¦RÃR=ßR'SES"\SS˜S­SÁSÑSïST %Td0T›•T1U\JU*§U(ÒU]ûUkYV•ÅV"[W×~W’VXÐéYºZ,ÙZ'[.[7°[è[í[\/\G\\\8o\/¨\ŸØ\3x]¬]È]ä]^5^S^>m^)¬^2Ö^' _1_K_f_4‚_·_Ì_æ_`-` E`f`.„`.³`'â` a*aFa_ayaJ€ayËa3Ebybb‘­b?c\c*rcc-¦cÔcÝc'ïc'd&?d%fd!Œd"®d!Ñd ód7e LeXexke5äe f$f!3f&Uf,|f1©f#Ûfÿfg(°g2Ùg* h17hih~hšh«h'¿hçhìh iui5“iÉi Òi óij$4jYjhj{jj£jY´j(k¬7k´äkF™màmýmnnn0n(Gn)pn$šn.¿nîno&oF9o%€o9¦oAào""p)Ep/opŸp°p·pÊpãp8õp7.q.fq#•q ¹qÆqàq öqr=rFrXr%hr=ŽrÌrWÏr's0s 7sXslsW€s\Øs 5tCtXt xt!ƒt%¥t8Ët:u?u&Yu'€u$¨uÍu2Þuvv+v2v%Hv"nv&‘v¸vÈv/çv4wXLw ¥w¯w8¾w÷w:ÿw.:x:ix&¤x+Ëx`÷xXyayhy*y3¬yEày1&z<Xz˜•z;.{”j|%ÿ|%%}.K}Kz}ùÆ}/À~ˆð~Ày–:€>Ñ€R‚Pc‚Œ´‚pAƒG²ƒlúƒPg„ ¸„]Ä„U"…5x…ª®… Y†%z†K †qì†^‡w‡zŒ‡ˆ$ ˆ2ˆRˆ fˆ‹sˆÿˆ‰*‰[-‰B‰‰>̉" Š .Š,OŠ|Š&’йŠÁŠÝŠ?âŠQ"‹t‹{‹!‹‹­‹'Ç‹ï‹.Œ>ŒPŒaaŒ:ÃŒþŒ!%G#X$|"¡Ä0׎1ŽOŽKWޣ޽ŽcÂŽ& /9Id y†ÊQw'™ ù1u3Õ=âI›àV(æ>/¨û¡DB¤2ŽrÆØê¯F6Öd–|qˆµ‹m þj6-" 2ôxܶå7N½;KòË+·ý_îMtaG<Pe[X&‡ß“×z­%ÎcZ"T5Éž$?Ì8Ñ~* )ÚÍ?Œü(°B)ã4*Š`Àb'÷^¿.èœpÞ-Ð{—ñY´9±/£A5«@;³AÝ0R%é€ ,ëíCä.,š>8ÅõivO‰#l‚$&L¢En ÁÈ+¾7Ws!SÛ ¥’ìÃk4ÒÔ@¼Ç9ï˜#• ÿÄöø0†Óh=Hç ú¹1:º»y]„… óƒ§:o©ŸðªÙϲáU3¸}®‘f ” ¦ \<¬Jg! * Debug options: * Other options: - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostIP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimagedPartition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluTime elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sadd it and retry checking the file system with fsckclosing ...copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: partimage 0.6.0 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2001-12-28 14:46+0100 Last-Translator: Herman Bruyninckx Language-Team: Dutch MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit * Debug-opties: * Andere opties: - APPEND_PID=%s - CHEUID NIET ACTIEF - CHEUID ACTIEF - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - Ext2fs ondersteuning: gebaseerd op libext2fs bibliotheek - Ext2fs ondersteuning: interne code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS niet gebruikt - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL NIET ACTIEF - SSL ACTIEF - GEBRUIKERS NIET INLOGGEN - GEBRUIKERS MOETEN INLOGGEN $bitmap record search%lld bytes%s met succes beeindigd: Benodigde tijd:...%s Snelheid:..........%s/min Gegevens gecopieerd:....%s%s inode bestaat niet. Partimage kan hem voor u aanmaken. U kan ook de manuele opdracht mknod gebruiken. iWil u dat deze inode nu voor u aangemaakt wordt ?%s is geen block device.%s is geen geldig Partition Image bestand of het is beschadigd. Sorry, we kunnen niet verder%s is geen geldig partition image bestand.%s is geen NTFS bestandssysteem partitie%s is niet het eerste volume van een image. Gelieve opnieuw te proberen met volume nummer 000%sAllocation Groep teller:.......%lu Blocks per Allocation Groep...%lu Allocation Groep grootte:........%s %sBytes per sector..............%u Sectors per cluster...........%u Grootte van bestands-record..............%lu LCN van MFT Data attrib........%llu %sHPFS versie:.................%d %sAantal groepen..............%lu Eerste block...................%lu Ext3fs journalization.........%s Sparse super block............%s Ondersteuning grote bestanden...........%s Bestandssysteem-revisie..........%lu %sSector-grootte...................%u Sectoren per cluster...........%u Aantal gereserveerde Sectoren........%u Root directory sectoren........%lu Aantal FAT tabellen..............%u Totaal aantal Sectoren...........%lu Sectoren per FAT...............%lu Aantal clusters:...............%lu Gebruikte clusters.................%lu Vrije clusters.................%lu Beschadigde clusters..............%lu %sGebruik van schijfruimte:..................%llu %% Gebruikte schijfruimte....................%s Vrije schijfruimte....................%s Bitmap grootte...................%s Label.........................%s (verdeeld onder de GNU GPL 2) * Image bestand om aan te maken/te gebruiken* Partitie om op te slaan/te herstellen------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: gebruikte compilatie-opties ==== OverOver Partition Image %sToegang geweigerdActie onderbroken zoals gevraagd door gebruikerUit te voeren actie:Automatische mountAutomatische split (wanneer geen schijfuimte overblijft)Beschikbare ruimte voor image...%s = %llu bytesBlock-grootte....................%llu bytes Totaal aantal blocks............%llu Gebruikte aantal blocks.............%llu Vrije aantal blocks.............%llu Kan bestandssysteem van partitie %s niet detecterenKan partitie %s niet lockenKan partitie %s niet openenKan %s niet lezen van imageKan FSInfo sector niet lezenKan MBR Magic niet lezen: image-bestand is beschadigdKan SuperBlock niet lezenKan bitmap block %ld niet lezen van harde schijf partitie (%s)Kan bitmap block %ld niet lezen van imageKan block %ld niet lezen van harde schijf partitieKan block %ld niet lezen van image (%d)Kan root block niet lezenKan boot sector niet lezenKan inlichtingen niet lezenKan hoofding niet lezen: image-bestand is beschadigdKan einde niet lezenKan vrij block niet lezenKan super block niet lezenKan de MBR niet lezenKan volgende volume-bestand niet lezen: %s %sKan %s niet naar image schrijvenKan SuperBlock niet schrijvenKan bitmap block %ld niet naar image schrijvenKan block %ld niet naar harde schijf schrijvenKan block %ld niet naar image schrijvenKan inlichtingen niet schrijvenKan hoofding niet schrijvenKan einde niet schrijvenKan de MBR niet schrijvenCancelKan tijdelijk bestand [%s] niet aanmaken. Geen plaats meer vrij op device.Kan tijdelijk bestand [%s] niet aanmaken. Gelieve na te kijken of er genoeg plaats vrij is en of u toegangsrechten heeft.Kan de $bitmap niet vinden met experimentele searchKan %s niet mountenKan debug-bestand niet openen. Kan "/proc/partitions" niet lezen (%s). Dus moet u de commando-lijn gebruiken om Partition Image uit te voeren. Tik "partimage --help" voor hulp.Kan image-bestand niet lezenKan %s niet unmountenKan $bitmap bestands-record niet gebruikenVeranderControleer partitie alvorens weg te schrijvenClient #Compressie-niveauCompressie-niveau:................Geen Compressie-niveau:................bzip2Compressie-niveau:................gzipCompressie-niveau:................lzoCompressie-niveau:...........NoneCompressie-niveau:...........bzip2Compressie-niveau:...........gzipCompressie-niveau:...........lzoCompressie-mode moet zijn: 0 (geen), 1(gzip), 2(bzip2) BevestigingVerbind met serverVerbinding geweigerd door server: incompatibele netwerk-opties. Probeer login-optie voor de server af te zetten met '-L'Verbinding geweigerd door server: versies passen nietGa verderGa verder (F5)Huidig image-bestand:..........%sHuidig image-bestand:...............%sGegevens gecopieerd:.................%s / %sGegevens gecopieerd:......................%s / %sGevonden bestandssysteem:........%sSchijf vol! Kan het volgende volume-bestand (%s.%.3ld) niet naar %s schrijven Gelieve een ander directory pad op te geven (zonder bestandsnaam):Schijf met de te herstellen MBRWil u de huidige operatie echt afbreken?Wil u echt %s herstellen van het image-bestand %s?Encrypteer gegevens op het netwerk met SSLVoer een ander volledig pad in (directory & naam)Voer beschrijving inVoer nieuwe bestandsnaam inVoer uw login inVoer uw paswoord inOverschrijf vrije blocken met nul-bytesFoutFout in readFilenameAttributeFout bij afsluitenFout bij het controleren van de gegevens. Ongeldig block-nummer. Misschien zijn een vollume of gegevens overgeslagen.Fout tijdens schrijven van image-bestand: schijf vol!Fout: %sFout: kan computer niet afzettenFout: kan computer niet rebootenGeschatte benodigde tijd:....%sGeschatte benodigde tijd:.........%sAfsluiten (F6)Verlaat partimage?Ext2fs inlichtingenExt3fs inlichtingenFAT inlichtingenBestand %s is geen geldig bestand. We kunnen niet verder omwille van beveiligings-redenenBestandssysteem:......................%sBestand is te groot (groter dan 2 GB). We kunnen niet verder. Dit probleem kan veroorzaakt zijn door de kernel, glibc, het bestandssysteem waarop het image weggeschreven isBestandssysteem:............%s Beschrijving:...........%s Oorspronkelijk device:.......%s Oorspronkelijk bestandspad:.... %s Vlaggen:.................%ld: %s Aanmaak-datum:.........%sPartitie-grootte:........%s Hostname:..............%s Compatibele Versie:....%s Encryptie-algoritme:..%ld -> %s MBR weggeschreven aantal:.......%lu Systeem van de backup: - machine:.............%s - besturingssysteem:....%s - release:.............%s Beeindigings-mode moet zijn: 0 (wacht), 1(halt), 2(reboot) or 3(quit) Herstel en probeer opnieuw. HPFS inlichtingenHaltHostIP/naam van de server:Indien geslaagd einde:Image aangemaakt op:.................%s Grootte van image-bestand:.............%sAan te maken iage-bestand.........%sTe gebruiken image-bestand:.................%sImage inlichtingenImage split-modeMBR kan niet van schijf gelezen wordenOnmogelijk om het block op harde schijf %s met nullen te overschrijvenIn bestanden met grootte:............Ongeldige HPFS magic numbers. Geen geldige HPFS-partitie.Ongeldige automount-opties. Lees de handleiding voor meer detailsOngeldig compressie-niveau voor %sOngeldig of beschadigd bestandssysteem %sOngeldig volume-nummer (%ld in plaats van %ld).JFS inlichtingenPlaatsHoofd-venster (F7)NTFS $Bitmap is te kleinNTFS inlichtingenNTFS: Attribute List" attribuut is nog niet ondersteund.NTFS: Compressie-vlag voor DATA attribuut niet nul: %ldNTFS: Resident data attribuut niet ondersteundNTFS: processRunList() gaf -1 terugNieuw VolumeNieuwe plaats voor volumeNewt debug-informatieVolgende (F5)NeeGeen MBR gevonden in dit image-bestand. We kunnen niet verderGeen beschrijvingGeen vlag gezetGeen (zeer snel + zeer groot bestand)Geen %s-partitie. Controleer het type van het bestandssysteemOkSlecht 4096 bytes per block %s volumes zijn ondersteund. Het huidige is %lu bytes/blockOperatieOptiesOorspronkelijke te gebruiken MBRGebrek aan geheugenTe weinig geheugen.Gebrek aan geheugen: heb %lu bytes nodig om bestands-record in te lezen in readBitmap()Gebrek aan geheugen: heb %lu bytes nodig om bestands-record in te lezen in readVolumeLabel()OverschrijvenImage overschrijven?Overschrijf zonder verwittigingPartimagedPartition Image Daemon versie %s Partition Image Daemon versie %s+SSL Partition Image versie %s (verdeeld onder de GNU GPL2). Controle van partitie heeft fout(en) gevonden op partitiesBeschrijving van partitieTe herstellen partitie:.............%sWeg te schrijven partitie:...........%sPartitie was op device:..........%s Paswoord vereistGelieve "ok" te drukken om [%s] te mounten op [%s]Poort:Programma verlatenRebootReiserFS inlichtingenHerstel een MBR van een image-bestandHerstel een MBR op de harde schijfHerstel partitie van een image-bestandProbeer opnieuwSSL afgezet bij het compilerenSchrijf partitie weg in een nieuw image-bestandPartitie aan het wegschrijven naar image-bestand ...Segmentatie-fout. Gelieve de bug te rapporteren en zend het bestand [%s] naar de makers SimulatieSimulatie-modeSimulatie van de herstelling (niets wordt weggeschreven)GrootteGrootte van de te herstellen partitie:.....%s = %llu bytesGrootte van de Partitie:.......%s = %llu bytesGrootte van de oorspronkelijke partitie:...%s = %llu bytesSnelheid:.......................%s/minSnelheid:............................%s/minDe grootte van gesplitte volumes moet een geheel getal zijn groter dan 1024 (grootte >= 1024 KB)ToestandSuccesTekst mag niet leeg zijnHet "Image"-veld is leeg. Kan niet verder.Het "Server IP/Naam"-veld is leeg. Kan niet verder.het "server-poort"-veld is geen geldig geheel getal. Kan niet verder.Het "bestandsnaam"-attribuut moet resident zijn !Het %s image-bestand bestaat reeds. Wil u het overschrijven?De %s partitie is gemount. Partition Image kan niet werken op gemounte partities. Gelieve de partitie eerst te unmounten. Dit kan u doen met "umount %s"De MBR is heel belangrijke data op de harde schijf. Indien u een slechte MBR wegschrijft verliest u alle partities van de harde schijf. Ga niet verder tenzij u weet wat u doet. Druk 'Verdergaan' om te herstellen. Device met MBR om te herstellen:........%s [%llu] Oorspronkelijke MBR:.......................%s [%llu]De herstelling van de MBR van [%s] is geslaagd. U moet misschien uw computer rebooten indien u wil dat het besturingssysteem de nieuwe MBR gebruikt.De herstelling van de MBR is geslaagdDe huidige %s ondersteuning is beta !De huidige %s ondersteuning is experimenteel !Het debug-niveau moet zijn: 0(geen), 1(user), 2(developer) of 3(debugging) Het volgende image-bestand bestaat reeds. Wil u het overschrijven of de bestandsnaam wijzigen? Bestand: %s Om de bestandsnaam te wijzigen, vult u een volledig pad in (plaats + bestandsnaam) zonder volume-nummer aan het einde, en druk dan op "Wijzig"Het image-bestand "%s" kan niet gevonden wordenHet image-bestand is aangemaakt met een nieuwere versie (%s) van Partition Image. Gelieve de software te updaten en opnieuw te proberen.Het image-bestand is aangemaakt door een oudere versie (%s) van Partition Image. U moet de oude versie gebruiken om uw image te herstellen, of u moet het opnieuw aanmaken met de huidige versieHet image dat u wil herstellen is geencrypteerd. De huidige versie ondersteunt geen encryptie. Gelieve de laatste versie van partimage te installeren.De oorspronkelijke harde schijf past niet met de huidige harde schijf. De MBR die u probeert te herstellen is weggeschreven vanaf een andere harde schijf. Dit betekent dat de oorspronkelijke en de huidige harde schijven niet dezelfde grootte hebben, of ze staan niet op hetzelfde device (%s and %s). Wil u verder gaan?De partitie %s is reeds geblokkeerd door een ander proces. U kan er niet op werkenDe partitie %s is reeds geblokkeerd door een ander proces. Kan er niet op werkenDe partitie is te klein om hersteld te worden: Originele partitie-grootte:........%llu bytes Partitie-grootte van bestemming:.....%llu bytesDe partitie is weggeschreven met een nieuwere versie van Partion Image. Gelieve de laatste versie te downloaden.Het tweede argument [%s] moet een geldig device zijn (bijv.: /dev/hda1)Het derde argument [%s] moet een geldig regulier bestand zijn (geen directory, of een symbolische link, ...)Het volume is gewijzigd. Oud: %s Nieuw: %s/%s.%.3ld Druk Enter om verder te gaanDe hele MBREr is een CRC fout opgetreden in CCheck. Gegevens kunnen beschadigd zijn. Wil u verder gaan?Er is een positie-fout in CCheck. Gegevens kunnen beschadigd zijn. Wil u verder gaan?Er is een fout opgetreden bij het lezen van de bitmapEr is een fout opgetreden bij het herstellen van de partitie: CRC64 zijn verschillend, het image-bestand is beschadigd: Originele CRC64:.....%llu Huidige CRC64:......%lluVerlopen tijd:................%sVerlopen tijd:.....................%sTe veel clients verbonden met partimaged. Gelieve later opnieuw te proberen$Bitmap MFT record kan niet gelezen worden. Wil u een experimentele search ervoor uitvoeren? (Dit kan lang duren)Onbekende error %d -> %sVolume niet gevondenVolume-nummer:.........%lu Volume-grootte:...........%s Compressie-niveau: ....%ld -> %s Identificator:.........%llu=%llX WachtWacht na iedere wijziging aan volumeAan het wachten voor client ...Aan het wachten ...WaarschuwingWaarschuwing: we konden euid niet veranderen omdat we niet als root opgestart zijn Verwacht geweigerde toegang of gelijkaardige problemen. Wat moet hersteld worden:XFS inlichtingenJaU bent niet ingelogd als root. U kan "toegang geweigerd" fouten krijgen tijdens het werken.U gebruikt de simulatie-mode: schrijven zal niet uitgevoerd wordenU kan een beschrijving invullen voor de weggeschreven partitieU heeft geen schrijf-toegang op %svoeg het toe en probeer opnieuw bestandssysteem aan het controleren met fsckaan het afsluiten ...gebruikte data-blocks aan het copierenerror !experimentele search geluktvalsbestand %s is geen partimage bestand: magische string past nietbestand %s is te kort om partimage volume te kunnen zijn: kan hoofding niet lezengedaanzoek ruimte ...image-bestand %s is reeds geopendimage-bestand geblokkeerdonmogelijk om gebruiker "%s" te vinden operation aan het initialiserenoperatie aan het initialiseren. Even geduld...ontbrekende inodelocale CRC errorm_cSectorsPerCluster kan niet nul zijn. Controleer of de partitie om weg te schrijven een FAT is.magische string past niet: error in het image-bestand [%s]neegeenaan het openen voor lezen ...aan het openen voor schrijven ...aan het lezen...partitie-inlichtingen aan het lezenpartitie-eigenschappen aan het lezenherstel partitie van image-bestandaan het herstellenpartitie aan het wegschrijven naar image-bestandaan het wegschrijvenpoort op de server moet tussen 1 en 65535 liggen stabielhet huidige volume past niet met het huidige image: verkeerde identificatorte veel clients verbondenwaarNiet in staat om %s te bereiken Gelieve een ander directory-pad in te geven (zonder bestandsnaam):onbekendonstabielaan het wachtenhoofding aan het schrijvenaan het schrijven...verkeerd padjapartimage-0.6.8/po/fr.po0000644000000000000000000020713611256747107013604 0ustar rootroot# translation of fr.po to Français # Copyright (C) 2003 Free Software Foundation, Inc. # HOIZEY François-Olivier , 2003 # msgid "" msgstr "" "Project-Id-Version: fr\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2003-10-17 23:20+0000\n" "Last-Translator: HOIZEY François-Olivier \n" "Language-Team: Français \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.1\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Restaurer le MBR sur le disque dur" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disque avec le MBR à restaurer" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "MBR original à utiliser" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "A restaurer :" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Le MBR complet" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Impossible de lire \"/proc/partitions\" (%s). Vous devez utiliser la ligne " "de commande pour lancer Partition Image. Tapez \"partimage --help\" pour " "avoir l'aide." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Continuer (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Quitter (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Menu principal (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "Sauvegarder la partition (fichier image)" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Niveau de compression" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Aucun (tres rapide + fichier très gros)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Options" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Vérifier la partition avant sauvegarde" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Entrez une description" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Ecraser sans confirmation" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Mode de segmentation des images" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Segmentation automatique (si disque plein)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Dans des fichiers de:............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Attendre apres chaque changement de volume" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Si effectué avec succès:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Attendre" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Arrêter" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Redémarrer" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Quitter" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partition à sauvegarder:...........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Taille de la partition:.......%s = %llu octets" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Fichier image a créer.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Systeme de fichier detecté:........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Niveau de compression:...........Aucun" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Niveau de compression:...........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Niveau de compression:...........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Niveau de compression:...........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Temps ecoulé:................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Temps restant estimé:....%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Vitesse:.......................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Données copiées:................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Fichier image en cours:..........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Taille de l'image:.............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Espace libre pour l'image:...%s = %llu octects" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "Restaurer une partition depuis image" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Effacer les blocks libres avec des zero" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simuler une restauration (rien n'est ecrit)" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "Restaurer une partition depuis image" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partition à restaurer:.............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Taille de la partition à restaurer:.....%s = %llu octets" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Fichier image à utiliser.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Systeme de fichier:......................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Partition sur le péripherique:..........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Image crée le:.................%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Taille de la partition originale:...%s = %llu octets" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Temps ecoulé:.....................%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Temps restant estimé:.........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Vitesse:............................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Données copiées:......................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Fichier image en cours:...............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Niveau de compression:................Aucun\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Niveau de compression:................gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Niveau de compression:................bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Niveau de compression:................lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Changer" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Abandonner" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Entrez un nouveau nom de fichier" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Le fichier image suivant existe déjà.\n" "Souhaitez vous l'écraser ou en changer le nom ?\n" "Fichier: %s\n" "Pour changer le nom du fichier, merci d'entrer le chemin complet\n" "(localisation+nom de fichier) sans le numero de volume a la fin; \n" "et appuyez sur \"Changer\" " #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Ecraser l'image?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Ecraser" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Le fichier image suivant est verouillé.\n" "Souhaitez vous attendre et réessayer ou changer le nom du fichier?\n" "Fichier: %s\n" "Pour changer le nom du fichier, merci d'entrer le chemin complet\n" "(localisation+nom du fichier) sans le numero de volume a la fin, \n" "et appuyez sur \"Changer\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "Fichier image verouillé" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Recommencer" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "Impossible d'accéder a %s\n" "\n" "Merci d'entrez un autre chemin (sans le nom de fichier):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "Chemin incorrect" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Montage automatique" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Appuyez sur \"ok\" pour monter [%s] sur [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Impossible de lire le fichier de volume suivant:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Entrez un autre chemin complet (répertoire+nom)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume non trouvé" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Pas d'option selectionnée" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Pas de description" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "rien" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "inconnu" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Système de fichier:............%s\n" "Description:......................%s\n" "Périphérique d'origine:.......%s\n" "Chemin d'origine:..............%s\n" "Options:.......................%ld: %s\n" "Date de création:...............%sTaille de partition:........%s\n" "Nom d'hôte:.......................%s\n" "Version compatible:............%s\n" "Algorithme d'encription:.....%ld -> %s\n" "Compteur de MBR sauvé:...%lu\n" "\n" "Système de sauvegarde:\n" "- Machine:.......................%s\n" "- Systeme d'exploitation:....%s\n" "- Version:.........................%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Périphérique:................%s\n" "Nombre de bloc:...........%llu\n" "Modèle du périphérique:.%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Numero du volume:.......%lu\n" "Taille du volume:.........%s\n" "Niveau de compression:...%ld -> %s\n" "Identifiant:..................%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Le fichier image \"%s\" n'a pu être trouvé" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Impossible de lire le fichier image" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informations sur l'image" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Erreur" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "A propos de Partition Image %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image est distribué selon la license GNU GPL 2 (General Public " "License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Auteurs:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Impossible d'ecrire le bloc %ld dans l'image" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Impossible d'ecrire %s dans l'image" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Impossible d'ecrire le bloc bitmap %ld dans l'image" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Impossiblde de lire le bloc bitmap %ld depuis l'image" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Impossible d'écrire le bloc %ld sur le disque dur" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Impossiblde de lire le bloc %ld à partir de l'image (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Impossible de lire %s depuis l'image" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Impossible de lire le SuperBlock" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Impossible d'ecrire le SuperBlock" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Impossible de lire le bloc %ld à partir de la partition" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Impossible de lire le bloc bitmap %ld à partir de la partition (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Impossible d'écrire le MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Impossible de lire le MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "N'est pas une partition %s . Vérifiez le type du systeme de fichier" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "La partition a été sauvegardée avec une version plus recente de Partition " "Image. Merci de télécharger la dernière version." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Erreur lors de l'écriture de l'image : disque plein !" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Impossible de détecter le systeme de fichier de %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Impossible d'écrire l'entête principale" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Impossible d'écrire la liste d'attente" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Impossible de lire la file d'attente" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Le fichier image que vous essayez de réstaurer est crypté. La version en " "cours ne gere pas l'encryptage. Merci de télécharger la derniere version de " "Partimage." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s n'est pas le premier volume de l'image. Merci de réessayer avec le volume " "numéro 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s n'est pas un fichier image valide" #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "La partition est trop petite pour etre restaurée:\n" "Taille de la partition originale:..........%llu octets\n" "Taille de la partition cible:.................%llu octets" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Une erreur s'est produite lors de la restauration:\n" "Les CRC64 sont différents. Le fichier image est endommagé:\n" "CRC64 original:.....%llu\n" "CRC64 actuel:........%llu " #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Numero de volume invalide (%ld au lieu de %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Erreur a la fermeture" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "La partition %s est déjà verouillée par un autre processus. Impossible de " "travailler dessus." #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Impossible d'ouvrir la partition %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Impossible de vérouiller la partition %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Impossible de lire l'entête principale: fichier image endommagé" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Impossible d'écrire les informations" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Impossible de lire les informations" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Impossible de lire MBR Magic : fichier image endommagé" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Attention" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Vous n'êtes pas loggé en root. Vous aurez l'erreur \"access denied\" au " "cours du processus." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nouveau volume" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Le volume a bien été changé.\n" "Ancien: %s\n" "Nouveau: %s/%s.%.3ld\n" "Pressez Entrée pour continuer" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Confirmation" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Voulez vous réellement restaurer %s à partir de l'image %s ?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "%s erreur dans le système de fichier." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partimage ne vérifiera pas la partition car %s n'existe pas." #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" "Partimage ne vérifiera pas la partition en raison d'un problème d'accès sur %" "s." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Le support de %s est experimental !" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "Le support de %s est en version Beta !" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Mode simulation" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Vous utilisez le mode simulation : aucune écriture ne sera effectuée" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "Le MBR est d'une importance capitale sur votre disque dur. En ecrivant un " "mauvais MBR vous risquez de perdre TOUTES les partitions de votre disque. Ne " "continuez QUE si vous êtes pas SUR de ce que vous faites. Pressez " "'Continuer' pour restaurer.\n" "Périphérique avec le MBR a restaurer:........%s [%llu]\n" "MBR original....................................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Le disque dur original ne correspond pas au disque courant. Le MBR que vous " "essayez de restaurer a été sauvegardé a partir d'un autre disque dur. Il est " "possible que le disque original et actuel n'aient pas la même taille ou ne " "soient pas sur le même périphérique (%s et %s). Continuer quand même ?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Réussi" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "Le MBR de [%s] a bien été restauré. Vous aurez sans doute besoin de " "redemarrer votre ordinateur si vous voulez que le systeme le prenne en " "compte." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Erreur: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Arrêt demandé par l'utilisateur" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Le fichier image %s existe déjà. Voulez vous l'écraser ?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Accès non autorisé" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Vous n'avez pas la permission d'écrire sur %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Niveau de compression invalide pour %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "Le fichier image %s est déjà ouvert" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "Le fichier %s trop court pour être un volume Partimage: impossible de lire " "l'entête" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" "Le fichier %s n'est pas un fichier partimage: la magic string ne correspond " "pas" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "Magic string ne correspond pas: erreur dans le fichier image [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" "le volume courant ne correspond pas à l'mage courante: mauvais identificateur" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Pas assez de memoire" #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "mot de passe incorrect/login refusé" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "Trop de clients connectés à Partimaged. Merci d'essayez plus tard" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Seuls les %s de 4096 octets par bloc volumes sont supportés. L'actuel est de " "%lu octets/bloc" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "La partition %s est déjà verouillé par un autre processus. Vous ne pouvez " "pas travailler dessus" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Erreur pendant la vérification des données: Numéro de bloc invalide. Un " "volume ou des informations ont été ignorés." #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Ce volume (%ld) n'est pas le: %ld escompté." #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Erreur de nom de domaine/IP !\n" "Le nom de domaine ne peut être joint (réessayez avec une IP)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "Pas de MBR trouvé dans le fichier image. Impossible de continuer" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Erreur(s) trouvées dans une partition" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Imposible de lire le MBR à partir du disque" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Système de fichier invalide ou endommagé %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Impossible de mettre à zéro le bloc sur le disque: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Connexion refusée par le serveur:options réseau incompatibles. Essayez de " "désactiver l'option de login sur le serveur avec '-L'" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Connexion refusée par le serveur: versions incompatibles" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Le fichier image a été crée avec une version plus recente (%s) de Partimage. " "Merci de le mettre à jour et de réessayer." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Le fichier image a été crée avec une version plus ancienne (%s) de " "PartImage. Vous devez utiliser l'ancienne version pour restaurer votre image " "ou la recréer avec la version actuelle." #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s n'est pas un fichier PartImage valide est endommagé. Il est impossible de " "continuer" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "Le fichier %s n'est pas un fichier régulier. Pour des raisons de sécurité il " "est impossible de continuer" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Impossible de monter %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Impossible de démonter %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Impossible de créer le fichier temporaire [%s]. Merci de vérifier qu'il y " "ait assez d'espace et que vous avez les droits d'accés." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "Impossible de créer le fichier temporaire [%s]. Disque saturé." #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Impossible de créer le fichier temporaire [%s]. Droits d'écriture non " "accordés" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" "Impossible de créer le fichier temporaire [%s]. Droits d'écriture non " "accordés." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Fichier trop grand (plus de 2 GB). Impossible de continuer. Ce probléme peut " "venir du noyau, de glibc ou du systeme de fichier où l'image est écrite" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Erreur inconnue %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Information de debugage Newt" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Continuer" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Oui" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Non" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partition à sauvergarder/restaurer" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Fichier image à créer/utiliser" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Tâche à réaliser:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Faire une image de la partition" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Restaurer la partition à partir d'une image" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Restaurer un MBR à partir d'une image" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Connexion au serveur" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Crypter les données du réseau avec SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL désactivé à la compilation" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL&login désactivé à la compilation." #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "IP/nom du serveur:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Port:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Suivant (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "A propos" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "Le champ \"Image\" est vide. Impossible de continuer" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "Le champ \"IP/Nom du serveur\" est vide. Impossible de continuer" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" "Le champ \"Port du serveur\" n'est pas un entier valide. Impossible de " "continuer" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Description de la partition" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Entrez une description de la partition sauvegardée" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Le texte ne peut être vide" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Mot de passe requis" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Entrez votre login" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Entrez votre mot de passe" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Disque plein! Impossible d'écrire le volume suivant (%s.%.3ld)\n" "sur %s\n" "Merci d'entrer un autre chemin (sans le nom de fichier):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Nouveau chemin de Volume" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "le port du serveur doit être compris entre 1 et 655535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Le mode de compression doit être 0 (aucun), 1(gzip) ou 2(bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Le mode de fin doit être 0 (attendre), 1(arrêter), 2(rebooter) ou 3" "(quitter)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "Le niveau de debug doit être 0(aucun), 1(utilisateur), 2(developpeur) ou 3" "(debugging)\n" #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Taille du volume: %llu octets (%ld Ko)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Version de Partition Image %s (soumis à la licence GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Impossible d'ouvrir le fichier de debugage.\n" #: src/client/main.cpp:529 #, fuzzy msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" "devfs est activé mais pas monté. Vous devriez le faire pour continuer. " "Monter devfs maintenant ? (En cas de doute ,pressez+ \"Annuler\")" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "délègue la mémoire tampon au disque" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "Restauration du MBR réussie" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulation" #: src/client/main.cpp:726 msgid "Operation" msgstr "Opération" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Erreur: Impossible d'arréter l'ordinateur" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Erreur: Impossible de redémarrer l'ordinateur" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Erreur: Impossible de redémarrer l'ordinateur" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Erreur: Impossible de redémarrer l'ordinateur" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- Soumis à la licence GPL 2 license (GNU General Public License) ----\n" "\n" "Systèmes de fichiers supportés:....ext2fs, reiserfs, fat16, fat32, ntfs" "(exp), hpfs\n" "\n" "Syntaxe: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: Sauvergarde un partition dans un fichier image\n" " - restore: Restaure une partition à partir d'un fichier image\n" " - restmbr: Restaure un MBR à partir d'un fichier image\n" " - imginfo: Affiche les informatiosn d'un fichier image\n" "* : Partition à sauver/restaurer (exemple: /dev/hda1)\n" "* : Fichier contenant les données. Peut être énorme\n" "\n" "Options:\n" "* -z, --compress (Niveau de compression du fichier image):\n" " -z0, --compress=0 (Aucune compression. Le fichier image peut être " "énorme)\n" " -z1, --compress=1 (Compression avec gzip. Fichier plus petit un peu plus " "lent) (defaut)\n" " -z2, --compress=2 (Compression avec bzip2.Fichier très compact mais " "compression très lente)\n" "* -c, --nocheck Ne pas verifier la partition avant la sauvegarde\n" "* -o, --overwrite Ecraser sans confirmation\n" "* -d, --nodesc Ne pas demander de description pour le fichier image\n" "* -V, --volume (Segmenter en plusieurs fichiers)\n" " -VX, --volume=X Créer des volumes avec une taille de X Ko\n" "* -w, --waitvol Attendre une confirmation après chaque volumes\n" "* -e, --erase Effacer les blocs vides avec des zeros\n" "* -m, --allowmnt Continuer meme si la partition est déjà montée. " "Dangereux !\n" "* -M, --nombr Ne pas créer de sauvegarde du MBR dans le fichier " "image\n" "* -h, --help Affiche l'aide\n" "* -v, --version Affiche la version\n" "* -i, --compilinfo Affcihe les options de compilations uilisées\n" "* -f, --finish (Action à réaliser si tout c'est bien déroulé):\n" " -f0, --finish=0 Attendre: ne rien faire d'autre\n" " -f1, --finish=1 Eteindre: Eteindre l'ordinateur\n" " -f2, --finish=2 reboot : Redémarrer l'ordinateur:\n" " -f3, --finish=3 quitter\n" "* -b, --batch Mode batch: L'interface utilisateur n'attend rien de " "l'utilisateur\n" "* -y, --nosync Ne pas synchroniser les disques à la fin des " "operations (dangereux !)\n" "* -sX, --server=X Donne l'ip du serveur partimaged\n" "* -pX, --port=X Donne le port d'écoute de partimaged\n" "* -g, --debug=X Option du niveau de debug X (defaut: 1):\n" "* -n, --nossl Desactiver le mode SSL pour le reseau.\n" "* -S, --simulate Mode simulation de la restauration\n" "* -aX, --automnt=X Montage automatique avec l'option X. Consultez la doc " "pour plus d'informations\n" #: src/client/main.cpp:894 msgid "stable" msgstr "stable" #: src/client/main.cpp:894 msgid "unstable" msgstr "instable" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s terminé avec succés:\n" "\n" "Temps écoulé:.........%s\n" "Vitesse:................%s/min\n" "Données copiées:....%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "Initialise les opérations. Veuillez patienter..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Sauvegarde la partition dans le fichier image..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "Initialise l'opération" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Impossible de lire MBR Magic : fichier image endommagé" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Impossible de lire l'entête principale: fichier image endommagé" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inode absent" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "L'inode %s n'existe pas. Partimage peut le créer pour vous. Vous pouvez " "utiliser la commande mknod. Voulez vous que cet inode soit crée pour vous " "maintenant ?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s n'est pas un périphérique." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "Vous n'avez pas accès à /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Une erreur est survenue à la lecture de /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "La partition %s est montée. PartImage ne peut pas travailler sur une " "partition montée. Démontez la avant s'il vous plait. Pour cela utilisez " "\"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "La taille des segments de volumes doit être un entier superieur à 1024 " "(taille >= 1024Ko)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" "Options d'automount invalide. Reportez vous au manuel pour plus de details" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" "Le second argument [%s] doit etre un périphérique valide (ex: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Le troisieme arguments {%s] doit etre un fichier valide (pas un repertoireni " "un lien symbolique,...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Quitter Partimage ?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Voulez vous arrêter l'operation en cours ?" #: src/client/fs/fs_base.cpp:346 #, fuzzy msgid "local check error" msgstr "Erreur de CRC local" #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Il y a une erreur de position dans la verification CCheck. Des données sont " "peut-être endomagées. Voulez vous continuer ?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "Erreur de CRC local" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Il y a une erreur de position dans la verification CCheck. Des données sont " "peut-être endomagées. Voulez vous continuer ?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Il y a une erreur de CRC dans le CCheck. Des données sont peux-être " "endomagées. Voulez vous continuer ?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "lecture des propriétés de la partition" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "verification du systeme de fichier avec fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "ecriture de l'entête" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "copie des blocs de données utilisés" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "lecture des informations de la partition" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Taille du bloc....................%llu octets\n" "Nombre total de blocs............%llu\n" "Nombre de blocs utilisés...........%llu\n" "Nombre de blocs libres...........%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sUtilisation de l'espace disque......%llu %%\n" "Espace utilisé..................................%s\n" "Espace libre....................................%s\n" "Taille Bitmap...................................%s\n" "Label..............................................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sNombre de groupe...............%lu\n" "Premier bloc..............................%lu\n" "Journalisation Ext3fs................%s\n" "Super bloc Sparse......................%s\n" "Support des fichiers larges.........%s\n" "Revision du systeme de fichier.....%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "oui" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "non" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Informations Ext3fs" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Informations Ext2fs" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Il y a eu une erreur pendant la lecture du bitmap" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sTaille d'un secteur...................%u\n" "Clusters par secteurs.................%u\n" "Nombre de secteurs reservés......%u\n" "Secteurs repertoire racine.........%lu\n" "Nombre de tables FAT..............%u\n" "Nombre total de secteurs..........%lu\n" "Secteurs pas FAT.....................%lu\n" "Nombres de clusters...............%lu\n" "Clusters utilisés......................%lu\n" "Clusters libres........................%lu\n" "Clusters endommagés.............%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "Informations sur la FAT" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Impossible de lire le secteur de boot" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "Le nombre de secteurs par clusters ne doit pas etre nul. Verifiez la " "partition à sauvegarder." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Impossible de lire le secteur d'information de structure de fichiers." #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s n'est pas une structure de fichier NTFS" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "Pas assez de memoire: nécessite %lu octets pour lire l'enregistrement" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Impossible de lire l'enregistrement $Bitmap MFT. Voulez vous effectuer une " "recherche experimentale (peut-être très long)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Impossible de trouver $bitmap avec la recherche experimentale" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Impossible d'utiliser l'enregistrement $bimap du fichier" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "$Bitmap de NTFS est trop petit" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Pas assez de memoire" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sBytes par secteur..............%u\n" "Secteurs par cluster..............%u\n" "Taille d'enregistement ...........%lu\n" "Attribut LCN de MFT..........%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "Informations NTFS" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Pas assez de memoire: necessite %lu octets pour lire l'enregistrement du " "fichier" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: \"Attribute List\" l'attribut n'est pas supporté" #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: L'option de compression pour DATA n'est pas nul: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Attribut de données residente non supporté" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: rocessRunList() a retourné -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Erreur dans readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "L'attribut \"filename\" doit etre résident !" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "recherche de l'enregistrement $bitmap" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "recherche experimentale reussie" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sversion HPFS:.................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "information HPFS" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "impossible de lire le bloc de boot" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Impossible de lire le super bloc" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Impossible de lire le bloc de secours" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Nombre magique HPFS invalide. Ce n'est pas une partition HPFS valide." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "Informations Reiser FS" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "Informations JFS" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sNombre de groupe d'allocation:.......%lu\n" "Blocs par groupes d'allocations:..........%lu\n" "Taille du groupe d'allocation:...............%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "Informations XFS" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "En attente ..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "erreur !" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "mesure l'espace ..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "écriture ..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "ouverture pour écriture ..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "sauvegarde" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "lecture ..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "fermeture ..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "ouverture pour lecture ..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "restauration" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "fini" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Client #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Etat" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Hôte" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Localisation" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Taille" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "en attente" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Erreur de segmentation. Merci de reporter ce bug et envoyez le fichier [%s] " "aux auteurs.\n" #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- soumis à la licence GPL 2 license (GNU General Public License) ----\n" "\n" "syntaxe: partimaged [options]\n" "\n" "Options:\n" "* -h, --help affiche l'aide\n" "* -v, --version affiche la version\n" "* -pX, --port=X port d'écoute su serveur (par defaut : %d)\n" "* -D, --daemon démarre en mode daemon,pas en avant plan\n" "* -r dir, --chroot dir utilise chroot pour améliorer la securité\n" "* -g, --debug=X selectionne le niveau de debug a X (defaut: 1)\n" "* -L, --nologin désactive login pour les clients\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Impossible d'ouvrir le fichier de log %s: %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Corrigez l'erreur et recommencez \n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "impossible de trouver l'utilisateur \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "ajoutez le et recommencez\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Attention: impossiblde changer euid car vous n'avez pas executé en tant que " "root\n" "Attendez vous à des accés interdits ou problemes similaires.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Daemon version %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Daemon version %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(soumis à la licence GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Attente d'un client ..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "Trop de client connectés" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: Options de compilation utilisées ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Systemes de fichiers supportés:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Support Ext2fs: basé sur la librairie libext2fs\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Support Ext2fs: code interne\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Options de debug:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - DEVEL ACTIVE\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - DEVEL DESACTIVE\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "vrai" #: src/shared/common.cpp:106 msgid "false" msgstr "faux" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Autres options:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - USERS MUST LOGIN\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - USERS DON'T LOGIN\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS non utilisé\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ENABLED\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL DISABLED\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ENABLED\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID DISABLED\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld octets" #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f KB" #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f MB" #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f GB" #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f TB" #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Octets" #~ msgid "mount: %s" #~ msgstr "monter: %s" #~ msgid "Overwrite image ?" #~ msgstr "Ecraser l'image ?" #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" partimage-0.6.8/po/da.po0000644000000000000000000020547611252653200013550 0ustar rootroot# Translation of partimage-da.po to Dansk # Translation of da.po to Dansk # Danish translation of Partition Image. # Copyright (C) 2001,2003, 2004 Free Software Foundation, Inc. # Gunner Poulsen , 2001,2003, 2004. # msgid "" msgstr "" "Project-Id-Version: da\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2004-02-09 07:40+0100\n" "Last-Translator: Gunner Poulsen \n" "Language-Team: Dansk \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.2\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Gendan MBR (Master boot record) pÃ¥ harddisken" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Disk med den MBR du vil genoprette" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Hvilken original MBR skal bruges" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Hvad skal gendannes:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Hele MBR" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Kan ikke læse \"/proc/partitions\" (%s). SÃ¥ du mÃ¥ køre Partion Image fra " "kommandolinjen. Tast \"partimage --help\" for hjælp." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Fortsæt (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Afslut (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Hovedvinduet (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "gem partition som spejlbilledefil" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Komprimeringsniveau" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Ingen (meget hurtig + meget stor fil)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Indstillinger" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Kontrollér partition før gemning" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Tilføj beskrivelse" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Overskriv uden at spørge" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Spejlbilledeopdelingstilstand" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Opdel automatisk (nÃ¥r der ikke er mere plads)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Intro-filer hvis størrelse er............" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "MB" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Vent efter hvert volumeskift" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Hvis alt lykkedes:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Vent" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Luk ned" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Genstart" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Afslut" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "Sidste" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Partition der skal gemmes:...........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Partitionens størrelse:.......%s = %llu byte" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Spejlbilledfil der skal oprettes.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Finder filsystem:........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Komprimeringsniveau:...........ingen" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Komprimeringsniveau:...........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Komprimeringsniveau:...........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Komprimeringsniveau:...........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Brugt tid:................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Resterende tid:.........%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Hastighed:.......................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Data kopieret:.................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Nuværende spejlbilledfil:..........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Spejlbilledfilens størrelse:.............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Tilgængelig plads til spejlbilledet:...%s = %llu byte" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "gendan partition fra spejlbilledfil" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Fjern frie blokke med værdien nul" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Simulering af gendannelsen (der skrives ingenting)" #: src/client/gui_text.cpp:662 msgid "simulate partition restoration from image file" msgstr "simulér gendannelse af partition fra spejlbilledfil" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Partition som skal gendannes:.............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Størrelse af den partition der skal gendannes:.....%s = %llu byte" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Spejlbilledfil der skal bruges.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Filsystem:......................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Partitionen var pÃ¥ enheden:..........%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Spejlbillede oprettet pÃ¥:.................%s\n" #: src/client/gui_text.cpp:687 #, fuzzy, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Partitionens størrelse:.......%s = %llu byte" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Brugt tid:................%s" # c-format #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Spejlbilledfil der skal oprettes.........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Hastighed:.......................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Data kopieret:.................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Nuværende spejlbilledfil:..........%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Komprimeringsniveau:................Ingen\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Komprimeringsniveau:...........gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Komprimeringsniveau:...........bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Komprimeringsniveau:...........lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Skift" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Annullér" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Indtast nyt filnavn" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Følgende spejlbilledfil eksisterer allerede.\n" "Vil du overskrive den eller ændre filnavn?\n" "Fil: %s\n" "Hvis du vil ændre filnavnet skrives den fulde sti\n" "(sti + filnavn) uden volumenummer til sidst, \n" "og tryk \"�dr\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Overskriv spejlbilledet?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Overskriv" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Følgende spejlbilledfil er lÃ¥st.\n" "�sker du at vente og prøve igen eller ændre filnavnet?\n" "Fil: %s\n" "Hvis du vil ændre filnavnet skrives den fulde sti\n" "(sti + filnavn) uden volumenummer til sidst, \n" "og tryk \"�dr\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "spejlbilledfilen er lÃ¥st" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Prøv igen" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "adgang til %s nægtet\n" "\n" "Vælg et andet katalog (sti uden filnavn):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "forkert sti" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Montér automatisk" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Tryk \"o.k.\" for at montere [%s] pÃ¥ [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "Forkert volume indsat" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "Du vil blive bedt om af fjerne mediet og indsætte det rigtige" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Kan ikke læse følgende volumefil:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Skriv en anden komplet sti (katalog og filnavn)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Volume ikke fundet" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Intet flag sat" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Ingen beskrivelse" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "ingen" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "ukendt" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Filsystem:......................%s\n" "Beskrivelse:...................%s\n" "Oprindelig enhed:...........%s\n" "Oprindelig sti til filen:.....%s\n" "Flag:................................%ld: %s\n" "Oprettelsesdato:.............%s\n" "Partitionsstørrelse:.........%s\n" "Værtsnavn (Hostname):.%s\n" "Kompatibel version:........%s\n" "Krypteringsalgoritme:.....%ld -> %s\n" "Antal MBR gemt:............%lu\n" "\n" "Sikkerhedskopieret system:\n" "- maskine:.....................%s\n" "- styresystem :.............%s\n" "- version:......................%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Enhed:................%s\n" "Enhedsbloktal:...%llu\n" "Enhedsmodel:....%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "volumenummer:...........%lu\n" "Volumestørrelse:..........%s\n" "Komprimeringsniveau:.%ld -> %s\n" "Identifikation:.................%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Spejlbilledfilen \"%s\" kan ikke findes" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Kan ikke læse spejlbilledfil" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Informationer om spejlbilledet" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Fejl" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Om Partition Image %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image distribueres under GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "hjemmeside:.......http://www.partimage.org/\n" "\n" "Forfattere:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Kan ikke skrive blok %ld til spejlbilledet" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Kan ikke skrive %s til spejlbilledet" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Kan ikke skrive bitmapblok %ld til spejlbilledet" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Kan ikke læse bitmapblok %ld fra spejlbilledet" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Kan ikke skrive blok %ld pÃ¥ harddisken" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Kan ikke læse blok %ld fra spejlbillede (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Kan ikke læse %s fra spejlbilledet" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Kan ikke læse superblok" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Kan ikke skrive superblok" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Kan ikke læse blok %ld fra harddisk-partition" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Kan ikke læse bitmapblok %ld fra harddisk-partition (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Kan ikke skrive MBR" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Kan ikke læse MBR" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Det er ikke en %s partition. Tjek filsystemtypen" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "Denne partition er gemt med en nyere version af Partion Image. Hent venligst " "en nyere version." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "" "Der opstod en fejl under skrivningen af spejlbilledfilen: disken er fuld!" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Ude af stand til at fastslÃ¥ filsystemtypen for partitionen %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Kan ikke skrive hovedindledningen" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Kan ikke skrive filafslutningen (main tail)" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Kan ikke læse filafslutningen (main tail)" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Dette spejlbilled er gemt krypteret. Denne version af Partition Image " "understøtter ikke kryptering. Hent venligst en nyere version." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" "%s er ikke det første volume af dette spejlbillede. Start med volume nr. 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s er ikke en brugbar partitions-spejlbilledfil." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Denne partition er for lille til at blive gendannet:\n" "Den oprindelige partitions størrelse:...%llu byte\n" "Slutpartitionens størrelse:...................%llu byte" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Der opstod en fejl under gendannelsen:\n" "CRC64 er forskellige, spejlbilledfilen er beskadiget:\n" "Oprindelig CRC64:........%llu\n" "Nuværende CRC64:......%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Forkert volumenummer (%ld i stedet for %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Fejl ved lukning" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" "Partitionen %s er allerede lÃ¥st af en anden proces. Kan ikke arbejde med den" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Kan ikke Ã¥bne partition %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Kan ikke lÃ¥se partition %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Kan ikke læse hovedindledningen: Spejlbilledfilen er beskadiget" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Kan ikke skrive spejlbilledinformationen" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Kan ikke læse spejlbilledinformationen" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Kan ikke læse MBR Magic: Spejlbilledfilen er beskadiget" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "Kendt fejl" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" "Kan ikke genoprette MBR fra en spejlbilledefil komprimeret med bzip2. Du " "skal ændre kompressionsniveau." #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Advarsel" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Du er ikke logget ind som root. Du fÃ¥r muligvis \"adgang nægtet\"-fejl hvis " "du fortsætter" #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Nyt volume" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Volumet er ændret.\n" "Gammelt: %s\n" "Nyt:.......... %s/%s.%.3ld\n" "Tryk Retur for at fortsætte" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Bekræftelse" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "�sker du virkeligt at gendanne %s fra denne spejlbilledfil %s?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "%s fandt fejl i filsystemet." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partimage vil ikke undersøge partionen fordi %s ikke eksisterer," #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" "Partimage vil ikke undersøge partionen. Eksekveringsrettigheder mangler pÃ¥ %" "s." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Den nuværende understøttelse af %s er kun eksperimentel!" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "Understøttelse af %s er kun eksperimentel!" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simuleringstilstand" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "" "Du er i simuleringstilstand: Der vil ikke blive skrevet noget pÃ¥ disken" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "MBR er en meget vigtig del af harddisken. Hvis du skriver en defekt MBR, vil " "du miste alle partitioner pÃ¥ harddisken. Fortsæt IKKE, med mindre du ved " "hvad du laver. Tryk pÃ¥ 'Fortsæt' for at gendanne.\n" "Enhed med den MBR der skal gendannes:...%s [%llu]\n" "Oprindelig MBR:.............................................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Den oprindelige harddisk er ikke den samme som denne. Den MBR du er i gang " "med at genoprette er gemt fra en anden harddisk. Det betyder at den " "oprindelige og den nuværende harddisk ikke er lige store, eller de er ikke " "tilsluttet samme enhed (%s og %s). Vil du fortsætte?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Succes" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "Det er lykkedes at gendanne MBR pÃ¥ [%s]. Du skal sikkert genstarte " "computeren,hvis du vil have styresystemet til at bruge den nye MBR." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Fejl: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Handlingen blev afbrudt af brugeren" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "Spejlbilledfilen %s eksisterer allerede. Skal den overskrives?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Adgang nægtet" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Du har ikke skriveadgang til %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Forkert komprimeringsniveau for %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "Spejlbilledfilen %s er allerede Ã¥ben" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "filen %s er for kort til at være et partimage-volume: kan ikke læse " "filindledningen" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "%s er ikke et partimage-volume: magic string passer ikke" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "magic string er ikke identisk: fejl i spejlbilledfilen [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" "det nuværende volume passer ikke til spejlbilledet: forkert identifikation" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Løb tør for hukommelse." #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "forkert adgangskode eller brugeren er ikke filen partimagedusers" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" "Der er i øjeblikket for mange klienter tilsluttet partimaged. Prøv igen " "senere" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" "Der er kun understøttelse af %s volumener med 4096 byte per blok. Denne har %" "lu byte/blok" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" "Partitionen %s er allerede lÃ¥st af en anden proces. Kan ikke arbejde med den" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" "Der opstod en fejl under undersøgelse af data: Forkert blokantal. MÃ¥ske er " "et volume eller nogle data sprunget over." #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Dette volume (%ld) er ikke det forventede: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Fejl i værtsnavn/IP-adresse\n" "MÃ¥ske kunne værtsmavnet ikke findes. (Prøv igen med IP-adressen)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "" "Der blev ikke fundet nogen MBR i dette spejlbillede. Kan ikke fortsætte" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Undersøgelsen af partitionen('erne) fandt fejl pÃ¥ partitionen('erne)" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "Kan ikke læse MBR fra disken" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Ugyldigt filsystem %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Umuligt at nulstille denne blok pÃ¥ harddisken: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Forbindelse nægtet af serveren: netværksindstillingerne er forkerte. Prøv at " "fjerne login-muligheden for serveren med '-L'" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Forbindelse nægtet af serveren: forkert version" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Dette spejlbillede er lavet med en nyere version af Partition Image (%s). " "Opdatér programmet og prøv igen." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Beklager, dette spejlbillede er lavet med en ældre version af Partition " "Image (%s).Du skal bruge den gamle version til at gendanne spejlbilledet, " "eller du mÃ¥ lave et nyt spejlbillede med denne version." #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s er ikke en brugbar partitions-spejlbilledfil, eller den er beskadiget. " "Kan ikke fortsætte" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" "Filen %s er ikke en almindelig fil. Af sikkerhedsgrunde fortsættes der ikke" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Kan ikke montere %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Kan ikke afmontere %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Kan ikke oprette temp-fil [%s]. Undersøg om der er plads nok, og om du har " "skriveadgang." #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "Kan ikke oprette temp-fil [%s]. Der er ikke mere plads pÃ¥ enheden." #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Kan ikke oprette temp-fil i [%s]. Brugeren 'partimag' har ikke skriveadgang" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "Kan ikke oprette temp-fil i [%s]. Skriveadgang nægtet." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Kan ikke fortsætte. Filen er for stor. (Større end 2 GB). Problemet kan " "stamme fra din kerne, glibc eller det filsystem spejlbilledfilen skrives pÃ¥" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Ukendt fejl %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Newt fejlfindings-information" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "O.k." #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Fortsæt" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Ja" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Nej" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Partition der skal gemmes/gendannes" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Spejlbilledfil der skal oprettes/bruges" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Handling der skal udføres:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Gem partitionen i en ny spejlbilledfil" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Gendan partition fra en spejlbilledfil" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "Gendan en MBR fra spejlbilledfilen" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Forbind til serveren" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Krypter data pÃ¥ netværket med SSL" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL-understøttelse blev i sin tid slÃ¥et fra ved oversættelsen" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL-&understøttelse slÃ¥et fra ved kompileringen" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "Serverens IP/navn:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Port: " #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Næste (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Om" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "\"Spejlbilled\"-feltet er tomt. Kan ikke fortsætte" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "\"Server IP-adresse/Navn\"-feltet er tomt. Kan ikke fortsætte" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "\"Server Port\"-feltet er ikke et gyldigt heltal. Kan ikke fortsætte" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "partitionsbeskrivelse" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Du kan tilføje en beskrivelse af den gemte partition" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Tekstfeltet mÃ¥ ikke være tomt" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Adgangskode kræves" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Skriv dit brugernavn" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Skriv din adgangskode" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Disk fuld! Kan ikke skrive næste volumefil (%s.%.3ld)\n" "til %s\n" "Skriv venligst stien til et nyt katalog (uden filnavnet):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Ny volumeplacering" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "serverporten skal ligge mellem 1 og 65535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Komprimeringen skal enten være 0 (ingen), 1(gzip) eller 2(bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Afslutningstilstanden skal enten være 0 (vent), 1(luk ned), 2(genstart) " "eller 3(afslut)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "Fejlfindings niveauet skal enten være 0(intet), 1(bruger), 2(udvikler) eller " "3(fejlsøgning)\n" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Volumets størrelse: %llu bytes (%ld MiB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image version %s (udgivet under GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Kan ikke Ã¥bne fejlfindingsfil.\n" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" "Du har slÃ¥et devfs til men ikke monteret det. Det skal gøres før du " "fortsætter. Du kan ogsÃ¥ starte op pÃ¥ en kerne ude devfs, hvis du har en." #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "gemmer buffer-cache pÃ¥ disken." #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "Det lykkedes at gendanne MBR" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulering" #: src/client/main.cpp:726 msgid "Operation" msgstr "Handling" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Fejl: Kan ikke lukke computeren ned" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Fejl: Kan ikke genstarte computeren" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "Fejl: Kan optælle de resterende partimages" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "FEJLHÃ…RNDTERING: genstart din computer" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- udgivet under GPL 2 licensen (GNU General Public License) ----\n" "\n" "Understøttede filsystemer:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), " "hpfs\n" "\n" "brug: partimage [tilvalg] \n" " partimage \n" "\n" "fx: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "fx: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "fx: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "fx: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "fx: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "fx: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Parametre:\n" "* :\n" " - save: Gem partitionens data i en spejlbilledfil\n" " - restore: genopret partitionen fra en spejlbilledfil\n" " - restmbr: genopret MBR fra en spejlbilledfil til harddisken\n" " - imginfo: vil oplysninger om en spejlbilledfil\n" "* : partition der skal gemmes/genoprettes (eksempel: /dev/hda1)\n" "* : fil hvor dataene læses/gemmes. Kan være meget stor\n" "\n" "tilvalg:\n" "* -z, --compress (spejlbilledfilens komprimeringsniveau):\n" " -z0, --compress=0 komprimér ikke: meget hurtig, giver meget stor " "spejlbilledfil\n" " -z1, --compress=1 komprimér med gzip: hurtig, giver lille spejlbilledfil " "(standard)\n" " -z2, --compress=2 (komprimér med bzip2: meget langsom, giver meget lille " "spejlbilledfil):\n" "* -c, --nocheck undersøg ikke partitionen før den gemmes\n" "* -o, --overwrite overskriv den eksisterende spejlbilledfil uden at " "spørge\n" "* -d, --nodesc bed ikke om nogen oplysninger til spejlbilledfilen\n" "* -V, --volume (opdel spejlbilledfilen i flere volumefiler)\n" " -VX, --volume=X lav volumefiler af størrelsen X kb\n" "* -w, --waitvol vent pÃ¥ bekræftelse ved hvert skift af volume\n" "* -e, --erase fjern tomme blokke ved genoprettelse med zero byte\n" "* -m, --allowmnt fortsæt uanset om partitionen er monteret. Farligt!\n" "* -M, --nombr lav ingen sikkerhedskopi af MBR (Mast Boot Record) i " "spejlbilledfilen\n" "* -h, --help vis hjælp\n" "* -v, --version vis version\n" "* -f, --finish (handling der udføres hvis alt gÃ¥r godt):\n" " -f0, --finish=0 vent: lad være med at gøre noget som helst\n" " -f1, --finish=1 luk og sluk maskinen\n" " -f2, --finish=2 genstart maskinen:\n" " -f3, --finish=3 afslut.\n" "* -b, --batch automatisk tilstand: den grafiske grænseflade venter " "ikke pÃ¥ indtastninger\n" "* -y, --nosync lad være med at synkronisere diskene efter at " "programmet er færdigt (farligt)\n" "* -sX, --server=X angiv partimaged-serverens IP-adresse\n" "* -pX, --port=X angiv den port partimaged-serveren lytter pÃ¥\n" "* -g, --debug=X sæt fejlfindings-niveauet til X (standard: 1):\n" "* -n, --nossl slÃ¥ SSL fra i netværkstilstand\n" "* -S, --simulate simulation af gendannelse\n" "* -aX, --automnt=X automatisk montering med X som tilvalg. Læs " "dokumentationen for flere detaljer\n" "* -UX --username=X Brugernavn for adgang til serveren\n" "* -PX --Password=X Adgangskode til serveren\n" #: src/client/main.cpp:894 msgid "stable" msgstr "stable" #: src/client/main.cpp:894 msgid "unstable" msgstr "ustabil" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s afslutteder problemfrit:\n" "\n" "Brugt tid:................%s\n" "Hastighed:..........%s/min\n" "Data kopieret:....%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "gør klar til at udføre handlingen handlingen. Vent venligst" #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "OmgÃ¥ bzip2-fejl" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" "PÃ¥ grund af en fejl kan du ikke gendanne MBR fra en spejlbilledfil " "komprimeret med bzip2 med mindre du kører bzip2 -d pÃ¥ den" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Gemmer partitionen i spejlbilledfil..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "opstarter handlingen" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "Fejl i hovedsporet" #: src/client/misc.cpp:1002 msgid "Impossible to read the magic: the image is damaged" msgstr "Kan ikke læse magic: Spejlbilledfilen er beskadiget" #: src/client/misc.cpp:1016 msgid "CRC changed: the image is damaged" msgstr "CRC er ændret: Spejlbilledfilen er beskadiget" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "volume-nummeret er ændret: Spejlbilledfilen er beskadiget" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inode mangler" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "%s inode eksisterer ikke. Partimage kan lave den for dig. Du kan ogsÃ¥ lave " "den manuelt med kommandoen mknod. Skal denne inode laves for dig nu?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s er ikke en blokenhed." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "Du har ikke adgang til /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Der opstod en fejl under læsningen af /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "partitionen %s er monteret. Partition Image kan ikke arbejde pÃ¥ monterede " "partitioner. Afmontér partitionen først. Du kan gøre det med kommandoen " "\"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" "Størrelsen pÃ¥ opsplittede volumener skal være et heltal større end 1024 " "(størrelse >= 1024 kb)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Ugyldige automount-tilvalg. Læs detaljer i manualen" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "Det andet argument [%s] skal være en gyldig enhed fx /dev/hda1" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Det tredie argument [%s] skal være en almindelig fil (ikke et katalog, en " "symbolsk henvisning eller andet)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Afslut Partimage?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "�sker du virkeligt at standse den nuværende operation?" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "lokal tjekfejl" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Det er umuligt at finde en lokal tjekstruktur. Dataene er mÃ¥ske beskadigede. " "Vil du fortsætte?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "lokal CRC-fejl" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Der var en positionsfejl i CCheck. Dataene er mÃ¥ske beskadigede. Vil du " "fortsætte?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "Der var en CRC fejl i CCheck. Dataene er mÃ¥ske beskadigede. Vil du fortsætte?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "læser partitionsegenskaber" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "undersøger filsystemet med fsck" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "skriver filhoved" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "kopierer data blokke i brug" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "læser partitionsoplysninger" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Blok størrelse...................%llu byte\n" "Totalt antal blokke............%llu\n" "Antal brugte blokke..........%llu\n" "Antal ledige blokke..........%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%spladsforbrug:..%llu %%\n" "Brugt plads....................%s\n" "Ubrugt plads..................%s\n" "Bitmap størrelse...........%s\n" "Etikette..........................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sAntal grupper......%lu\n" "Første blok...........................%lu\n" "Ext3fs-journalisering............%s\n" "Superblok med huller...........%s\n" "Understøttelse af store filer..%s\n" "Filsystemrevision................%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "ja" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "nej" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Ext3fs-information" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Ext2fs-information" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Der opstod en fejl under læsning af bitmappen" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sSektorstørrelse..%u\n" "Sektorer per klynge..............%u\n" "Antal reserverede sektorer..%u\n" "Sektorer i rodkataloget.........%lu\n" "Antal FAT tabeller...............%u\n" "Totalt antal sektorer............%lu\n" "Sektorer per FAT................%lu\n" "Antal klynger.......................%lu\n" "Brugte klynger.....................%lu\n" "Ubrugte klynger...................%lu\n" "Beskadigede klynger..........%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "FAT-information" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Kan ikke læse boot-sektoren" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster mÃ¥ ikke være null. Undersøg om partitionen du vil gemme " "nu ogsÃ¥ er en FAT-partition." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Kan ikke læse FSinfo-sektoren" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s er ikke en NTFS-partition" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" "Løb tør for hukommelse: skal bruge %lu byte for at læse file record i " "readBitmap()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Ude af stand til at læse $Bitmap MFT record. �sker du at foretage en " "eksperimentel søgning efter den? (det kan tage lang tid)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "Kunne ikke finde $bitmap ved den eksperimentelle søgning" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Kan ikke bruge $bitmap file record" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS $Bitmap er for lille" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Løb tør for hukommelse" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%sbyte per sektor.......%u\n" "Sektorer per klynge.............%u\n" "File record størrelse...........%lu\n" "LCN of MFT Data attribut....%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "NTFS-information" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Løb tør for hukommelse: skal bruge %lu byte for at læse file record i " "readVolumeLabel()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: \"Attribut Liste\" attribut er endnu ikke understøttet" #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Komprimeringsflag for DATA-attribut er ikke null: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Resident data attribut er ikke understøttet" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() returnerede -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Fejl i readFilenameAttribute" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "\"filnavn\"-attributten skal være til stede!" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "søger efter $bitmap record" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "den eksperimentelle søgning lykkedes" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS version:.................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "HPFS-information" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Kan ikke læse opstartsblok" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Kan ikke læse superblok" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Kan ikke læse reserveblok" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Ugyldige HPFS magic numbers. Dette er ikke en gyldig HPFS-partition." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "ReiserFS-information" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "JFS-information" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sAntal grupper allokeret:.......%lu\n" "Blokke per allokeret gruppe...%lu\n" "Størrelse af allokerede grupper:........%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "XFS-information" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Venter..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "fejl!" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "hent pladsoplysninger..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "skriver..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "Ã¥bner til skrivning..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "gemmer" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "læser..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "lukker..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "Ã¥bner for læsning..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "genskaber" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "færdig" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Klient #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Tilstand" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Vært (host)" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Sted" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Størrelse" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "venter" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Forkert segmentation. Send en beskrivelse og filen [%s] til programmets " "forfattere\n" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image-dæmon (http://www.partimage.org/) version %s\n" "---- udgivet under GPL 2 licens (GNU General Public License) ----\n" "\n" "brug: partimaged [tilvalg]\n" "\n" "tilvalg:\n" "* -h, --help vis hjælp\n" "* -v, --version vis version\n" "* -d, --dest destinationsmappen\n" "* -pX, --port=X den port serveren lytter pÃ¥ (standard er %d)\n" "* -D, --daemon start som dæmon, ikke i forgrunden\n" "* -r dir, --chroot dir benyt chroot for at øge sikkerheden\n" "* -g, --debug=X sæt fejlsøgningsniveauet til X (standard: 1)\n" "* -L, --nologin slÃ¥ log-pÃ¥ fra klienter fra\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Umuligt at Ã¥bne logfilen %s: %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Ret dette og forsøg igen.\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "kan ikke finde bruger \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "tilføj og prøv igen\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Advarsel: Vi kunne ikke ændre euid fordi vi ikke var startet som root\n" "forvent at fÃ¥ nægtet adgang og problemer som disse.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image-dæmon version %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image-dæmon version %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(udgivet under GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Venter pÃ¥ klienten..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "for mange klienter tilsluttet" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: Tilvalg anvendt ved oversættelse ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" "\n" "* Version %s [%s.\n" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Understøttede filsystemer:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - understøttelse af Ext2fs : baseret pÃ¥ libext2fs biblioteket\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - understøttelse af Ext2fs: intern kode\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Fejlfindingsindstillinger:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - DEVEL ER SLÃ…ET TIL\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - DEVEL ER SLÃ…ET FRA\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "sand" #: src/shared/common.cpp:106 msgid "false" msgstr "falsk" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Andre tilvalg:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - BRUGERE SKAL LOGGE IND\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - BRUGERE SKAL IKKE LOGGE IND\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS bruges ikke\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ER SLÃ…ET TIL\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL ER SLÃ…ET FRA\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ER SLÃ…ET TIL\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID ER SLÃ…ET FRA\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld byte" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "%.2f kb" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "%.2f MB" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "%.2f GB" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "%.2f TB" #~ msgid "Kilo-Bytes" #~ msgstr "Kilobyte" #~ msgid "mount: %s" #~ msgstr "montér: %s" #~ msgid "Overwrite image ?" #~ msgstr "Overskriv spejlbillede?" #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" partimage-0.6.8/po/Rules-quot0000644000000000000000000000337611252653200014622 0ustar rootroot# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header partimage-0.6.8/po/eu.po0000644000000000000000000014421411256751452013601 0ustar rootroot# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Partimage\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2007-03-28 18:52+0100\n" "Last-Translator: \n" "Language-Team: David García-Abad\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 0.8\n" "X-Poedit-Language: Basque\n" "X-Poedit-Country: SPAIN\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Berrezarri MBRa disko gogorrera" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Berrezarri beharreko MBR-a daukan diskoa" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Erabili beharreko jatorrizko MBRa" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Zer nahi duzu berrezarri:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "MBR osoa" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" "Ezin da \"/proc/partitions\" (%s) irakurri. Beraz, komando lerroa erabili " "behar duzu Partition Image exekutatzeko. Idatzi \"partimage --help\" " "laguntza ikusteko." #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "(F5) Jarraitu" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "(F6) Irten" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "(F7) Leiho nagusia" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "Gorde partizioa irudi artxibo batera" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Konpresio maila" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Bat ere ez (oso arin + oso artxibo handia)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Aukerak" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Egiaztatu partizioa gorde aurretik" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Sartu deskribapen bat" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Gainidatzi galdetu gabe" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Irudi zatikatuaren modua" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Banaketa automatikoa (lekurik ez dagoenean)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Itxaron bolumen aldaketa bakoitzaren ondoren" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Arrakastaz bukatzen bada:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Itxaron" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Itzali" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Berrasi" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Irten" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Gorde beharreko partizioa:.........%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Partizioaren tamaina:.......%s=%llu byte" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Sortu beharreko irdudi artxiboa.........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Detektatutako artxibo sistema:......%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Konpresio maila:.............Bat ere ez" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Konpresio maila:............gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Konpresio maila:.............bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Konpresio maila:.............Izo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Iragandako denbora:.........%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Abiadura:...................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Kopiatutako datuak:.................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Erabilitako irudi artxiboa:...........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Irudi artxiboaren tamaina:...........%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Irudirako libre dagoen lekua:.....%s = %llu bytes" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "Berrezarri partizioa irudi artxibo batetik" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Ezabatu libre dauden blokeak zero balioekin." #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Berrezarpenaren simulazioa (ez da idazten)" #: src/client/gui_text.cpp:662 msgid "simulate partition restoration from image file" msgstr "Simulatu partizioaren berrezarpena irudi artxibo batetik" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Berrezarri beharreko partizioa:............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Berrezarri beharreko partizioaren tamaina:..........%s = %llu byte" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Erabili beharreko irudi artxiboa.................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Artxibo sistema:..................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Noiz sortu den irudia:......................%s \n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Jatorrizko partizoaren tamaina:...%s = %llu bytes" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Iragandako denbora:............%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Falta den denbora (estimatua).........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Abiadura:..................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Kopiatutako datuak:..................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Erabilitako irudi artxiboa:............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Konpresio maila:....................Bat ere ez\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Konpresio maila:............gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Konpresio maila:...............bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Konpresio maila:..........Izo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Aldaketa" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Ezeztatu" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Sartu artxiboaren izen berria" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Irudi artxiboa jada existitzen da\n" "Gainidatzi edo izena aldatu nahi duzu?\n" "Artxiboa: %s\n" "Artxiboaren izena aldatzeko, mesedez erabili path osoa\n" "(kokapena + artxiboaren izena) bukaeran bolumenaren zenbakia jarri gabe, \n" "eta sakatu \"Aldaketa\"" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Irudia gainidatzi?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Gainidatzi" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Ondoko irudi artxiboa blokeatuta dago.\n" "Itxaron eta berriro saiatu edo irudi artxiboaren izena aldatu nahi duzu ?\n" "Artxiboa:%s\n" "Artxiboaren izena aldatzeko, mesedez erabili path osoa\n" "(kokapena + artxiboaren izena) bukaeran bolumenaren zenbakia jarri gabe, \n" "eta sakatu \"Aldaketa\"" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "Irudi artxiboa blokeatuta" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Errepikatu" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "artxibo-bide okerra" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automatikoki muntatu" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Mesedez \"ok\" sakatu [%s] [%s] -n montatzeko" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "Ezin da ondoko bolumena irakurri:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Beste path oso bat sartu (direktorioa eta izena)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Bolumen ez aurkitua" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Deskribapenik gabe" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "Bat ere ez" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "ezezaguna" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Bolumenaren zenbakia:.........%lu\n" "Bolumenaren tamaina:.........%s\n" "Konpresio maila:...........%ld -> %s\n" "Identifikatzailea:.................%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "\"%s\" irudi artxiboa ezin da aurkitu" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Ezin da irudi artxiboa irakurri" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Irudiari buruko informazioak" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Errorea" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "Partition Image-i buruz %s" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image GNU GPL2 lizentziaren pean banatzen da ( General Public " "License)\n" "\n" "bertsioa:....%s\n" "web:.........http://www.partimage.org/\n" "\n" "Egileak:\n" "Fran?is Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Ezin da %ld blokea irudira idatzi" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Ezin da %s idatzi irudira" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Ezin da %s irakurri iruditik" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Ezin da Super Blokea irakurri" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Ezin da Super Blokea idatzi" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Ezin da MBR-a idatzi" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Ezin da MBR-a irakurri" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Ezin da detektatu %s partizioaren artxibo sistema" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Ezin da goiburu nagusia idatzi" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s ez da partizio irudi artxibo baliozko bat" #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Partizioa oso txikia da berrezarria izateko:\n" "Jatorrizko partizioaren tamaina:...........%llu byte\n" "Helburu partizoaren tamaina:.........%llu byte" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "" #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Errorea ixterakoan" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Ezin da %s partizioa ireki" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Ezin da irakurri goiburu nagusia: irudi artxiboa hondatuta dago" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Ezin dira informazioak idatzi" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Ezin dira informazioak irakurri" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Kontuz" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Bolumen berria" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Baieztapena" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simulazio modua" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Arrakasta" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Errorea:%s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Eragiketa kantzelatua erabiltzaileak eskatu bezala" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Atzipena debekatua" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Konpresio maila ez baliozkoa %s -rako" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Memoriatik kanpo" #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Ezin da %s muntatu" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Ezin da %s desmuntatu" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Errore ezezaguna %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "OK" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Jarraitu" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Bai" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Ez" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "*Gorde/berrezarri behar den partizioa" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "*Sortu/erabili beharreko irudi artxiboa" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Egin beharreko eragiketa:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Konektatu zerbitzariarekin" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Portua:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "(F5)Hurrengoa" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "Honi buruz" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Partizioaren deskribapena" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Idatzi dezakezu gordetako partizoaren deskribapen bat:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Pasahitza behar da" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Sartu zure logina" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Sartu zure pasahitza" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Bolumenaren kokapen berria" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulazioa" #: src/client/main.cpp:726 msgid "Operation" msgstr "Erakigeta" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Errorrea: Ezin da konputagailua berrasi" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "Errorea: ezin dira zenbatu gelditzen diren partimageak" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "DEBUG: berrasi konputagailua" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" #: src/client/main.cpp:894 msgid "stable" msgstr "Egonkorra" #: src/client/main.cpp:894 msgid "unstable" msgstr "Ezegonkorra" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "eragiketa hasieratzen. Itxaron, mesedez..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Partizoa irudi artxibo batera gordetzen..." #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "eragiketa hasieratzen" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 msgid "Impossible to read the magic: the image is damaged" msgstr "Ezin da \"magic\"-a irakurri: irudi artxiboa hondatuta dago" #: src/client/misc.cpp:1016 msgid "CRC changed: the image is damaged" msgstr "CRC aldatua: irudia hondatuta dago" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "" #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Partimagetik irten?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "CRC akats lokala" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "CRC akats lokala" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "Goiburua idazten" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "erabilitako datu blokeak kopiatzen" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "bai" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "ez" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Ezin da FSInfo sektorea irakurri" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "" #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "" #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "" #: src/server/partimaged.cpp:85 msgid "error !" msgstr "" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "" #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "" #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "" #: src/server/partimaged.cpp:157 msgid "saving" msgstr "" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "" #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "" #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "" #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "" #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" #: src/shared/common.cpp:80 msgid "\n" msgstr "" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr "" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr "" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr "" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr "" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr "" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr "" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr "" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr "" #: src/shared/common.cpp:105 msgid "true" msgstr "" #: src/shared/common.cpp:106 msgid "false" msgstr "" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr "" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr "" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr "" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr "" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr "" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr "" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr "" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "" #~ msgid "Kilo-Bytes" #~ msgstr "Kilo-Bytes" #, fuzzy #~ msgid "mount: %s" #~ msgstr "No se puede montar %s" #~ msgid "Overwrite image ?" #~ msgstr "¿Sobreescribir imagen ?" partimage-0.6.8/po/sk.gmo0000644000000000000000000007770211252653754013762 0ustar rootrootÞ•1¤ ™,‘¤·Êßó/"?by’¨ºËâø X—r M$'r'šPÂg‰{#Ë)tõ"j  ¨ 4Ä ù ÿ ! &!G!Z!$j!,!’¼!(O"x""¨"+Á"í"9#&=#-d#$’#·#Í#ä#-ü#*$?$V$m$+€$¬$Ä$%Û$"%$%C%\%t%Š%ž%6¥%]Ü%0:&k&{&‚”&'.'@'_'f'„''!Ÿ'"Á'!ä' ( '(4(.F(u( ~(Œ($¬($Ñ()ö( )q@)²)4Ï)9*$>**c*Ž* *³*Ä*"Ø*û*+ +]/+++ ¹+Ã+!ã+ ,, ,4,H,FY,$ ,‘Å,<W.”.©.».À.Å.Ü.%ö./mq>©ß>‰?@J/AGzAÂA\BB?ŸBVßBM6C „C+’C¾COD$oD=”DtÒDGE^ExoEèEíE F "F/Fw7F¯FÀFÑFMÕF9#G3]G!‘G³G"ÅG èGôG HH1H=7H@uH¶H ¿HÌHéHúHI*3I ^IMlI9ºIôI÷IüIJ 'J3JRJ!oJ ‘J›J¸J*¿JêJFñJ8KRKOWK§K¯K¸KÀK ÏK ÜKçK;ëK'M=MRMeMyMM5©M ßMNN0NFNWNhN!ˆNªN ÃNTÏNq$O–ON´OP+"PGNPh–PˆÿP#ˆQˬQtxRíS( T5T5TT ŠT•TªT½TÛT÷T'U-6U“dU2øU+VEV_V9{VµV6ÏV)W#0W&TW{W›W·W?ÒW"X5XQXmXX X½X+×X Y"$YGYbY!‚Y¤Y»YIÂYm Z.zZ©Z½Z‹ÜZh[~[‘[¯[!¶[Ø[á["ò["\!8\ Z\ {\†\-œ\ Ê\Õ\å\$]$*])O]y]g™]^,^&F^m^(Š^ ³^¿^Ù^ë^þ^_ _>_WR_'ª_ Ò_Ü_"ü_ `+`?`Q`c`Kr`$¾`ƒã`Ngb¶bÒbâbñbúb c%!cGcgc$‡c¬cÀcÔc#ñc$d::dTudÊd)éd)e=e LeXeie…e7•e;Íe0 f :f [fgff —f¢f3¦f Úfçf)öf8 gYgO\g¬gµg»g Êg ÖgFãgK*hvhhh ¥h °h$Ñh8öh-/i ]i$kii%°iÖi.åijj!j)j=j]j"vj™jŸj(¿j%èjPk _k ik+wk£k2«k-Þk2 l#?l(cl]Œlêlïlöl+m5:mCpm(´m*Ýmn –nr¡op'-pMUpË£pÒoq"Brfer¡Ìr„nsøós@ìt?-u{mu`éuAJvLŒvOÙv)w$2w’Wwêw$ xI/xgyxáxøxx yƒy‰y y µy ¿yŒÉy Vzazpz_tz0Ôz%{+{I{(b{ ‹{˜{·{$À{å{?î{T.| ƒ| |!š|¼|Ë|é|)} *}\6};“}Ï}Ó}Ú}ò} ~~-~"G~ j~t~Œ~&”~»~>Ä~ $K+w Š £ ±¾ci„¦è{#̇1 NX 9øIö dÅžË.gšÓ'â&<-­~Ï#ü}H;¤Àäfépj1(Š|ÉMûÝlGŽ÷ýÃ7 È2íœ"곃4¡ /Öv¢°—' @ç[ú08¸Äã*mþ•¶‚ò¹_ˆ¾ôDÙ×/™ ¨`^£-Úß6ª½†3h€ñÕZw.as›]µ\,Rt¼%ÒJP©$ÁB n”Ló)V‹’K?$®²* ºÔÆÎ¥–·ï% k §YÑî"ÍõëÇEŒÊŸ´e»…Ü)ùA ¿åð+FÞ‰z¬æboì>!áO(:‘C«+ØUW¯àq!SyQrÐ&± “Ûx5uÂTÿ0,˜= * Debug options: * Other options: - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - DEFAULT_DEBUG_LEVEL=%d - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read "/proc/partitions" (%s). Then, you must use the command line to run Partition Image. Type "partimage --help" for help.Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoConfirmationConnect to serverConnexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostIP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimagedPartition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluTime elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sadd it and retry checking the file system with fsckclosing ...copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missingm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: partimage 0.7.0 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2003-09-25 00:01+0100 Last-Translator: Milan Plzik Language-Team: Slovak MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit * Ladiace mo¾nosti: * Ïal¹ie mo¾nosti: - APPEND_PID=%s - CHEUID VYPNUTÉ - CHEUID ZAPNUTÉ - DEFAULT_DEBUG_LEVEL=%d - Podpora pre Ext2fs: zalo¾ená na knihovni libe2fs - Podpora Ext2fs: interný kód - PARTIMAGED_LOG=%s - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL VYPNUTÉ - SSL ZAPNUTÉ - U®ÍVATELIA SA NEPRIHLASUJÚ - U®ÍVATEIA SA MUSIA PRIHLÁSI« hµadanie záznamu $bitmap%lld bajtov%s úspe¹ne dokonèené: Pou¾itý èas:....%s Rýchlos»:.......%s/min Kopír. dát:.....%sChýba indode na %s. Partimage ho mô¾e vytvori». Mô¾ete tie¾ pou¾i» príkaz mknod. Mám teraz vytvori» tento inode ?%s nie je blokové zariadenie.%s nie je platný súbor Partition Image, alebo je po¹kodený. Nemô¾em pokraèova»%s nie je platný obraz oddielu%s nie je oddiel so súborovým systémom NTFS%s nie je prvý zväzok obrazu. Prosím, skúste znovu so zväzkom èíslo 000%sPpoèet alokaèných skupín:......%lu Blokov na alokaènú skupinu....%lu Veµkos» alokaènej skupiny.....%s %sbajtov na sektor..............%u Sektorov na cluster...........%u Veµkos» záznamu súboru........%lu LCN z MFT Data attrib........%llu %sHPFS verzia:..................%d %sPoèet skupín..................%lu Prvý blok.....................%lu Ext3fs ¾urnalizácia...........%s Sparse super block............%s Podpora dlhých súborov........%s Revízia súb. systému..........%lu %sVeµkos» sektora...............%u Sektorov na cluster...........%u Poèet rezervovaných sektorov..%u Sektorov koreòového adresára..%lu Poèet FAT tabuliek............%u Poèet sektorov................%lu Sektorov na FAT...............%lu Poèet clusterov...............%lu Pou¾ité clustery..............%lu Voµné clustery................%lu Po¹kodené clustery............%lu (distribuované pod GNU GPL 2) * Súbor s obrazom na vytvorenie/pou¾itie* Oddiel na ulo¾enie/obnovenie=== Partition Image: pou¾ité mo¾nosti kompilácie === O programeO Partition Image %sPrístup zamietnutýAkcia bola zru¹ená u¾ívateµomAkcia, ktorá sa má vykona»:Automatické pripojenieAutomatické delenie (keï nie je miesto)Dostupné miesto pre obraz:...%s = %llu bajtovVeµkos» bloku.................%llu bajtov Celk. poèet blokov............%llu Poèet vou¾itých blokov........%llu Poèet voµných blokov..........%llu Nemô¾em zisti» typ súborového systému v oddiele %sNemô¾em zamknú» oddiel %sNemô¾em otvori» oddiel %sNemô¾em naèíta» %s z obrazuNemô¾em preèita» MBR Magic: súbor s obrazom bol po¹kodenýNemô¾em naèíta» superblokNemô¾em naèíta» bitmapu bloku %ld z oddielu disku (%s)Nem¾em naèíta» bitmapu bloku %ld z obrazuNemô¾em naèíta» %ld z oddielu diskuNemô¾em z obrazu naèíta» blok %ld (%d)Nemô¾em preèíta» bootovací blokNemô¾em naèíta» boot sektorNemô¾em naèíta» informácieNemô¾em preèíta» hlavnú hlavièku: súbor s obrazom bol po¹kodenýNemô¾em preèíta» hlavné zakonèenieNemô¾em preèíta» spare blokNemô¾em preèíta» super blokNemô¾em naèíta» MBRNemô¾em preèíta» zväzok: %s %sNemô¾em zapísa» do obrazu %sNemô¾em zapísa» superblokNemô¾em zapísa» bitmapu bloku %ld do obrazuNemô¾em zapísa» na disk blok %ldNemô¾em zapísa» blok %ld do obrazuNemô¾em zapísa» informácieNemô¾em zapísa» hlavnú hlavièkuNemô¾em zapísa» hlavné zakonèenieNemô¾em zapísa» do MBRZru¹i»Nemô¾em vytvori» doèasný súbor [%s]. Na zariadení u¾ nie je voµné miesto.Nemô¾em vytvori» doèasný súbor [%s]. Prosím, skontrolujte voµné miesto a èi máte dostatoèné prístupové práva.Nemô¾em nájs» $bitmap experimentálnym hµadanímNemô¾em pripoji» %sNemô¾em otvori» ladiaci súbor Nemô¾em naèíta»"/proc/partitions" (%s). Na spustenie Partition Image musíte pou¾i» príkazový riadok. Napí¹te "partimage --help" pre pomoc Nemô¾em naèíta» obrazNemô¾em odpoji» %sNemô¾em pou¾i» záznam $bitmapZmeni»Skontrolova» oddiel pred ulo¾enímKlient #Úroveò kompresieÚroveò kompresie:...........®iadnaÚroveò kompresie:............bzip2Úroveò konpresie:............gzipÚroveò kompresie:............lzoPotvrdeniePripoji» sa k serveruSpojenie odmietnuté serverom: nezhodné verziePokraèova»Pokraèova» (F5)Aktuálny súbor s obrazom:....%sAktuálny súbor s obrazom:.........%sSkopírovaných dát:...........%s / %sSkopírovaných dát:................%s / %sZistený súborový systém:.....%sDisk je plný! Nemô¾em zapísa» ïal¹í zväzok(%s.%.3ld) do %s Prosím, zadajte inú cestu (bez mena súboru):Disk s MBR na obnovenieChcete naozaj zru¹i» prebiehajúcu operáciu ?Naozaj chcete obnovi» %s z obrazu %s ?©ifrova» dáta na sieti s SSLZadajte inú úplnú cestu (adresár a meno)Zada» popisZadajte nový názov súboruZadajte vá¹ loginZadajte va¹e hesloPremaza» voµné bloky nulamiChybaChyba v readFilenameAttributeChyba pri zatváraníChyba pri kontrolovaní dát: Chybné èislo bloku. Mo¾no bol preskoèený zväzok alebo dáta.Chyba pri zápise obrazu: disk je plný !Chyba: %sChyba: Nemô¾em zastavi» poèítaèChyba: Nemô¾em re¹tartova» poèítaèKoniec (F6)Odís» z partimage ?Ext2fs informácieExt3fs informácieFAT informácieSúbor %s nie je obyèajný súbor. Z bezpeènostných dôvodov nemô¾em pokraèova»Súborový systém:..................%sSúborový systém:.......%s Popis:.................%s Pôvodné zariadenie:....%s Pôvodná cesta:........ %s Príznaky:..............%ld: %s Dátum vytvorenia:......%sVeµkos» oddielu:.......%s Meno poèítaèa:.........%s Kompatibilná verzia:...%s ©ifrovanie:.....%ld -> %s Poèet ulo¾ených MBR:...%lu Systém zálohy: - poèítaè:.............%s - operaèný systém:.....%s - vydanie:.............%s Mód skonèenia musí by» 0 (èakanie), 1(zastavenie), 2(re¹tart) alebo 3(odchod) Opravte to a skúste znova. HPFS informácieZastav poèítaèHostiteµIP/meno servera:Ak sa skonèí úspe¹ne:Obraz bol vytvorený na:...........%s Veµkos» súboru s obrazom:....%sVytváraný súbor s obrazom....%sSúbor s obrazom...................%sInformácie o obrazeMód delenia obrazovZ disku na nedá preèíta» MBRNedá sa vynulova» blok na disku: %sDo súborov, ktorých veµkos» je:.....Chybné èarovné èísla HPFS. Toto nie je platný HPFS oddiel.Chybné mo¾nosti pre automatické pripojenie. Pre viac informácií si preèítajte manuálChybná úroveò kompresie pre %sChybný alebo po¹kodený súborový systém %sNeplatné èíslo zväzku (%ld namiesto %ld).JFS informácieUmiestnenieHlavné okno (F7)NTFS $Bitmap je príli¹ maláNTFS informácieNTFS: "Attribute List" atribút e¹te nie je podporovaný.NTFS: Príznak kompresie pre atribút DATA nie je nulový: %ldNTFS: Atribút "Resident data" nie je podporovanýNTFS: processRunList() vrálil -1Nový zväzokNové umiestnenie zväzkuLadiace informácie NewtÏalej (F5)NieV tomto obraze nebol nájdený MBR. Nemô¾m pokraèova»®iaden popis®iaden príznak®iadna (veµmi rýchle + veµmi veµký súbor)To nie je %s oddiel. Skontrolujte typ súborového systémuOkSú podporované iba %s zväzky s 4096 bajtmi na blok. Aktuálne je %lu bajtov/blokOperáciaVoµbyOriginálny MBRMálo pamäteMálo pamäte.Málo pamäte: potrebujem %lu bajtov na naèítanie záznamu v readBitmap()Málo pamäte: potrebujem %lu bajtov na naèítanie záznamu v readVolumeLabel()Prepísa»Prepísa» obraz ?Prepísa» bez pýtaniaPartimagedPartition Image Démon verzia %s Partition Image Démon verzia %s+SSL Partition Image verzia %s (distribuované pod GNU GPL2). Kontrola oddielu na¹la na oddieloch chybu(-y)Popis oddieluOddiel na obnovenie:..............%sOddiel na ulo¾enie:..........%sOddiel bol na zariadení:..........%s Potrebné hesloProsím stlaète "ok" na pripojenie [%s] na [%s]Port:OdchodRe¹tartReiserFS informácieObnovi» MBR zo súboru s obrazomObnovi» MBR na harddiskuObnovi» oddiel zo súboru s obrazomZnovuSSL bolo vypnuté pri kompiláciiUlo¾i» oddiel do nového súboru s obrazomUkladám oddiel do súboru s obrazom...Chyba segmentácie. Prosím zaznamenajte túto chybu a po¹lite súbor [%s] autorom SimuláciaSimulaèný módSimulácia obnovovania (nebude sa zapisova»)Veµkos»Veµkos» oddielu na obnovenie:.....%s = %llu bajtovVeµkos» oddielu:.............%s = %llu bajtovVeµkos» pôvodného oddielu:........%s = %llu bajtovRýchlos»:....................%s/minRýchlos»:.........................%s/minVeµkos» rozdeµovania zväzkov musí by» celoèíselná hodnota väè¹ia ako 1024(veµkost >= 1024 KB)StavÚspechText nemô¾e my» prázdnyPole "Obraz" je prázdne. Nemô¾em pokraèova»Pole "IP/meno servera" je prázdne. Nemô¾em pokraèova»V poli "Port" nie je platná celoèíselná hodnota. Nemô¾em pokraèova»Atribút "filename" musí bu» rezidentný !Obraz %s u¾ existuje. Chcete ho prepísa» ?Oddiel %s je pripojený. Partition Image nemô¾e pracova» na pripojených oddieloch. Najskôr ho, prosím odpojte. Mô¾ete to vykona» s "umount %s"MBR je veµmi dôle¾itá èas» disku. Ak zapí¹ete zlý MBR, stratíte v¹etky na va¹om disku. Nepokraèujte, pokiaµ presne neviete, èo robíte. Stlaète 'Pokraèova»' pre obnovenie. Zariadenie s MBR na obnovenie:......%s [%llu] Pôvodný MBR:........................%s [%llu]MBR z [%s] bol úspe¹ne obnovený. Budete musie» re¹tartova» poèítaè ak chcete, aby operaèný systém pou¾il nový MBR.MBR bol úspe¹ne obnovenýAktuálna podpora %s je experimentálna !Ladiaca úroveò musí by» 0(¾iadna), 1(u¾ívateµská), 2(vývojárska), 3(ladenie) Súbor s obrazom u¾ existuje. Chcete súbor prepísa», alebo zmeni» jeho meno ? Súbor: %s Pri zmene mena zadajte prosím úplnú cestu (umiestnenie + meno súboru) bez èísla zväzku na konci, a stlaène "Zmeni»"Súbor s obrazom je zamknutý. Chcete poèka» a skúsi» znovu, alebo zmeni» jeho meno ? Súbor: %s Pri zmene mena zadajte prosím úplnú cestu (umiestnenie + meno súboru) bez èísla zväzku na konci, a stlaène "Zmeni»"Súbor s obrazom "%s" nebol nájdenýObraz bol vytvorený nov¹ím vydaním (%s) Partition Image. Prosím, aktualizujte software a skúste znovu.Súbor s obrazom bol vytvorený star¹ou (%s) verziou Partition Image. Na obnovenie musíte pou¾i» star¹iu verziu alebo musíte obraz znovu vytvori» aktuálnou verziouObraz, ktorý ste sa pokúsili obnovi», je za¹ifrovaný. Aktuálna verzia nepodporuje ¹ifrovanie. Prosím, stiahnite si najnov¹iu verziu.Originálny harddisk nie je zhodný s aktuálnym harddiskom. MBR, ktorý sa pokú¹ate obnovi» bol ulo¾ený z iného disku. To znamená, ¾e pôvodný a aktuálny harddisk najú rozlièné veµkosti, alebo nie sú na tom istom zariadení (%s a %s) Chcete pokraèova» ?Oddiel %s je u¾ zamknutý iným procesom. Nemô¾ete na òom pracova»Oddiel %s je u¾ zamknutý iným procesom. Nemô¾em na òom pracova»Oddiel je na obnovenie príli¹ malý: Pôvodná veµkos» oddielu:........%llu bajtov Veµkost cieµového oddielu:......%llu bajtovOddiel bol ulo¾ený pomocou nev¹ej verzie Partition Image. Prosím, stiahnite si najnov¹iu verziu.Druhý argument [%s] musí by» platné zariadenie (napr.: /dev/hda1)Tretí argument [%s] musí by» platný obyèajný súbor (NIE adresár, symlink,...Zväzok bol zmenený. Starý: %s Nový: %s/%s.%.3ld Stlaète Enter pre pokraèovanieCelý MBRVyskytla sa chyba pri èítaní bitmapyPri obnovovaní oddielu sa vyskytla chyba: CRC64 sú rozdielne - súbor s obrazom je po¹kodený: Originálny CRC64:.....%llu Aktuálny CRC64:.......%lluPou¾itý èas:.................%sPou¾itý èas:......................%sNa partimaged je pripojených príli¹ veµa klientov. Skúste, prosím, neskôrNemô¾em naèíta» $Bitmap MFT záznam. Chcete ho skúsi» experimentálne hµada» ? (Mô¾e to trna» veµmi dlho)Neznáma chyba %d -> %sZväzkok nenájdenýÈíslo zväzku:..........%lu Veµkos» zväzku:........%s Úroveò kompresie:. ....%ld -> %s Identifikátor:.........%llu=%llX ÈakajÈaka» po ka¾dom zväzkuÈakám na klienta ...Èakám ...VarovanieVarovanie: nedá sa zmeni» euid, preto¾e program nebol spustený ako rootovský èakajte zamietnutia prístupu alebo nejaké iné chyby ako tieto. Èo obnovi»XSF informácieÁnoNie ste prihlásený ako root. Pri va¹ej práci sa mo¾u syskytnú» chyby ako "Prístup zamietnutý".Pou¾ívate simulaèný mód: niè sa nebude zapisova»Mô¾ete zada» popis ulo¾eného oddielu:Nemáte prístup na zápis na %spridajte a skúste znova kontrolujem súborový systém pomocou fsckzatváram ...kopírujem pou¾ité dátové blokychhyba !experimentálne hµadanie bolo úspe¹nénepravdasúbor %s nie je obraz z partimage: èarovné re»azce sa nezhodujúsúbor %s je príli¹ krátky na to, aby bol zväzok partimage: nemô¾em preèíta» hlavièkudokonèenégetspace ...Súbor s obrazom %s je u¾ otvorenýobraz zamknutýnomô¾em nájs» u¾íveteµa "%s" inicializujem operáciuinicializujem operáciu. Prosím èakajte...chýba inodem_cSectorsPerCluster nemô¾e by» nulový. Skontrolujte, èi oddiel, ktorý chcete ulo¾i» je FAT.èarovné re»azce as nezhodujú: chyba v súbore s obrazom [%s]nie¾iadenotváram pre èítanie ...otváram pre zápis ...èítam ...èítam informácie o oddieleèítam vlastnosti oddielovobnovi» oddiel zo súboru s obrazomobnovujemulo¾i» oddiel do súboruukladámport servera musí by» medzi 1 a 65536 stabilnéaktuálny zväzok nepatrí k aktuálnemu obrazu: zlý identifikátorpripojených príli¹ veµa klientovpravdanemô¾em získa» prístup k %s Prosím zadajte iný adresár (bez názvu súboru):neznámynestabilnéèakámzapisujem hlavièkuzapisujem ...chybná cestaánopartimage-0.6.8/po/Makefile.in.in0000644000000000000000000003170711252653200015270 0ustar rootroot# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2005 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.14.4 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: partimage-0.6.8/po/fi.gmo0000644000000000000000000012414511252653754013735 0ustar rootrootÞ•R¬ É<`acv‰©¼Ñå2/E"u˜¯Îçý 7M cXn#Ç—ëƒM'ë' P; gŒ ‰ô #~!Ë¢!tn"¬ã#"$³$Î$ƒê$4n%£%©% Â% Ð%ñ%.&3&$C&,h&’•&(('Q'i''š'+³'ß'9õ'&/(-V($„(©(¿(Ö(-î()1)H)_)+r)ž)¶)%Í)"ó)*5*N*f*|**6—*]Î*K,+8x+0±+â+ò+ ,",4,S,Z,x,,'“,'»,&ã,% -!0-"R-!u- —-5¸- î-û-m ..{.ª. ³.Á.$á.$/)+/U/qu/ç/40990$s0*˜0Ã0Õ0è0ù0" 10161U1]d1+Â1 î1ø1!2:2$Z2 2‰2š2®2Â2FÓ2$3–?3‘Ö3<h5¥5º5Ì5Ñ5[Ö526I6%c6‰6©6$É6î67"7 57-V7%„77ª7;â7 8 ?8+`8Œ88¦8·8»8Ô86æ879+U9"9 ¤9¯9Ã9 Ú9ä95ç9: ,: 8:-Y:‡:RŠ: Ý:ç:ï: ;;A ;Fb; ©;³;Ä;;Ý;G< a< l<"pH&“H=ºH-øH&I$]Z]=`]@ž]ß] è]õ]^#^A^*\^ ‡^•^M¥^9ó^-_0_5_J_ `_l_‹_!¨_ Ê_Ô_ñ_*ø_#`F*`q`‹`O`à`è`ñ`ù` a a aW$a|b~b“b&¤bËbÞbóbc$c@cTc.gc!–c¸c"Ïcòc d!d3dDd#[dd ‘dbœd.ÿd.e®eQÃe0f(FfEofXµf•g"¤gäÇg“¬h²@j"ój k!7k€Yk4Úkll.l.>lml†l¥l+¿l.ël™m+´màmømn(n7En}n9—n+Ñn)ýn%'oMogoƒo9˜oÒoæopp'/pWptp/“p$Ãp$èp q'qGq`qzq@‚qpÃq[4r@r(Ñrúr!s0sMs#as…sŒs¬s µs,Ás îs$t4t!Stut‘t¬t6Æt ýtuqu-Žu¼u Âu$Íu)òu'v)Dv.nvzvw/3w6cw$šw0¿wðw÷wxx'x=xCxcx4vx6«x âx'ìx2y Gyhy †y’y ©y ·y Åy>Ðy,z„4 s$‘2¶éFì 3‚ =‚#G‚ k‚ x‚A†‚NÈ‚ ƒ#ƒ6ƒ-UƒBƒƒ ƃ» у!%¯<Õ) <#I%m'“»+Îú‘ ‘‘/‘M‘f‘ …‘‘/®‘%Þ‘#’R(’ {’†’'•’½’-Â’$ð’-“C“&c“FŠ“Ñ“Ö“ß“%ù“3”4S”/ˆ”:¸”Ÿó”-“•|Á–>— [—!|—\ž—ñû—íí˜Û™jú™§ešo ›}›E‚œ3Èœoüœ\lBÉV žBcž¦žF¯žJöž&AŸ˜hŸ$ $& AK _ í ¡o¡Ž¡”¡¯¡ ǡա–Þ¡u¢ ˆ¢“¢eš¢:£-;£#i£,£º£-×£ ¤¤3¤;¤U¤L^¤I«¤ õ¤ÿ¤¥.¥H¥f¥{¥ 𥍥M¾¥@ ¦M¦ P¦\¦u¦ ”¦ ¦´¦Ц ï¦û¦ §3(§\§<b§ Ÿ§À§Dŧ ¨ ¨ ¨)¨>¨O¨^¨,>Ì?ŠL=Ç¿½88Gj²%@çog$"xe-ò;>íÄ®×ñ–.šºÅÜsª4*Q2#Ž¢¾PSY13“a¥éÍŸ´GOÈøHõL/ÚB”IR§r¯<q¼ï†áîDúàJ¬}«&€µâQ"{A0  mJ!Ö©Ð3ߣh I‚‹NÕ ~#'X)¡•¶CO—V EFC`)¸åy,­Àˆ| \œkôÎ ûÿlÑ<RH&:f(%ê-z= w÷NcEv¨ÞÝ’ZËùbäU5ØþÂ;+˜d‰·„Û¤Ù™9ýóž$M]Óϱ5(7+4u6Òi'D7[…KÔöP!Á Œ_æ‡A.» ³W0T29ãìB:°ü ?^ðKÉM¦F› t‘ènƒëpÊÆ*16¹Ã/@ * Debug options: * Other options: * Supported file systems: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs support: based on libext2fs library - Ext2fs support: internal code - PARTIMAGED_LOG=%s - PARTIMAGED_USERS not used - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - USERS MUST LOGIN $bitmap record search%lld bytes%s successfully finished: Time elapsed:...%s Speed:..........%s/min Data copied:....%s%s found errors on the file system.%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod command. Do you want this inode to be created for you now ?%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not a valid partition image file.%s is not an NTFS file system partition%s is not the first volume of an image. Please, retry with the volume number 000%sAllocation Group count:.......%lu Blocks per Allocation Group...%lu Allocation Group size:........%s %sBytes per sector..............%u Sectors per cluster...........%u File record size..............%lu LCN of MFT Data attrib........%llu %sHPFS version:.................%d %sNumber of groups..............%lu First block...................%lu Ext3fs journalization.........%s Sparse super block............%s Large files support...........%s File system revision..........%lu %sSector Size...................%u Sectors per cluster...........%u Reserved Sectors count........%u Root directory sectors........%lu FAT tables count..............%u Total Sectors Count...........%lu Sectors per FAT...............%lu Clusters count:...............%lu Used clusters.................%lu Free clusters.................%lu Damaged clusters..............%lu %sSpace usage:..................%llu %% Used space....................%s Free space....................%s Bitmap size...................%s Label.........................%s (distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore-------------------- MBR %.3d ------------------- Device:................%s Device blocks count:...%llu Device model:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction canceled as user requiredAction to be done:An error occurred trying to read /proc/mounts.Automatic mountAutomatic split (when no space left)Available space for image:...%s = %llu bytesBlock size....................%llu bytes Total blocks count............%llu Used blocks count.............%llu Free blocks count.............%llu Can't detect file system of partition %sCan't lock partition %sCan't open partition %sCan't read %s from imageCan't read FSInfo sectorCan't read MBR Magic: imagefile was damagedCan't read SuperBlockCan't read bitmap block %ld from harddrive partition (%s)Can't read bitmap block %ld from imageCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read main tailCan't read spare blockCan't read super blockCan't read the MBRCan't read the following volume file: %s %sCan't write %s to imageCan't write SuperBlockCan't write bitmap block %ld to imageCan't write block %ld to harddriveCan't write block %ld to imageCan't write informationsCan't write main headerCan't write main tailCan't write the MBRCancelCannot create temp file [%s]. No space left on device.Cannot create temp file [%s]. Please, check there is space enough and you have access rights.Cannot create temp file in [%s]. Write access is denied for user 'partimag'Cannot create temp file in [%s]. Write access is denied.Cannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingClient #Compression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression level:................lzoCompression level:...........NoneCompression level:...........bzip2Compression level:...........gzipCompression level:...........lzoCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationConnect to serverConnexion refused by server: incompatibles networking options.Try disabling login option for server with '-L'Connexion refused by server: versions mismatchContinueContinue (F5)Current image file:..........%sCurrent image file:...............%sData copied:.................%s / %sData copied:......................%s / %sDetected file system:........%sDisk full! Can't write next volume file (%s.%.3ld) to %s Please, enter another directory path (without filename):Disk with the MBR to restoreDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Encrypt data on the network with SSLEnter another full path (directory & name)Enter descriptionEnter new filenameEnter your loginEnter your passwordErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while checking the data: Invalid block number.Maybe a volume or some data were skipped.Error while writing image file: disk full !Error: %sError: Cannot halt the computerError: Cannot reboot the computerEstimated time remaining:....%sEstimated time remaining:.........%sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile %s is not a regular file. For security reasons, we can't continueFile system:......................%sFile too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is writtenFilesystem:............%s Description:...........%s Original device:.......%s Original filepath:.... %s Flags:.................%ld: %s Creation date:.........%sPartition size:........%s Hostname:..............%s Compatible Version:....%s Encryption algorithm:..%ld -> %s MBR saved count:.......%lu System of the backup: - machine:.............%s - operating system:....%s - release:.............%s Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) Fix this and retry. HPFS informationsHaltHostHostname/IP Error! Perhaps the hostname could not be resolved. (Try again using IP address)IP/name of the server:If finished successfully:Image created on:.................%s Image file size:.............%sImage file to create.........%sImage file to use.................%sImage informationsImage split modeImpossible to open logfile %s: %s Impossible to read MBR from diskImpossible to zero the block on harddrive: %sInto files whose size is:............Invalid HPFS magic numbers. Not a valid HPFS partition.Invalid automount options. Read the manual for more detailsInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsLocationMain window (F7)MiBNTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNewt debug informationNext (F5)NoNo MBR was found in this imagefile. We can't continueNo descriptionNo flag setNone (very fast + very big file)Not a %s partition. Check the filesystem typeOkOnly 4096 bytes per block %s volumes are supported. Current one is %lu bytes/blockOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartimage will not check partition because %s does't exist.Partimage will not check partition because of run access denied for %s.PartimagedPartition Image (http://www.partimage.org/) version %s [%s] ---- distributed under the GPL 2 license (GNU General Public License) ---- Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs usage: partimage [options] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: save the partition datas in an image file - restore: restore the partition from an image file - restmbr: restore a MBR of the image file to an hard disk - imginfo: show informations about the image file * : partition to save/restore (example: /dev/hda1) * : file where data will be read/written. can be very big Options: * -z, --compress (image file compression level): -z0, --compress=0 don't compress: very fast but very big image file -z1, --compress=1 compress using gzip: fast and small image file (default) -z2, --compress=2 (compress using bzip2: very slow and very small image file): * -c, --nocheck don't check the partition before saving * -o, --overwrite overwrite the existing image file without confirmation * -d, --nodesc don't ask any description for the image file * -V, --volume (split image into multiple volumes files) -VX, --volume=X create volumes with a size of X KB * -w, --waitvol wait for a confirmation after each volume change * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt don't fail if the partition is mounted. Dangerous ! * -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file * -h, --help show help * -v, --version show version * -i, --compilinfo show compilation options used * -f, --finish (action to do if finished successfully): -f0, --finish=0 wait: don't make anything -f1, --finish=1 halt (power off) the computer -f2, --finish=2 reboot (restart the computer): -f3, --finish=3 quit * -b, --batch batch mode: the GUI won't wait for an user action * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debug=X set the debug level to X (default: 1): * -n, --nossl disable SSL in network mode * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon version %s Partition Image Daemon version %s+SSL Partition Image version %s (distributed under the GNU GPL2). Partition checks found error(s) on partitionsPartition descriptionPartition to restore:.............%sPartition to save:...........%sPartition was on device:..........%s Password requiredPlease, press "ok" to mount [%s] on [%s]Port:QuitRebootReiserFS informationsRestore an MBR from the imagefileRestore an MBR to the hard diskRestore partition from an image fileRetrySSL disabled at compile timeSSL&login disabled at compile timeSave partition into a new image fileSaving partition to the image file...Segmentation fault. Please report the bug and send the [%s] file to authors SimulationSimulation modeSimulation of the restoration (nothing is written)SizeSize of partition to restore:.....%s = %llu bytesSize of the Partition:.......%s = %llu bytesSize of the original partition:...%s = %llu bytesSpeed:.......................%s/minSpeed:............................%s/minSplit volumes size must be an integer greater than 1024 (size >= 1024 KB)StateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The MBR is a very important data of the hard disk. If you write a bad MBR, you will lose all the partitions of your hard drive. Don't continue unless you know what you are doing. Press 'Continue' to restore. Device with MBR to restore:.........%s [%llu] Original MBR:.......................%s [%llu]The MBR of [%s] has beensuccessfully restored. You might need to reboot your computer if you wantthe operating system to use the new MBR.The MBR was successfully restoredThe current %s support is beta !The current %s support is experimental !The debug level must be 0(none), 1(user), 2(developer) or 3(debugging) The following imagefile already exist. Do you want to overwrite or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The following imagefile is locked. Do you want to wait and retry or change image filename ? File: %s To change the filename, please enter a full path (location + filename) without volume number at the end, and press "Change"The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The image file was created by an older release (%s) of Partition Image. You must use the old version to restoreyour image or you have to recreate it with current versionThe image you try to restore was encrypted. The current version doesn't support encryption. Please, download the latest version of partimage.The original hard disk does not fit with the current hard disk. The MBR you are trying to restore was saved from another hard disk. This means the original and current hard disks does not have the same size or they are not on the same device (%s and %s). Do you want to continue?The partition %s id already locked by anotherprocess. You can't work on itThe partition %s is already locked by another process. Can't work on itThe partition is to small to be restored: Original partition size:........%llu bytes Destination partition size:.....%llu bytesThe partition was saved with a newer version of Partion Image. Please download the last one.The second argument [%s] must be a valid device (ex: /dev/hda1)The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRThere was a CRC error in CCheck. Data may be damaged. Do you want to continue ?There was a position error in CCheck. Data may be damaged. Do you want to continue ?There was an error while reading the bitmapThere was an error while restoring partition: CRC64 are differents, the imagefile was damaged: Original CRC64:.....%llu Current CRC64:......%lluTime elapsed:................%sTime elapsed:.....................%sToo many clients connected to partimaged. Please, retry laterUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundVolume number:.........%lu Volume size:...........%s Compression level: ....%ld -> %s Identificator:.........%llu=%llX WaitWait after each volume changeWaiting for client ...Waitting ...WarningWarning: we couldn't changed euid because we weren't launched as root expect some access denied or troubles like this. What to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You are using simulation mode: no write will be performedYou can enter a description of the saved partition:You don't have write access on %sYou haven't access to /proc/mounts.add it and retry checking the file system with fsckclosing ...copying used data blockserror !experimental search succeedfalsefile %s is not an partimage file: magic string does not matchfile %s is too short to be a partimage volume: can't read headerfinishedgetspace ...imagefile %s is already openimagefile lockedimpossible to find user "%s" initializing the operationinitializing the operation. Please wait...inode missinglocal CRC errorm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic string does not match: error in the image file [%s]nononeopening for read ...opening for write ...reading ...reading partition informationsreading partition propertiesrestore partition from image filerestoringsave partition to image filesavingserver's port must be between 1 and 65535 stablethe current volume doesn't fit with current image: wrong identificatortoo much client connectedtrueunable to access to %s Please, enteranother directory path (without filename):unknownunstablewaitingwriting headerwritting ...wrong pathyesProject-Id-Version: partimage 0.6.2 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2002-09-08 12:26GMT +2 Last-Translator: Henri Westerberg Language-Team: Suomi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 0.9.5 * Debuggausoptiot: * Muut optiot: * Tuetut tiedostojärjestelmät: - - APPEND_PID=%s - CHEUID DISABLED - CHEUID ENABLED - CURRENT_IMAGE_FORMAT=%s - DEFAULT_DEBUG_LEVEL=%d - DEVEL DISABLED - DEVEL ENABLED - Ext2fs tuki perustuu libext2fs-kirjastoon - Ext2fs tuki: sisäinen koodi - PARTIMAGED_LOG=%s - PARTIMAGED_USERS ei käytetty - PARTIMAGED_USERS=%s - PARTIMAGE_LOG=%s - SSL DISABLED - SSL ENABLED - USERS DON'T LOGIN - KÄYTTÄJIEN PITÄÄ LOGGAUTUA $bitmap tietohaku%lld tavua%s onnistuneesti lopetettu: Aikaa jäljellä:...%s Nopeus:..........%s/min Dataa kopioitu:....%s%s löysi virheitä tiedostojärjestelmästä.%s inode puuttuu. Partimage voi luoda sen puolestasi. Voit myös käyttää mknod komentoa. Haluatko että inode luodaan nyt ?%s ei ole osiolaite.%s ei ole sopiva Partition Image -tiedosto tai se on vahigoittunut. Ei voi jatkaa%s ei ole kelvollinen Partition Image -tiedosto.%s ei ole NTFS-tiedostojärjestelmäosio%s ei ole imagen ensimmäinen osa. Yritä uudelleen osalla numero 000%sVarausryhmä:........%lu Lohkoja varausryhmässä...%lu Varausryhmän koko:........%s %stavuja sektorilla..............%u Sektoreita klusterilla...........%u Tiedoston tallennuskoko...............%lu LCN of MFT Data attrib........%llu %sHPFS versio:.................%d %sRyhmien lukumäärä..............%lu Ensimmäinen lohko...................%lu Ext3fs journalization.........%s Sparse super block............%s Suurten tiedostojen tuki...........%s Tiedostojärjestelmän versio..........%lu %sSektorin koko...................%u Sektoreita klusterissa...........%u Varattuja sektoreita ........%u Juurihakemistosektoreita.........%lu FAT-osiotauluja..............%u Sektoreita yhteensä......%lu Sektoreita FATissa...............%lu Klustereita:...............%lu Käytettyjä klustereita.................%lu Vapaita klustereita.................%lu Vahingoittuneita klustereita..............%lu %sTilan käyttö:..................%llu %% Käytetty tila....................%s Vapaa tila....................%s Bittikartan koko..............%s Nimi.........................%s (distributed under the GNU GPL 2) * Luotava/käytettävä tiedosto* Tallennettava/palautettava osio-------------------- MBR %.3d ------------------- Asema:................%s Aseman lohkoluku:....%llu Aseman malli:..........%s ==== Partition Image: compilation options used ==== AboutAbout Partition Image %sPääsy estettyTapahtuma keskeytetty käyttäjän pyynnöstäSuoritettava toimenpide:Virhe luettaessa /proc/mounts.Automaattinen liitospisteAutomaattinen jako (kun tila loppuu kesken)Tilaa jäljellä imagelle:.....%s = %llu tavuaLohkon koko....................%llu tavua Lohkoja kaikkiaan..................%llu Käytettyjä lohkoja.............%llu Vapaita lohkoja.............%llu Tuntematon tiedostojärjestelmä osiossa %sEi voi lukita osiota %sEi voi avata osiota %sEi voi lukea %s imagestaEi voi lukea FSInfo-sektoriaEi voi lukea MBR Magicia: image-tiedosto vahingoittunutEi voi lukea SuperBlockiaEi voi lukea bittikarttalohkoa %ld kovalevyn osiolta (%s)Ei voi lukea bittikarttalohkoa %ld imagestaEi voi lukea lohkoa %ld kovalevyn osioltaEi voi lukea lohkoa %ld imagesta (%d)Ei voi lukea boottilohkoaEi voi luoda boottisektoriaEi voi lukea tietojaEi voi lukea pääotsikkoa: image-tiedosto vahingoittunutEi voi lukea loppuaEi voi lukea spareblockiaEi voi lukea superblockiaEi voi lukea MBRääEn voi lukea seuraavaa tiedostoa: %s %sEi voi kirjoittaa %s imageenEi voi kirjoittaa SuperBlockiaEi voi kirjoittaa bittikarttalohkoa %ld imageenEi voi kirjoittaa lohkoa %ld levylleEi voi kirjoittaa lohkoa %ld imageenEi voi kirjoittaa tietojaPääotsikkoa ei voi kirjoittaaEi voi kirjoittaa loppuaEi voi kirjoittaa MBRääPeruutaVäliaikaistiedoston luonti ei onnistu [%s]. Ei tarpeeksi tilaa.Väliaikaistiedoston luonti ei onnistu [%s]. Tarkista onko tilaa tarpeeksi ja oikeutesi tiedostoihin riittävätVäliaikaistiedoston luonti ei onnistu [%s]. Kirjoitus kielletty käyttäjältä 'partimag'Väliaikaistiedostoa ei voi luoda [%s]. Kirjoitusoikeus puuttuu. $bitmap ei löydy kokeellisella haulla.Ei voi liittää %sEi voi avata debuggaustiedostoa. Image-tiedostoa ei voi lukeaEi voi irroittaa %sEi voi käyttää $bitmap tiedostoaVaihdaTarkista osio ennen tallennustaClient #PakkaustasoPakkaustaso:....................Ei mitään Pakkaustaso:...............bzip2Pakkaustaso:....................gzipPakkaustaso:...............lzoPakkaustaso:..........Ei mitäänPakkaustaso:..........bzip2Pakkaustaso:..........gzipPakkaustaso:..........lzoPakkaustavan pitää olla 0 (none), 1(gzip), 2(bzip2) VahvistusYhdistä palvelimeenPalvelin kielsi yhteyden: yhteensopimattomat verkko-optiot. Yritä estää login-optio palvelimelle optiolla '-L'Palvelin katkaisi yhteyden: versio ristiriitaJatkaJatka (F5)Nykyinen image-tiedosto:..........%sNykyinen image-tiedosto:...............%sKopioitu:.......................%s / %sKopioitu:.........................%s / %sTunnistettu tiedostojärjestelmä:..........%sLevy täynnä! Ei voi kirjoittaa seuraavaa pakettia (%s.%.3ld) kohteeseen %s Anna toinen hakemisto (ilman tiedostonimeä):Levy jonka MBR palautetaanHaluatko todellakin perua nykyisen operaation ?Haluatko todella palauttaa %s:n image-tiedostosta %s ?Suojaa data käyttäen SSL-suojaustaAnna jokin muu hakemistopolku (hakemisto & nimi)KuvausAnna uusi tiedostonimiKirjautumisnimiSalasanaTyhjennä vapaa tila VirheVirhe readFilenameAttribute:ssaVirhe suljettaessaVirhe datan tarkistuksessa: Virheellinen lohkonumeroVirhe kirjoitettaessa image-tiedostoa: levy täynnä !Virhe: %sVirhe: Tietokonetta ei voi pysäyttääVirhe: Tietokonetta ei voi käynnistää uudelleenAikaa jäljellä (arvio):.....%sAikaa jäljellä:..........%sPoistu (F6)Poistu partimage:sta ?Ext2fs-tiedotExt3fs-tiedotFAT-tiedotTiedosto %s ei ole normaali. Turvallisuussyistä ei voi jatkaaTiedostojärjestelmä:....................%sTiedosto liian iso (suurempi kuin 2 GB). Ei voi jatkaa. Tämä ongelma voi johtua kernelistä, glibc:stä, tiedostojärjestelmästäTiedostojärjestelmä:............%s Kuvaus:...........%s Alkuperäinen lähde:.......%s Alkuperäinen hakemistopolku:.... %s Liput:.................%ld: %s Luontipäivä:..........%sOsion koko:........%s Isäntänimi:..............%s Yhteensopivuus (versio):..%s Suojausalgoritmi:...%ld -> %s MBR talletettu luku:.......%lu Varmuuskopion järjestelmä: - kone:.............%s - käyttöjärjestelmä:....%s - versio:.............%s Lopetustavan pitää olla 0 (odota), 1(pysäytä), 2(käynnistä uudelleen) or 3(lopeta) Korjaa ja yritä uudestaan. HPFS-tiedotPysäytäHostIsäntänimi/IP Virhe! Ehkä isäntänimeä ei voitu yhdistää. (Kokeile käyttämällä IP-osoitetta)Palvelimen IP/nimi:Jos onnistunut oikein:Image luotu:....................%s Image-tiedoston koko:...............%sLuotava image:..........%sKäytettävä image-tiedosto....................%sImagen tiedotImagen jakotapaLokitiedostoa ei saada auki %s: %s MBR:ää ei voi lukea levyltäEi voi nollata kovalevyn lohkoa: %sTiedostoihin joiden koko on:..........Virheellisen HPFS magic -numerot. Virheellinen HPFS osio.Virheellinen automount-optio. Lue käsikirja saadaksesi lisätietoaVirheellinen pakkaustaso %sVirheellinen tai vahingoittunut tiedostojärjestelmä %sVirheellinen osanumero (%ld vs %ld).JFS-tiedotSijaintiPäävalikko (F7)MtNTFS $Bitmap on liian pieniNTFS-tiedotNTFS: "Attribute List"-attribuuttia ei vielä tueta.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Kestävä data -attribuutti ei ole tuettuNTFS: processRunList() palautti -1Uusi osaUusi paketin sijaintiNewt debuggaus-informaatioSeuraava (F5)EiMBR:ää ei löytynyt tältä image-tiedostolta. Ei voi jatkaaEi kuvaustaLippu asettamattaEi mitään (nopea + suuri tiedosto)Ei %s osio. Tarkista tiedostojärjestelmän tyyppiOkVain 4096 tavua osalle %s levyt tuettuja. Nykyinen on %lu tavua osalleOperaatioAsetuksetAlkuperäinen MBR jota käytetäänMuisti loppuMuisti loppu.Out of memory: need %lu bytes to read file record in readBitmap()Muisti loppu: tarvitaan %lu tavua voidakseen lukea tiedostot readVolumeLabel()YlikirjoitaYlikirjoita image?Kirjoita yli kysymättä ensinPartimage ei tarkista osiota koska %s ei ole.Partimage ei tarkista osiota koska suoritusoikeus on kielletty %s.PartimagedPartition Image (http://www.partimage.org/) versio %s [%s] ---- jaettu GPL 2 lisenssin alaisena (GNU General Public License) ---- Tuetut tiedostojärjestelmät:..ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs käyttö: partimage [optiot] partimage ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2 ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz Arguments: * : - save: tallenna osiodatat image-tiedostoon - restore: palauta osiot image-tiedostosta - restmbr: palauta MBR imagesta MBR:lle - imginfo: näytä image-tiedoston tiedot * : osio joka halutaan tallettaa/palauttaa (esim.: /dev/hda1) * : tiedosto josta data luetaan/kirjoitetaan. voi olla suuri Optiot: * -z, --compress (image-tiedoston pakkaustaso): -z0, --compress=0 älä pakkaa paljoa: suuri tiedoston koko -z1, --compress=1 pakkaa käyttämällä gzip:iä: nopea ja pieni tiedostokoko (oletus) -z2, --compress=2 (pakkaa käyttämällä bzip2: hidas mutta erittäin pieni tiedostokoko): * -c, --nocheck älä tarkista osiota ennen tallennusta * -o, --overwrite ylikirjoita olemassaoleva image-tiedosto * -d, --nodesc älä kysy image-tiedoston kuvausta * -V, --volume (jaa image osiin) -VX, --volume=X jaa osioiden koko X KB * -w, --waitvol odota vahvistusta ennen jatkoa * -e, --erase erase empty blocks on restore with zero bytes * -m, --allowmnt älä lopeta vaikka partitio mountattu. Vaarallinen ! * -M, --nombr älä tee varmuuskopiota MBR:stä (Mast Boot Record) image-tiedostoon * -h, --help näytä ohje * -v, --version näytä versio * -i, --compilinfo näytä käytetyt käännösvaihtoehdot * -f, --finish (action to do if finished successfully): -f0, --finish=0 ei mitään -f1, --finish=1 virta pois koneesta -f2, --finish=2 käynnistä kone uudelleen -f3, --finish=3 lopeta * -b, --batch batch-tile: GUI ei odota käyttäjän toimia * -y, --nosync don't synchronize the disks at the end of the operation (dangerous) * -sX, --server=X give partimaged server's ip address * -pX, --port=X give partimaged server's listening port * -g, --debuggaus=X aseta debuggaustaso X:ään (oletus: 1): * -n, --nossl älä käytä SSL-suojausta verkkotilassa * -S, --simulate simulation of restoration mode * -aX, --automnt=X Automatic mount with X options. Read the doc for more details * -UX --username=X Username to authenticate to server * -PX --Password=X Password for authentication of user to server Partition Image Daemon versio %s Partition Image Daemon versio %s+SSL Partition Image versio %s (distributed under the GNU GPL2). Osio tarkistus löysi virheen(t) osioiltaOsion kuvausPalautettava osio:...............%sOsio joka tallennetaan:............%sOsoio oli laitteessa:...............%s Salasana vaaditaanPaina "ok" liittääksesi [%s] kohtaan [%s]Portti:LopetaKäynnistä uudelleenReiserFS-tiedotpalauta MBR image-tiedostostaPalauta MBR kovalevylle Palauta osio image-tiedostostaUudelleenSSL estetty kääntövaiheessaSSL ja kirjautuminen estetty kääntövaiheessaTallenna osio uuteen image-tiedostoonTallennetaan osio image-tiedostoksiSegmentointivirhe. Raportoi bugi ja lähetä tiedosto [%s] ohjelman kehittäjille SimulaatioSimulaatiotilaPalautuksen simulointi (ei kirjoitusta)KokoPalautettavan osion koko:.....%s = %llu tavuaOsion koko:..........%s = %llu tavuaAlkuperäisen imagen koko:....%s = %llu tavuaNopeus:..................%s/minNopeus:.........................%s/minJaettujen osien koko pitää olla suurempi kuin 1024 (koko >= 1024 KB)TilaOnnistuiTeksti ei voi olla tyhjä"Image"-kenttä tyhjä. Ei voi jatkaa"Palvlelimen IP/nimi"-kenttä tyhjä. Ei voi jatkaa"Portti"-kentän arvo vääränlainen. Ei voi jatkaa"filename" attribuutin täytyy olla kestävä !%s image-tiedosto on olemassa. Haluatko ylikirjoittaa sen?Osio %s on liitetty. Partition Image ei voi työskennellä liitettyjen osioiden kanssa. Ole hyvä ja irroita osio ensin. Voit tehdä sen komennolla "umount %s"MBR sisältää tärkeää tietoa kovalevystä. Jos kirjoitat virheellisen MBR:n, menetät kaikki osiot kovalevyltäsi. Älä jatka jollet ole varma siitä mitä teet. paina 'Jatka' palauttaaksesi. Asema josta MBR palautetaan:...............%s [%llu] Alkuperäinen MBR:.......................%s [%llu]MBR of [%s] onnistuneesti palautettu. Saatat joutua käynnistämään koneesi uudelleen jos haluat käyttöösi uuden MBR:n.MBR onnistuneesti palautettuNykyinen tuote %s tuki on beta !Nykyinen %s tuki on kokeellinen !debuggaus tason pitää olla 0(ei mitään), 1(käyttäjä), 2(kehittäjä) or 3(debuggaus) Seuraava image-tiedosto on jo olemassa. Kirjoitetaanko yli vai haluatko vaihtaa uuden tiedostonimen ? Tiedosto: %s Vaihtaaksesi tiedostonimeä anna koko polku täydellisenä (sijainti + tiedostonimi) ilman tiedostonumeroa, ja paina "Muuta" Seuraava image-tiedosto on lukittu. Haluatko odottaa ja yrittää vaihtaa imagen tiedostonimeä ? Tiedosto: %s Vaihtaaksesi tiedostonimeä anna koko polku täydellisenä (sijainti + tiedostonimi) ilman tiedostonumeroa, ja paina "Muuta" Image-tiedostoa "%s" ei löydyImage-tiedosto on luotu Partition Imagen uudemmalla versiolla (%s). Päivitä ohjelma ja yritä uudelleen.Image-tiedosto on luotu Partition Imagen vanhemmalla versiolla (%s). Sinun täytyy käyttää vanhaa versiota palautukseen tai luoda se uudelleen nykyisellä versiollaImage jota koetat palauttaa on suojattu. Nykyinen versio ei tue suojausta. Lataa viimeisin versio partimagesta.Alkuperäinen kovalevy ei sovi yhteen nykyisen kovalevyn kanssa. MBR jota yrität palauttaa on talletettu toiselta levyltä. Tämä tarkoittaa että alkuperäinen ja nykyinen kovalevy eivät ole saman kokoisia tai samassa asemassa (%s and %s). Haluatko jatkaa?Osio %s on jo lukittu toisen prosessin vuoksi. Työskentely kiellettyToinen prosessi on lukinnut osion %s. Ei voi jatkaaOsio on liian pieni palautettavaksi: Alkuperäisen osion koko:.......%llu tavua Kohdeosion koko:.....%llu tavuaOsoio on tallennettu Partition Imagen uudemmalla versiolla, Ole hyvä ja lataa uusin versio.Toisen argumentin [%s] täytyy olla oikea laite (esim.: /dev/hda1)Kolmannen argumentin [%s] pitää olla tavallinen tiedosto (ei hakemisto, linkki, ...)Osa vaihdettu. Vanha: %s Uusi: %s/%s.%.3ld Paina Enter jatkaaksesiKoko MBRCCheck löysi CRC-virheen. Dataa voi olla hävinnyt. Haluatko jatkaa ?CCheck löysi sijaintivirheen. Dataa voi olla hävinnyt. Haluatko jatkaa ?Bittikarttaa luettaessa tapahtui virheOsiota palautettaessa tapahtui virhe: CRC64:t ovat erilaiset, image-tiedosto oli vahingoittunut: Alkuperäinen CRC64:.....%llu Nykyinen CRC64:......%lluAikaa kulunut:....................%sAikaa kulunut:....................%sLiian monta yhteyttä partimaged:iin. Yritä myöhemmin uudelleenEi voi lukea $Bitmap MFT:tä. Haluatko tehdä kokeellisen haun sille ? (Voi kestää pitkään)Tuntematon virhe %d -> %sTiedostoa ei löytynytPaketin numero:.........%lu Paketin koko:...........%s Pakkaustaso: ....%ld -> %s Tunniste:.........%llu=%llX OdotaOdota ennen median vaihtoaOdotetaan asiakasta ...Odotetaan:...VaroitusEuid:tä ei voitu käynnistää koska sisäänkirjautuminen ei tapahtunut roottina odotettavissa joitain virheilmoituksia, kuten pääsy estetty tms. Mitä palautetaan:XFS-tiedotKylläEt ole kirjautunut pääkäyttäjänä. Saatat saada "pääsy estetty" virheitä työskennellessäsi.Käytät simulaatiotilaa: kirjoitusta ei suoriteta levylleVoit antaa kuvauksen talletettavasta osiosta:Sinulla ei ole kirjoitusoikeutta %sOikeutesi ei riitä kohteeseen /proc/mounts.lisää ja yritä uudelleen Tarkistetaan tiedostojärjestelmää fsck:llasuljetaan ...kopioidaan käytetyt datalohkotvirhe !kokeellinen haku onnistuiepätositiedosto %s ei ole partimage-tiedosto: magic string yhteen sopivuutta ei oletiedosto %s on liian pieni ollakseen partimage-osa: ei voi lukea otsikkoalopetettuhaetaan tilaa:...image-tiedosto %s on jo aukiimage-tiedosto on lukittukäyttäjää ei löydy "%s" aloitetaan toimintoaaloitetaan toimintoa. Odota...inode missingPaikallinen CRC virhem_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.magic jono yhteensopivuutta ei ole: virhe image-tiedostossa [%s]eiei mitäänavataan lukua varten ...avataan kirjoitusta varten ...luetaan ...luetaan osiotietojaluetaan osion ominaisuuksiaPalauta osio image-tiedostostapalautetaantallenna osio image-tiedostoksitallennetaanpalvelimen portin pitää olla välillä 1 - 65535 vakaaosa ei sovi yhteen nykyisen imagen kanssa: väärä tunnisteliikaa asiakkaita kytkeytyneenätosipääsy estetty %s Anna uusi hakemistopolku (ilman tiedostonimeä):tuntematonepävakaaodotetaankirjoitetaan otsikkokirjoitetaan ...väärä polkukylläpartimage-0.6.8/po/fi.po0000644000000000000000000020134211252653200013546 0ustar rootroot# Finnish translation for Partion Image # Copyright (C) 2002 # Henri Westerberg , 2002 # msgid "" msgstr "" "Project-Id-Version: partimage 0.6.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: 2002-09-08 12:26GMT +2\n" "Last-Translator: Henri Westerberg \n" "Language-Team: Suomi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 0.9.5\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "Palauta MBR kovalevylle " #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "Levy jonka MBR palautetaan" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "Alkuperäinen MBR jota käytetään" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "Mitä palautetaan:" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "Koko MBR" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "Jatka (F5)" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "Poistu (F6)" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "Päävalikko (F7)" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "tallenna osio image-tiedostoksi" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "Pakkaustaso" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "Ei mitään (nopea + suuri tiedosto)" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "Asetukset" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "Tarkista osio ennen tallennusta" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "Kuvaus" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "Kirjoita yli kysymättä ensin" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "Imagen jakotapa" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "Automaattinen jako (kun tila loppuu kesken)" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "Tiedostoihin joiden koko on:.........." #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "Mt" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "Odota ennen median vaihtoa" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "Jos onnistunut oikein:" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "Odota" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "Pysäytä" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "Käynnistä uudelleen" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "Lopeta" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "Osio joka tallennetaan:............%s" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "Osion koko:..........%s = %llu tavua" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "Luotava image:..........%s" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "Tunnistettu tiedostojärjestelmä:..........%s" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "Pakkaustaso:..........Ei mitään" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "Pakkaustaso:..........gzip" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "Pakkaustaso:..........bzip2" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "Pakkaustaso:..........lzo" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "Aikaa kulunut:....................%s" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "Aikaa jäljellä (arvio):.....%s" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "Nopeus:..................%s/min" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "Kopioitu:.......................%s / %s" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "Nykyinen image-tiedosto:..........%s" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "Image-tiedoston koko:...............%s" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "Tilaa jäljellä imagelle:.....%s = %llu tavua" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "Palauta osio image-tiedostosta" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "Tyhjennä vapaa tila " #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "Palautuksen simulointi (ei kirjoitusta)" #: src/client/gui_text.cpp:662 #, fuzzy msgid "simulate partition restoration from image file" msgstr "Palauta osio image-tiedostosta" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "Palautettava osio:...............%s" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "Palautettavan osion koko:.....%s = %llu tavua" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "Käytettävä image-tiedosto....................%s" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "Tiedostojärjestelmä:....................%s" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "Osoio oli laitteessa:...............%s\n" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "Image luotu:....................%s\n" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "Alkuperäisen imagen koko:....%s = %llu tavua" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "Aikaa kulunut:....................%s" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "Aikaa jäljellä:..........%s" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "Nopeus:.........................%s/min" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "Kopioitu:.........................%s / %s" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "Nykyinen image-tiedosto:...............%s" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "Pakkaustaso:....................Ei mitään\n" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "Pakkaustaso:....................gzip" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "Pakkaustaso:...............bzip2" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "Pakkaustaso:...............lzo" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "Vaihda" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "Peruuta" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "Anna uusi tiedostonimi" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Seuraava image-tiedosto on jo olemassa.\n" "Kirjoitetaanko yli vai haluatko vaihtaa uuden tiedostonimen ?\n" "Tiedosto: %s\n" "Vaihtaaksesi tiedostonimeä anna koko polku täydellisenä\n" "(sijainti + tiedostonimi) ilman tiedostonumeroa, \n" "ja paina \"Muuta\" " #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "Ylikirjoita image?" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "Ylikirjoita" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" "Seuraava image-tiedosto on lukittu.\n" "Haluatko odottaa ja yrittää vaihtaa imagen tiedostonimeä ?\n" "Tiedosto: %s\n" "Vaihtaaksesi tiedostonimeä anna koko polku täydellisenä\n" "(sijainti + tiedostonimi) ilman tiedostonumeroa, \n" "ja paina \"Muuta\" " #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "image-tiedosto on lukittu" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "Uudelleen" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" "pääsy estetty %s\n" "\n" "Anna uusi hakemistopolku (ilman tiedostonimeä):" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "väärä polku" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "Automaattinen liitospiste" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "Paina \"ok\" liittääksesi [%s] kohtaan [%s]" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" "En voi lukea seuraavaa tiedostoa:\n" "%s\n" "%s" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "Anna jokin muu hakemistopolku (hakemisto & nimi)" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "Tiedostoa ei löytynyt" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "Lippu asettamatta" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "Ei kuvausta" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "ei mitään" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "tuntematon" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" "Tiedostojärjestelmä:............%s\n" "Kuvaus:...........%s\n" "Alkuperäinen lähde:.......%s\n" "Alkuperäinen hakemistopolku:.... %s\n" "Liput:.................%ld: %s\n" "Luontipäivä:..........%sOsion koko:........%s\n" "Isäntänimi:..............%s\n" "Yhteensopivuus (versio):..%s\n" "Suojausalgoritmi:...%ld -> %s\n" "MBR talletettu luku:.......%lu\n" "\n" "Varmuuskopion järjestelmä:\n" "- kone:.............%s\n" "- käyttöjärjestelmä:....%s\n" "- versio:.............%s\n" "\n" "\n" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" "-------------------- MBR %.3d -------------------\n" "Asema:................%s\n" "Aseman lohkoluku:....%llu\n" "Aseman malli:..........%s\n" "\n" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" "Paketin numero:.........%lu\n" "Paketin koko:...........%s\n" "Pakkaustaso: ....%ld -> %s\n" "Tunniste:.........%llu=%llX\n" "\n" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "Image-tiedostoa \"%s\" ei löydy" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "Image-tiedostoa ei voi lukea" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "Imagen tiedot" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "Virhe" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "About Partition Image %s" #: src/client/interface_base.cpp:50 #, fuzzy, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "Ei voi kirjoittaa lohkoa %ld imageen" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "Ei voi kirjoittaa %s imageen" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "Ei voi kirjoittaa bittikarttalohkoa %ld imageen" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "Ei voi lukea bittikarttalohkoa %ld imagesta" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "Ei voi kirjoittaa lohkoa %ld levylle" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "Ei voi lukea lohkoa %ld imagesta (%d)" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "Ei voi lukea %s imagesta" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "Ei voi lukea SuperBlockia" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "Ei voi kirjoittaa SuperBlockia" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "Ei voi lukea lohkoa %ld kovalevyn osiolta" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "Ei voi lukea bittikarttalohkoa %ld kovalevyn osiolta (%s)" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "Ei voi kirjoittaa MBRää" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "Ei voi lukea MBRää" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "Ei %s osio. Tarkista tiedostojärjestelmän tyyppi" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" "Osoio on tallennettu Partition Imagen uudemmalla versiolla, Ole hyvä ja " "lataa uusin versio." #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "Virhe kirjoitettaessa image-tiedostoa: levy täynnä !" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "Tuntematon tiedostojärjestelmä osiossa %s" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "Pääotsikkoa ei voi kirjoittaa" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "Ei voi kirjoittaa loppua" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "Ei voi lukea loppua" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" "Image jota koetat palauttaa on suojattu. Nykyinen versio ei tue suojausta. " "Lataa viimeisin versio partimagesta." #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "%s ei ole imagen ensimmäinen osa. Yritä uudelleen osalla numero 000" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "%s ei ole kelvollinen Partition Image -tiedosto." #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" "Osio on liian pieni palautettavaksi:\n" "Alkuperäisen osion koko:.......%llu tavua\n" "Kohdeosion koko:.....%llu tavua" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" "Osiota palautettaessa tapahtui virhe:\n" "CRC64:t ovat erilaiset, image-tiedosto oli vahingoittunut:\n" "Alkuperäinen CRC64:.....%llu\n" "Nykyinen CRC64:......%llu" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "Virheellinen osanumero (%ld vs %ld)." #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "Virhe suljettaessa" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "Toinen prosessi on lukinnut osion %s. Ei voi jatkaa" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "Ei voi avata osiota %s" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "Ei voi lukita osiota %s" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "Ei voi lukea pääotsikkoa: image-tiedosto vahingoittunut" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "Ei voi kirjoittaa tietoja" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "Ei voi lukea tietoja" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "Ei voi lukea MBR Magicia: image-tiedosto vahingoittunut" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "Varoitus" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" "Et ole kirjautunut pääkäyttäjänä. Saatat saada \"pääsy estetty\" virheitä " "työskennellessäsi." #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "Uusi osa" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" "Osa vaihdettu.\n" "Vanha: %s\n" "Uusi: %s/%s.%.3ld\n" "Paina Enter jatkaaksesi" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "Vahvistus" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "Haluatko todella palauttaa %s:n image-tiedostosta %s ?" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "%s löysi virheitä tiedostojärjestelmästä." #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "Partimage ei tarkista osiota koska %s ei ole." #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "Partimage ei tarkista osiota koska suoritusoikeus on kielletty %s." #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "Nykyinen %s tuki on kokeellinen !" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "Nykyinen tuote %s tuki on beta !" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "Simulaatiotila" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "Käytät simulaatiotilaa: kirjoitusta ei suoriteta levylle" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" "MBR sisältää tärkeää tietoa kovalevystä. Jos kirjoitat virheellisen MBR:n, " "menetät kaikki osiot kovalevyltäsi. Älä jatka jollet ole varma siitä mitä " "teet. paina 'Jatka' palauttaaksesi.\n" "Asema josta MBR palautetaan:...............%s [%llu]\n" "Alkuperäinen MBR:.......................%s [%llu]" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" "Alkuperäinen kovalevy ei sovi yhteen nykyisen kovalevyn kanssa. MBR jota " "yrität palauttaa on talletettu toiselta levyltä. Tämä tarkoittaa että " "alkuperäinen ja nykyinen kovalevy eivät ole saman kokoisia tai samassa " "asemassa (%s and %s). Haluatko jatkaa?" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "Onnistui" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" "MBR of [%s] onnistuneesti palautettu. Saatat joutua käynnistämään koneesi " "uudelleen jos haluat käyttöösi uuden MBR:n." #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "Virhe: %s" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "Tapahtuma keskeytetty käyttäjän pyynnöstä" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "%s image-tiedosto on olemassa. Haluatko ylikirjoittaa sen?" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "Pääsy estetty" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "Sinulla ei ole kirjoitusoikeutta %s" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "Virheellinen pakkaustaso %s" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "image-tiedosto %s on jo auki" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" "tiedosto %s on liian pieni ollakseen partimage-osa: ei voi lukea otsikkoa" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" "tiedosto %s ei ole partimage-tiedosto: magic string yhteen sopivuutta ei ole" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "magic jono yhteensopivuutta ei ole: virhe image-tiedostossa [%s]" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "osa ei sovi yhteen nykyisen imagen kanssa: väärä tunniste" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "Muisti loppu." #: src/client/interface_base.cpp:486 #, fuzzy msgid "incorrect password or user not in partimagedusers file" msgstr "väärä salasana tai käyttäjätunnus ei partimagedusers-tiedostossa" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "Liian monta yhteyttä partimaged:iin. Yritä myöhemmin uudelleen" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "Vain 4096 tavua osalle %s levyt tuettuja. Nykyinen on %lu tavua osalle" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "Osio %s on jo lukittu toisen prosessin vuoksi. Työskentely kielletty" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "Virhe datan tarkistuksessa: Virheellinen lohkonumero" #: src/client/interface_base.cpp:514 #, fuzzy, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "Tämä osa (%ld) ei ole toivottu: %ld" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" "Isäntänimi/IP Virhe!\n" "Ehkä isäntänimeä ei voitu yhdistää. (Kokeile käyttämällä IP-osoitetta)" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "MBR:ää ei löytynyt tältä image-tiedostolta. Ei voi jatkaa" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "Osio tarkistus löysi virheen(t) osioilta" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "MBR:ää ei voi lukea levyltä" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "Virheellinen tai vahingoittunut tiedostojärjestelmä %s" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "Ei voi nollata kovalevyn lohkoa: %s" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" "Palvelin kielsi yhteyden: yhteensopimattomat verkko-optiot. Yritä estää " "login-optio palvelimelle optiolla '-L'" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "Palvelin katkaisi yhteyden: versio ristiriita" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" "Image-tiedosto on luotu Partition Imagen uudemmalla versiolla (%s). Päivitä " "ohjelma ja yritä uudelleen." #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" "Image-tiedosto on luotu Partition Imagen vanhemmalla versiolla (%s). Sinun " "täytyy käyttää vanhaa versiota palautukseen tai luoda se uudelleen " "nykyisellä versiolla" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" "%s ei ole sopiva Partition Image -tiedosto tai se on vahigoittunut. Ei voi " "jatkaa" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "Tiedosto %s ei ole normaali. Turvallisuussyistä ei voi jatkaa" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "Ei voi liittää %s" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "Ei voi irroittaa %s" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" "Väliaikaistiedoston luonti ei onnistu [%s]. Tarkista onko tilaa tarpeeksi ja " "oikeutesi tiedostoihin riittävät" #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "Väliaikaistiedoston luonti ei onnistu [%s]. Ei tarpeeksi tilaa." #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" "Väliaikaistiedoston luonti ei onnistu [%s]. Kirjoitus kielletty käyttäjältä " "'partimag'" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "Väliaikaistiedostoa ei voi luoda [%s]. Kirjoitusoikeus puuttuu." #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" "Tiedosto liian iso (suurempi kuin 2 GB). Ei voi jatkaa. Tämä ongelma voi " "johtua kernelistä, glibc:stä, tiedostojärjestelmästä" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "Tuntematon virhe %d -> %s" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "Newt debuggaus-informaatio" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "Ok" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "Jatka" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "Kyllä" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "Ei" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "* Tallennettava/palautettava osio" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "* Luotava/käytettävä tiedosto" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "Suoritettava toimenpide:" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "Tallenna osio uuteen image-tiedostoon" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "Palauta osio image-tiedostosta" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "palauta MBR image-tiedostosta" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "Yhdistä palvelimeen" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "Suojaa data käyttäen SSL-suojausta" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "SSL estetty kääntövaiheessa" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "SSL ja kirjautuminen estetty kääntövaiheessa" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "Palvelimen IP/nimi:" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "Portti:" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "Seuraava (F5)" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "About" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "\"Image\"-kenttä tyhjä. Ei voi jatkaa" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "\"Palvlelimen IP/nimi\"-kenttä tyhjä. Ei voi jatkaa" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "\"Portti\"-kentän arvo vääränlainen. Ei voi jatkaa" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "Osion kuvaus" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "Voit antaa kuvauksen talletettavasta osiosta:" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "Teksti ei voi olla tyhjä" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "Salasana vaaditaan" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "Kirjautumisnimi" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "Salasana" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" "Levy täynnä! Ei voi kirjoittaa seuraavaa pakettia (%s.%.3ld)\n" "kohteeseen %s\n" "Anna toinen hakemisto (ilman tiedostonimeä):" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "Uusi paketin sijainti" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "palvelimen portin pitää olla välillä 1 - 65535\n" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "Pakkaustavan pitää olla 0 (none), 1(gzip), 2(bzip2)\n" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" "Lopetustavan pitää olla 0 (odota), 1(pysäytä), 2(käynnistä uudelleen) or 3" "(lopeta)\n" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" "debuggaus tason pitää olla 0(ei mitään), 1(käyttäjä), 2(kehittäjä) or 3" "(debuggaus)\n" #: src/client/main.cpp:278 #, fuzzy, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "Paketin koko: %llu tavua (%ld KB)\n" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "Partition Image versio %s (distributed under the GNU GPL2).\n" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "Ei voi avata debuggaustiedostoa.\n" #: src/client/main.cpp:529 #, fuzzy msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" "Sinulla on devfs sallittu muttei mountattu. Jatkaaksesi sinun täytyy " "mountata. Voit myös bootata ei-devfs-kernelin jos sinulla on sellainen." #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "MBR onnistuneesti palautettu" #: src/client/main.cpp:724 msgid "Simulation" msgstr "Simulaatio" #: src/client/main.cpp:726 msgid "Operation" msgstr "Operaatio" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "Virhe: Tietokonetta ei voi pysäyttää" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "Virhe: Tietokonetta ei voi käynnistää uudelleen" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 #, fuzzy msgid "Error: Cannot count remaining partimages" msgstr "Virhe: Tietokonetta ei voi käynnistää uudelleen" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 #, fuzzy msgid "DEBUG: reboot the computer" msgstr "Virhe: Tietokonetta ei voi käynnistää uudelleen" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" "Partition Image (http://www.partimage.org/) versio %s [%s]\n" "---- jaettu GPL 2 lisenssin alaisena (GNU General Public License) ----\n" "\n" "Tuetut tiedostojärjestelmät:..ext2fs, reiserfs, fat16, fat32, ntfs(exp), " "hpfs\n" "\n" "käyttö: partimage [optiot] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: tallenna osiodatat image-tiedostoon\n" " - restore: palauta osiot image-tiedostosta\n" " - restmbr: palauta MBR imagesta MBR:lle\n" " - imginfo: näytä image-tiedoston tiedot\n" "* : osio joka halutaan tallettaa/palauttaa (esim.: /dev/hda1)\n" "* : tiedosto josta data luetaan/kirjoitetaan. voi olla suuri\n" "\n" "Optiot:\n" "* -z, --compress (image-tiedoston pakkaustaso):\n" " -z0, --compress=0 älä pakkaa paljoa: suuri tiedoston koko\n" " -z1, --compress=1 pakkaa käyttämällä gzip:iä: nopea ja pieni " "tiedostokoko (oletus)\n" " -z2, --compress=2 (pakkaa käyttämällä bzip2: hidas mutta erittäin pieni " "tiedostokoko):\n" "* -c, --nocheck älä tarkista osiota ennen tallennusta\n" "* -o, --overwrite ylikirjoita olemassaoleva image-tiedosto\n" "* -d, --nodesc älä kysy image-tiedoston kuvausta\n" "* -V, --volume (jaa image osiin)\n" " -VX, --volume=X jaa osioiden koko X KB\n" "* -w, --waitvol odota vahvistusta ennen jatkoa\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt älä lopeta vaikka partitio mountattu. Vaarallinen !\n" "* -M, --nombr älä tee varmuuskopiota MBR:stä (Mast Boot Record) " "image-tiedostoon\n" "* -h, --help näytä ohje\n" "* -v, --version näytä versio\n" "* -i, --compilinfo näytä käytetyt käännösvaihtoehdot\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 ei mitään\n" " -f1, --finish=1 virta pois koneesta\n" " -f2, --finish=2 käynnistä kone uudelleen\n" " -f3, --finish=3 lopeta\n" "* -b, --batch batch-tile: GUI ei odota käyttäjän toimia\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debuggaus=X aseta debuggaustaso X:ään (oletus: 1):\n" "* -n, --nossl älä käytä SSL-suojausta verkkotilassa\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" #: src/client/main.cpp:894 msgid "stable" msgstr "vakaa" #: src/client/main.cpp:894 msgid "unstable" msgstr "epävakaa" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" "%s onnistuneesti lopetettu:\n" "\n" "Aikaa jäljellä:...%s\n" "Nopeus:..........%s/min\n" "Dataa kopioitu:....%s" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "aloitetaan toimintoa. Odota..." #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "Tallennetaan osio image-tiedostoksi" #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "aloitetaan toimintoa" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 #, fuzzy msgid "Impossible to read the magic: the image is damaged" msgstr "Ei voi lukea MBR Magicia: image-tiedosto vahingoittunut" #: src/client/misc.cpp:1016 #, fuzzy msgid "CRC changed: the image is damaged" msgstr "Ei voi lukea pääotsikkoa: image-tiedosto vahingoittunut" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "inode missing" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" "%s inode puuttuu. Partimage voi luoda sen puolestasi. Voit myös käyttää " "mknod komentoa. Haluatko että inode luodaan nyt ?" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "%s ei ole osiolaite." #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "Oikeutesi ei riitä kohteeseen /proc/mounts." #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "Virhe luettaessa /proc/mounts." #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" "Osio %s on liitetty. Partition Image ei voi työskennellä liitettyjen " "osioiden kanssa. Ole hyvä ja irroita osio ensin. Voit tehdä sen komennolla " "\"umount %s\"" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "Jaettujen osien koko pitää olla suurempi kuin 1024 (koko >= 1024 KB)" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "Virheellinen automount-optio. Lue käsikirja saadaksesi lisätietoa" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "Toisen argumentin [%s] täytyy olla oikea laite (esim.: /dev/hda1)" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" "Kolmannen argumentin [%s] pitää olla tavallinen tiedosto (ei hakemisto, " "linkki, ...)" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "Poistu partimage:sta ?" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "Haluatko todellakin perua nykyisen operaation ?" #: src/client/fs/fs_base.cpp:346 #, fuzzy msgid "local check error" msgstr "Paikallinen CRC virhe" #: src/client/fs/fs_base.cpp:347 #, fuzzy msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" "Paikallista tarkistusrakennetta ei löytynyt. Dataa voi olla hävinnyt. " "Haluatko jatkaa ?" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "Paikallinen CRC virhe" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" "CCheck löysi sijaintivirheen. Dataa voi olla hävinnyt. Haluatko jatkaa ?" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "CCheck löysi CRC-virheen. Dataa voi olla hävinnyt. Haluatko jatkaa ?" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "luetaan osion ominaisuuksia" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "Tarkistetaan tiedostojärjestelmää fsck:lla" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "kirjoitetaan otsikko" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "kopioidaan käytetyt datalohkot" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "luetaan osiotietoja" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" "Lohkon koko....................%llu tavua\n" "Lohkoja kaikkiaan..................%llu\n" "Käytettyjä lohkoja.............%llu\n" "Vapaita lohkoja.............%llu\n" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" "%sTilan käyttö:..................%llu %%\n" "Käytetty tila....................%s\n" "Vapaa tila....................%s\n" "Bittikartan koko..............%s\n" "Nimi.........................%s\n" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" "%sRyhmien lukumäärä..............%lu\n" "Ensimmäinen lohko...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Suurten tiedostojen tuki...........%s\n" "Tiedostojärjestelmän versio..........%lu\n" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "kyllä" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "ei" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "Ext3fs-tiedot" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "Ext2fs-tiedot" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "Bittikarttaa luettaessa tapahtui virhe" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" "%sSektorin koko...................%u\n" "Sektoreita klusterissa...........%u\n" "Varattuja sektoreita ........%u\n" "Juurihakemistosektoreita.........%lu\n" "FAT-osiotauluja..............%u\n" "Sektoreita yhteensä......%lu\n" "Sektoreita FATissa...............%lu\n" "Klustereita:...............%lu\n" "Käytettyjä klustereita.................%lu\n" "Vapaita klustereita.................%lu\n" "Vahingoittuneita klustereita..............%lu\n" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "FAT-tiedot" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "Ei voi luoda boottisektoria" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "Ei voi lukea FSInfo-sektoria" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "%s ei ole NTFS-tiedostojärjestelmäosio" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "Out of memory: need %lu bytes to read file record in readBitmap()" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" "Ei voi lukea $Bitmap MFT:tä. Haluatko tehdä kokeellisen haun sille ? (Voi " "kestää pitkään)" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr " $bitmap ei löydy kokeellisella haulla." #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "Ei voi käyttää $bitmap tiedostoa" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "NTFS $Bitmap on liian pieni" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "Muisti loppu" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" "%stavuja sektorilla..............%u\n" "Sektoreita klusterilla...........%u\n" "Tiedoston tallennuskoko...............%lu\n" "LCN of MFT Data attrib........%llu\n" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "NTFS-tiedot" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" "Muisti loppu: tarvitaan %lu tavua voidakseen lukea tiedostot readVolumeLabel" "()" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "NTFS: \"Attribute List\"-attribuuttia ei vielä tueta." #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "NTFS: Compression flag for DATA attribute not null: %ld" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "NTFS: Kestävä data -attribuutti ei ole tuettu" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "NTFS: processRunList() palautti -1" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "Virhe readFilenameAttribute:ssa" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "\"filename\" attribuutin täytyy olla kestävä !" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "$bitmap tietohaku" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "kokeellinen haku onnistui" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "%sHPFS versio:.................%d\n" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "HPFS-tiedot" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "Ei voi lukea boottilohkoa" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "Ei voi lukea superblockia" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "Ei voi lukea spareblockia" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "Virheellisen HPFS magic -numerot. Virheellinen HPFS osio." #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "ReiserFS-tiedot" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "JFS-tiedot" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" "%sVarausryhmä:........%lu\n" "Lohkoja varausryhmässä...%lu\n" "Varausryhmän koko:........%s\n" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "XFS-tiedot" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "Odotetaan:..." #: src/server/partimaged.cpp:85 msgid "error !" msgstr "virhe !" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "haetaan tilaa:..." #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "kirjoitetaan ..." #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "avataan kirjoitusta varten ..." #: src/server/partimaged.cpp:157 msgid "saving" msgstr "tallennetaan" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "luetaan ..." #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "suljetaan ..." #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "avataan lukua varten ..." #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "palautetaan" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "lopetettu" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "Partimaged" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "Client #" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "Tila" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "Host" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "Sijainti" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "Koko" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "odotetaan" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" "Segmentointivirhe. Raportoi bugi ja lähetä tiedosto [%s] ohjelman " "kehittäjille\n" #: src/server/partimaged-main.cpp:119 #, fuzzy, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" "Partition Image Daemon (http://www.partimage.org/) versio %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "käyttö: partimaged [options]\n" "\n" "Optiot:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "Lokitiedostoa ei saada auki %s: %s\n" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "Korjaa ja yritä uudestaan.\n" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "käyttäjää ei löydy \"%s\"\n" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "lisää ja yritä uudelleen\n" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" "Euid:tä ei voitu käynnistää koska sisäänkirjautuminen ei tapahtunut " "roottina\n" "odotettavissa joitain virheilmoituksia, kuten pääsy estetty tms.\n" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "Partition Image Daemon versio %s+SSL\n" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "Partition Image Daemon versio %s\n" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "(distributed under the GNU GPL 2)\n" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "Odotetaan asiakasta ..." #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "liikaa asiakkaita kytkeytyneenä" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "==== Partition Image: compilation options used ====\n" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" "\n" "* Tuetut tiedostojärjestelmät:\n" " - " #: src/shared/common.cpp:80 msgid "\n" msgstr "\n" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr " - Ext2fs tuki perustuu libext2fs-kirjastoon\n" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr " - Ext2fs tuki: sisäinen koodi\n" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" "\n" "* Debuggausoptiot:\n" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr " - PARTIMAGE_LOG=%s\n" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr " - PARTIMAGED_LOG=%s\n" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr " - DEVEL ENABLED\n" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr " - DEVEL DISABLED\n" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr " - DEFAULT_DEBUG_LEVEL=%d\n" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr " - APPEND_PID=%s\n" #: src/shared/common.cpp:105 msgid "true" msgstr "tosi" #: src/shared/common.cpp:106 msgid "false" msgstr "epätosi" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" "\n" "* Muut optiot:\n" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr " - CURRENT_IMAGE_FORMAT=%s\n" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr " - KÄYTTÄJIEN PITÄÄ LOGGAUTUA\n" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr " - PARTIMAGED_USERS=%s\n" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr " - USERS DON'T LOGIN\n" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr " - PARTIMAGED_USERS ei käytetty\n" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr " - SSL ENABLED\n" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr " - SSL DISABLED\n" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr " - CHEUID ENABLED\n" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr " - CHEUID DISABLED\n" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "%lld tavua" #: src/shared/common.cpp:259 #, fuzzy, c-format msgid "%.2f KiB" msgstr "%.2f kt" #: src/shared/common.cpp:264 #, fuzzy, c-format msgid "%.2f MiB" msgstr "%.2f Mt" #: src/shared/common.cpp:269 #, fuzzy, c-format msgid "%.2f GiB" msgstr "%.2f Gt" #: src/shared/common.cpp:274 #, fuzzy, c-format msgid "%.2f TiB" msgstr "%.2f Tt" #~ msgid "Kilo-Bytes" #~ msgstr "Kilotavua" #~ msgid "mount: %s" #~ msgstr "asenna: %s" #~ msgid "Overwrite image ?" #~ msgstr "Ylikirjoita image ?" #~ msgid " - PARTIMAGE_LOCAL_DEBUG=%s\n" #~ msgstr " - PARTIMAGE_LOCAL_DEBUG=%s\n" partimage-0.6.8/po/partimage.pot0000644000000000000000000013163311256747730015332 0ustar rootroot# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2004-02-08 21:17+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/client/gui_text.cpp:56 msgid "Restore an MBR to the hard disk" msgstr "" #: src/client/gui_text.cpp:59 msgid "Disk with the MBR to restore" msgstr "" #: src/client/gui_text.cpp:62 msgid "Original MBR to use" msgstr "" #: src/client/gui_text.cpp:65 msgid "What to restore:" msgstr "" #: src/client/gui_text.cpp:67 msgid "The whole MBR" msgstr "" #: src/client/gui_text.cpp:207 src/client/misc.cpp:1747 #, c-format msgid "" "Cannot read \"/proc/partitions\" (%s). Then, you must use the command line " "to run Partition Image. Type \"partimage --help\" for help." msgstr "" #: src/client/gui_text.cpp:313 msgid "Continue (F5)" msgstr "" #: src/client/gui_text.cpp:314 src/client/interface_newt.cpp:240 msgid "Exit (F6)" msgstr "" #: src/client/gui_text.cpp:315 msgid "Main window (F7)" msgstr "" #: src/client/gui_text.cpp:325 src/client/gui_text.cpp:455 msgid "save partition to image file" msgstr "" #: src/client/gui_text.cpp:327 msgid "Compression level" msgstr "" #: src/client/gui_text.cpp:328 msgid "None (very fast + very big file)" msgstr "" #: src/client/gui_text.cpp:332 src/client/gui_text.cpp:607 msgid "Options" msgstr "" #: src/client/gui_text.cpp:333 msgid "Check partition before saving" msgstr "" #: src/client/gui_text.cpp:334 msgid "Enter description" msgstr "" #: src/client/gui_text.cpp:335 msgid "Overwrite without prompt" msgstr "" #: src/client/gui_text.cpp:337 msgid "Image split mode" msgstr "" #: src/client/gui_text.cpp:338 msgid "Automatic split (when no space left)" msgstr "" #: src/client/gui_text.cpp:339 msgid "Into files whose size is:............" msgstr "" #: src/client/gui_text.cpp:342 msgid "MiB" msgstr "" #: src/client/gui_text.cpp:343 msgid "Wait after each volume change" msgstr "" #: src/client/gui_text.cpp:345 src/client/gui_text.cpp:612 msgid "If finished successfully:" msgstr "" #: src/client/gui_text.cpp:346 src/client/gui_text.cpp:613 msgid "Wait" msgstr "" #: src/client/gui_text.cpp:347 src/client/gui_text.cpp:614 msgid "Halt" msgstr "" #: src/client/gui_text.cpp:348 src/client/gui_text.cpp:615 msgid "Reboot" msgstr "" #: src/client/gui_text.cpp:349 src/client/gui_text.cpp:616 msgid "Quit" msgstr "" #: src/client/gui_text.cpp:350 msgid "Last" msgstr "" #: src/client/gui_text.cpp:458 #, c-format msgid "Partition to save:...........%s" msgstr "" #: src/client/gui_text.cpp:461 #, c-format msgid "Size of the Partition:.......%s = %llu bytes" msgstr "" #: src/client/gui_text.cpp:464 #, c-format msgid "Image file to create.........%s" msgstr "" #: src/client/gui_text.cpp:470 #, c-format msgid "Detected file system:........%s" msgstr "" #: src/client/gui_text.cpp:476 msgid "Compression level:...........None" msgstr "" #: src/client/gui_text.cpp:479 msgid "Compression level:...........gzip" msgstr "" #: src/client/gui_text.cpp:482 msgid "Compression level:...........bzip2" msgstr "" #: src/client/gui_text.cpp:485 msgid "Compression level:...........lzo" msgstr "" #: src/client/gui_text.cpp:539 #, c-format msgid "Time elapsed:................%s" msgstr "" #: src/client/gui_text.cpp:542 #, c-format msgid "Estimated time remaining:....%s" msgstr "" #: src/client/gui_text.cpp:547 #, c-format msgid "Speed:.......................%s/min" msgstr "" #: src/client/gui_text.cpp:550 #, c-format msgid "Data copied:.................%s / %s" msgstr "" #: src/client/gui_text.cpp:582 #, c-format msgid "Current image file:..........%s" msgstr "" #: src/client/gui_text.cpp:587 #, c-format msgid "Image file size:.............%s" msgstr "" #: src/client/gui_text.cpp:591 #, c-format msgid "Available space for image:...%s = %llu bytes" msgstr "" #: src/client/gui_text.cpp:604 src/client/gui_text.cpp:664 msgid "restore partition from image file" msgstr "" #: src/client/gui_text.cpp:609 msgid "Erase free blocks with zero values" msgstr "" #: src/client/gui_text.cpp:610 msgid "Simulation of the restoration (nothing is written)" msgstr "" #: src/client/gui_text.cpp:662 msgid "simulate partition restoration from image file" msgstr "" #: src/client/gui_text.cpp:667 #, c-format msgid "Partition to restore:.............%s" msgstr "" #: src/client/gui_text.cpp:670 #, c-format msgid "Size of partition to restore:.....%s = %llu bytes" msgstr "" #: src/client/gui_text.cpp:673 #, c-format msgid "Image file to use.................%s" msgstr "" #: src/client/gui_text.cpp:676 #, c-format msgid "File system:......................%s" msgstr "" #: src/client/gui_text.cpp:681 #, c-format msgid "Partition was on device:..........%s\n" msgstr "" #: src/client/gui_text.cpp:684 #, c-format msgid "Image created on:.................%s\n" msgstr "" #: src/client/gui_text.cpp:687 #, c-format msgid "Size of the original partition:...%s = %llu bytes" msgstr "" #: src/client/gui_text.cpp:754 #, c-format msgid "Time elapsed:.....................%s" msgstr "" #: src/client/gui_text.cpp:757 #, c-format msgid "Estimated time remaining:.........%s" msgstr "" #: src/client/gui_text.cpp:762 #, c-format msgid "Speed:............................%s/min" msgstr "" #: src/client/gui_text.cpp:765 #, c-format msgid "Data copied:......................%s / %s" msgstr "" #: src/client/gui_text.cpp:796 #, c-format msgid "Current image file:...............%s" msgstr "" #: src/client/gui_text.cpp:804 msgid "Compression level:................None\n" msgstr "" #: src/client/gui_text.cpp:807 msgid "Compression level:................gzip" msgstr "" #: src/client/gui_text.cpp:810 msgid "Compression level:................bzip2" msgstr "" #: src/client/gui_text.cpp:813 msgid "Compression level:................lzo" msgstr "" #: src/client/gui_text.cpp:839 msgid "Change" msgstr "" #: src/client/gui_text.cpp:840 src/client/interface_newt.cpp:123 #: src/client/interface_newt.cpp:134 src/client/interface_newt.cpp:151 #: src/client/interface_newt.cpp:379 src/client/interface_newt.cpp:432 msgid "Cancel" msgstr "" #: src/client/gui_text.cpp:842 msgid "Enter new filename" msgstr "" #: src/client/gui_text.cpp:886 #, c-format msgid "" "The following imagefile already exist.\n" "Do you want to overwrite or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" #: src/client/gui_text.cpp:891 src/client/interface_base.cpp:433 msgid "Overwrite image?" msgstr "" #: src/client/gui_text.cpp:891 msgid "Overwrite" msgstr "" #: src/client/gui_text.cpp:903 #, c-format msgid "" "The following imagefile is locked.\n" "Do you want to wait and retry or change image filename ?\n" "File: %s\n" "To change the filename, please enter a full path\n" "(location + filename) without volume number at the end, \n" "and press \"Change\"" msgstr "" #: src/client/gui_text.cpp:908 msgid "imagefile locked" msgstr "" #: src/client/gui_text.cpp:908 msgid "Retry" msgstr "" #: src/client/gui_text.cpp:921 #, c-format msgid "" "unable to access to %s\n" "\n" "Please, enteranother directory path (without filename):" msgstr "" #: src/client/gui_text.cpp:924 msgid "wrong path" msgstr "" #. warning #: src/client/imagefile.cpp:631 msgid "Automatic mount" msgstr "" #: src/client/imagefile.cpp:632 #, c-format msgid "Please, press \"ok\" to mount [%s] on [%s]" msgstr "" #: src/client/imagefile.cpp:1000 msgid "Wrong volume inserted" msgstr "" #: src/client/imagefile.cpp:1001 msgid "You will be prompted to remove this media and insert the right one" msgstr "" #: src/client/imagefile.cpp:1008 #, c-format msgid "" "Can't read the following volume file:\n" "%s\n" "%s" msgstr "" #: src/client/imagefile.cpp:1010 msgid "Enter another full path (directory & name)" msgstr "" #: src/client/imagefile.cpp:1011 msgid "Volume not found" msgstr "" #: src/client/imginfo.cpp:44 msgid "No flag set" msgstr "" #: src/client/imginfo.cpp:50 msgid "No description" msgstr "" #: src/client/imginfo.cpp:56 src/client/imginfo.cpp:110 msgid "none" msgstr "" #: src/client/imginfo.cpp:60 src/client/imginfo.cpp:126 msgid "unknown" msgstr "" #: src/client/imginfo.cpp:64 #, c-format msgid "" "Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%ld: %s\n" "Creation date:.........%sPartition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%ld -> %s\n" "MBR saved count:.......%lu\n" "\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n" "\n" msgstr "" #: src/client/imginfo.cpp:89 #, c-format msgid "" "-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%llu\n" "Device model:..........%s\n" "\n" msgstr "" #: src/client/imginfo.cpp:130 #, c-format msgid "" "Volume number:.........%lu\n" "Volume size:...........%s\n" "Compression level: ....%ld -> %s\n" "Identificator:.........%llu=%llX\n" "\n" msgstr "" #: src/client/imginfo.cpp:155 #, c-format msgid "The image file \"%s\" cannot be found" msgstr "" #: src/client/imginfo.cpp:176 msgid "Cannot read image file" msgstr "" #: src/client/imginfo.cpp:231 msgid "Image informations" msgstr "" #: src/client/interface_base.cpp:40 src/client/interface_newt.cpp:134 #: src/client/misc.cpp:1888 src/client/fs/fs_ntfs.cpp:184 msgid "Error" msgstr "" #: src/client/interface_base.cpp:48 #, c-format msgid "About Partition Image %s" msgstr "" #: src/client/interface_base.cpp:50 #, c-format msgid "" "Partition Image is distributed under the GNU GPL 2 (General Public License)\n" "\n" "version:...%s\n" "web:.......http://www.partimage.org/\n" "\n" "Authors:\n" "Francois Dupoux \n" "Franck Ladurelle " msgstr "" #: src/client/interface_base.cpp:61 #, c-format msgid "Can't write block %ld to image" msgstr "" #: src/client/interface_base.cpp:65 #, c-format msgid "Can't write %s to image" msgstr "" #: src/client/interface_base.cpp:69 #, c-format msgid "Can't write bitmap block %ld to image" msgstr "" #: src/client/interface_base.cpp:73 #, c-format msgid "Can't read bitmap block %ld from image" msgstr "" #: src/client/interface_base.cpp:77 #, c-format msgid "Can't write block %ld to harddrive" msgstr "" #: src/client/interface_base.cpp:81 #, c-format msgid "Can't read block %ld from image (%d)" msgstr "" #: src/client/interface_base.cpp:85 #, c-format msgid "Can't read %s from image" msgstr "" #: src/client/interface_base.cpp:89 msgid "Can't read SuperBlock" msgstr "" #: src/client/interface_base.cpp:93 msgid "Can't write SuperBlock" msgstr "" #: src/client/interface_base.cpp:97 #, c-format msgid "Can't read block %ld from harddrive partition" msgstr "" #: src/client/interface_base.cpp:101 #, c-format msgid "Can't read bitmap block %ld from harddrive partition (%s)" msgstr "" #: src/client/interface_base.cpp:106 msgid "Can't write the MBR" msgstr "" #: src/client/interface_base.cpp:112 msgid "Can't read the MBR" msgstr "" #: src/client/interface_base.cpp:118 #, c-format msgid "Not a %s partition. Check the filesystem type" msgstr "" #: src/client/interface_base.cpp:124 msgid "" "The partition was saved with a newer version of Partion Image. Please " "download the last one." msgstr "" #: src/client/interface_base.cpp:131 msgid "Error while writing image file: disk full !" msgstr "" #: src/client/interface_base.cpp:137 #, c-format msgid "Can't detect file system of partition %s" msgstr "" #: src/client/interface_base.cpp:143 msgid "Can't write main header" msgstr "" #: src/client/interface_base.cpp:149 msgid "Can't write main tail" msgstr "" #: src/client/interface_base.cpp:155 msgid "Can't read main tail" msgstr "" #: src/client/interface_base.cpp:161 msgid "" "The image you try to restore was encrypted. The current version doesn't " "support encryption. Please, download the latest version of partimage." msgstr "" #: src/client/interface_base.cpp:169 #, c-format msgid "" "%s is not the first volume of an image. Please, retry with the volume number " "000" msgstr "" #: src/client/interface_base.cpp:176 #, c-format msgid "%s is not a valid partition image file." msgstr "" #: src/client/interface_base.cpp:182 #, c-format msgid "" "The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes" msgstr "" #: src/client/interface_base.cpp:190 #, c-format msgid "" "There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:\n" "Original CRC64:.....%llu\n" "Current CRC64:......%llu" msgstr "" #: src/client/interface_base.cpp:199 #, c-format msgid "Invalid volume number (%ld instead of %ld)." msgstr "" #: src/client/interface_base.cpp:206 msgid "Error on close" msgstr "" #: src/client/interface_base.cpp:213 #, c-format msgid "The partition %s is already locked by another process. Can't work on it" msgstr "" #: src/client/interface_base.cpp:226 #, c-format msgid "Can't open partition %s" msgstr "" #: src/client/interface_base.cpp:232 #, c-format msgid "Can't lock partition %s" msgstr "" #: src/client/interface_base.cpp:238 msgid "Can't read main header: imagefile was damaged" msgstr "" #: src/client/interface_base.cpp:244 msgid "Can't write informations" msgstr "" #: src/client/interface_base.cpp:250 msgid "Can't read informations" msgstr "" #: src/client/interface_base.cpp:256 msgid "Can't read MBR Magic: imagefile was damaged" msgstr "" #: src/client/interface_base.cpp:278 msgid "Know bug" msgstr "" #: src/client/interface_base.cpp:278 msgid "" "Cannot restore the MBR from an image compressed with bzip2. You have to " "change the compression level." msgstr "" #. return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("You are not logged as root. You may have \"access denied\" errors" #. " when working.")); #. newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The MBR is a very important data of the hard disk. If you write " #. "a bad MBR, you will lose all the partitions of your hard drive. " #. "Don't continue unless you know what you are doing. Press 'Continue' " #. "to restore.\n" #. "Device with MBR to restore:.........%s [%llu]\n" #. "Original MBR:.......................%s [%llu]"), #. szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); #. return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), #. i18n("The original hard disk does not fit with the current hard disk. " #. "The MBR you are trying to restore was saved from another hard disk. " #. "This means the original and current hard disks does not have the same " #. "size or they are not on the same device (%s and %s). " #. "Do you want to continue?"), szOriginalDevice, szCurrentDevice); #: src/client/interface_base.cpp:288 src/client/interface_base.cpp:316 #: src/client/interface_base.cpp:323 src/client/interface_base.cpp:330 #: src/client/interface_base.cpp:338 src/client/interface_base.cpp:345 #: src/client/interface_base.cpp:368 src/client/interface_base.cpp:388 #: src/client/main.cpp:528 src/client/misc.cpp:1880 msgid "Warning" msgstr "" #: src/client/interface_base.cpp:288 src/client/misc.cpp:1880 msgid "" "You are not logged as root. You may have \"access denied\" errors when " "working." msgstr "" #. return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), #. i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" #. "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume); #: src/client/interface_base.cpp:298 msgid "New Volume" msgstr "" #: src/client/interface_base.cpp:298 #, c-format msgid "" "The volume has been changed.\n" "Old: %s\n" "New: %s/%s.%.3ld\n" "Press Enter to continue" msgstr "" #. return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), #. i18n("Do you really want to restore %s from the image file %s ?"), #. szDevice, szImageFilename); #: src/client/interface_base.cpp:308 msgid "Confirmation" msgstr "" #: src/client/interface_base.cpp:309 #, c-format msgid "Do you really want to restore %s from the image file %s ?" msgstr "" #: src/client/interface_base.cpp:317 #, c-format msgid "%s found errors on the file system." msgstr "" #: src/client/interface_base.cpp:324 #, c-format msgid "Partimage will not check partition because %s does't exist." msgstr "" #: src/client/interface_base.cpp:331 #, c-format msgid "Partimage will not check partition because of run access denied for %s." msgstr "" #: src/client/interface_base.cpp:338 #, c-format msgid "The current %s support is experimental !" msgstr "" #: src/client/interface_base.cpp:345 #, c-format msgid "The current %s support is beta !" msgstr "" #. newtWinMessage(i18n("Simulation mode"), i18n("Ok"), #. i18n("You are using simulation mode: no write will be performed")); #: src/client/interface_base.cpp:353 msgid "Simulation mode" msgstr "" #: src/client/interface_base.cpp:353 msgid "You are using simulation mode: no write will be performed" msgstr "" #: src/client/interface_base.cpp:369 #, c-format msgid "" "The MBR is a very important data of the hard disk. If you write a bad MBR, " "you will lose all the partitions of your hard drive. Don't continue unless " "you know what you are doing. Press 'Continue' to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]" msgstr "" #: src/client/interface_base.cpp:389 #, c-format msgid "" "The original hard disk does not fit with the current hard disk. The MBR you " "are trying to restore was saved from another hard disk. This means the " "original and current hard disks does not have the same size or they are not " "on the same device (%s and %s). Do you want to continue?" msgstr "" #: src/client/interface_base.cpp:399 src/client/main.cpp:730 msgid "Success" msgstr "" #: src/client/interface_base.cpp:399 #, c-format msgid "" "The MBR of [%s] has beensuccessfully restored. You might need to reboot your " "computer if you wantthe operating system to use the new MBR." msgstr "" #: src/client/interface_base.cpp:420 src/client/interface_base.cpp:430 #, c-format msgid "Error: %s" msgstr "" #: src/client/interface_base.cpp:427 msgid "Action canceled as user required" msgstr "" #: src/client/interface_base.cpp:433 #, c-format msgid "The %s imagefile already exist. Do you want to overwrite it?" msgstr "" #: src/client/interface_base.cpp:440 msgid "Access denied" msgstr "" #: src/client/interface_base.cpp:440 #, c-format msgid "You don't have write access on %s" msgstr "" #: src/client/interface_base.cpp:444 #, c-format msgid "Invalid compression level for %s" msgstr "" #: src/client/interface_base.cpp:448 #, c-format msgid "imagefile %s is already open" msgstr "" #: src/client/interface_base.cpp:458 #, c-format msgid "file %s is too short to be a partimage volume: can't read header" msgstr "" #. case ERR_PARTITIONVOLUME: #. msgBoxError(i18n("file %s is not an partimage volume: " #. "magic string does not match"), szFilename); #. return ERR_QUIT; #. ERR_WRONGMAGIC: #: src/client/interface_base.cpp:468 #, c-format msgid "file %s is not an partimage file: magic string does not match" msgstr "" #: src/client/interface_base.cpp:473 #, c-format msgid "magic string does not match: error in the image file [%s]" msgstr "" #: src/client/interface_base.cpp:477 msgid "the current volume doesn't fit with current image: wrong identificator" msgstr "" #: src/client/interface_base.cpp:482 msgid "Out of memory." msgstr "" #: src/client/interface_base.cpp:486 msgid "incorrect password or user not in partimagedusers file" msgstr "" #: src/client/interface_base.cpp:490 msgid "Too many clients connected to partimaged. Please, retry later" msgstr "" #: src/client/interface_base.cpp:495 #, c-format msgid "" "Only 4096 bytes per block %s volumes are supported. Current one is %lu bytes/" "block" msgstr "" #: src/client/interface_base.cpp:500 #, c-format msgid "" "The partition %s id already locked by anotherprocess. You can't work on it" msgstr "" #: src/client/interface_base.cpp:509 msgid "" "Error while checking the data: Invalid block number.Maybe a volume or some " "data were skipped." msgstr "" #: src/client/interface_base.cpp:514 #, c-format msgid "This volume (%ld) is not the expected one: %ld." msgstr "" #: src/client/interface_base.cpp:519 msgid "" "Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. (Try again using IP address)" msgstr "" #: src/client/interface_base.cpp:559 msgid "No MBR was found in this imagefile. We can't continue" msgstr "" #: src/client/interface_base.cpp:563 msgid "Partition checks found error(s) on partitions" msgstr "" #: src/client/interface_base.cpp:578 msgid "Impossible to read MBR from disk" msgstr "" #: src/client/interface_base.cpp:581 #, c-format msgid "Invalid or damaged filesystem %s" msgstr "" #: src/client/interface_base.cpp:587 #, c-format msgid "Impossible to zero the block on harddrive: %s" msgstr "" #: src/client/interface_base.cpp:591 msgid "" "Connexion refused by server: incompatibles networking options.Try disabling " "login option for server with '-L'" msgstr "" #: src/client/interface_base.cpp:596 msgid "Connexion refused by server: versions mismatch" msgstr "" #: src/client/interface_base.cpp:600 #, c-format msgid "" "The image file was created by a newer release (%s) of Partition Image. " "Please update this software and retry." msgstr "" #: src/client/interface_base.cpp:605 #, c-format msgid "" "The image file was created by an older release (%s) of Partition Image. You " "must use the old version to restoreyour image or you have to recreate it " "with current version" msgstr "" #: src/client/interface_base.cpp:612 #, c-format msgid "" "%s is not a valid Partition Image file or it's damaged. Sorry, can't continue" msgstr "" #: src/client/interface_base.cpp:617 #, c-format msgid "File %s is not a regular file. For security reasons, we can't continue" msgstr "" #: src/client/interface_base.cpp:622 #, c-format msgid "Cannot mount %s" msgstr "" #: src/client/interface_base.cpp:626 #, c-format msgid "Cannot unmount %s" msgstr "" #: src/client/interface_base.cpp:630 #, c-format msgid "" "Cannot create temp file [%s]. Please, check there is space enough and you " "have access rights." msgstr "" #: src/client/interface_base.cpp:634 #, c-format msgid "Cannot create temp file [%s]. No space left on device." msgstr "" #: src/client/interface_base.cpp:639 #, c-format msgid "" "Cannot create temp file in [%s]. Write access is denied for user 'partimag'" msgstr "" #: src/client/interface_base.cpp:642 #, c-format msgid "Cannot create temp file in [%s]. Write access is denied." msgstr "" #: src/client/interface_base.cpp:647 msgid "" "File too large. (larger than 2 GB). Can't continue. This problem can come " "from the kernel, the glibc, the file system which where the image is written" msgstr "" #: src/client/interface_base.cpp:651 #, c-format msgid "Unknown error %d -> %s" msgstr "" #: src/client/interface_newt.cpp:37 msgid "Newt debug information" msgstr "" #: src/client/interface_newt.cpp:37 src/client/interface_newt.cpp:110 #: src/client/interface_newt.cpp:346 src/client/interface_newt.cpp:378 #: src/client/interface_newt.cpp:431 msgid "Ok" msgstr "" #: src/client/interface_newt.cpp:151 msgid "Continue" msgstr "" #: src/client/interface_newt.cpp:174 msgid "Yes" msgstr "" #: src/client/interface_newt.cpp:174 msgid "No" msgstr "" #: src/client/interface_newt.cpp:213 msgid "* Partition to save/restore" msgstr "" #: src/client/interface_newt.cpp:215 msgid "* Image file to create/use" msgstr "" #: src/client/interface_newt.cpp:217 msgid "Action to be done:" msgstr "" #: src/client/interface_newt.cpp:218 msgid "Save partition into a new image file" msgstr "" #: src/client/interface_newt.cpp:219 msgid "Restore partition from an image file" msgstr "" #: src/client/interface_newt.cpp:220 msgid "Restore an MBR from the imagefile" msgstr "" #: src/client/interface_newt.cpp:222 msgid "Connect to server" msgstr "" #: src/client/interface_newt.cpp:224 msgid "Encrypt data on the network with SSL" msgstr "" #: src/client/interface_newt.cpp:227 msgid "SSL disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:229 msgid "SSL&login disabled at compile time" msgstr "" #: src/client/interface_newt.cpp:232 msgid "IP/name of the server:" msgstr "" #: src/client/interface_newt.cpp:234 msgid "Port:" msgstr "" #: src/client/interface_newt.cpp:238 msgid "Next (F5)" msgstr "" #: src/client/interface_newt.cpp:239 msgid "About" msgstr "" #: src/client/interface_newt.cpp:270 msgid "The \"Image\" filed is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:278 msgid "The \"Server IP/Name\" field is empty. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:284 msgid "The \"Server Port\" field is not a valid integer. Cannot continue" msgstr "" #: src/client/interface_newt.cpp:342 src/client/misc.cpp:863 msgid "Partition description" msgstr "" #: src/client/interface_newt.cpp:344 msgid "You can enter a description of the saved partition:" msgstr "" #: src/client/interface_newt.cpp:396 src/client/interface_newt.cpp:452 msgid "Text cannot be empty" msgstr "" #: src/client/interface_newt.cpp:421 msgid "Password required" msgstr "" #: src/client/interface_newt.cpp:424 msgid "Enter your login" msgstr "" #: src/client/interface_newt.cpp:428 msgid "Enter your password" msgstr "" #: src/client/interface_newt.cpp:468 #, c-format msgid "" "Disk full! Can't write next volume file (%s.%.3ld)\n" "to %s\n" "Please, enter another directory path (without filename):" msgstr "" #. *(szMess+2047) = '\0'; #: src/client/interface_newt.cpp:473 msgid "New Volume location" msgstr "" #: src/client/main.cpp:240 src/client/misc.cpp:1915 msgid "server's port must be between 1 and 65535\n" msgstr "" #: src/client/main.cpp:249 msgid "Compression mode must be 0 (none), 1(gzip), 2(bzip2)\n" msgstr "" #: src/client/main.cpp:259 msgid "Finish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit)\n" msgstr "" #: src/client/main.cpp:269 msgid "" "The debug level must be 0(none), 1(user), 2(developer) or 3(debugging)\n" msgstr "" #: src/client/main.cpp:278 #, c-format msgid "Volume size: %llu bytes (%ld MiB)\n" msgstr "" #. version #: src/client/main.cpp:308 #, c-format msgid "Partition Image version %s (distributed under the GNU GPL2).\n" msgstr "" #: src/client/main.cpp:352 msgid "Cannot open debug file.\n" msgstr "" #: src/client/main.cpp:529 msgid "" "You have devfs enabled but not mounted. You have to do it to continue. You " "can also boot with non-devfs kernel if you have one." msgstr "" #: src/client/main.cpp:651 src/client/main.cpp:664 msgid "commiting buffer cache to disk." msgstr "" #: src/client/main.cpp:719 msgid "The MBR was successfully restored" msgstr "" #: src/client/main.cpp:724 msgid "Simulation" msgstr "" #: src/client/main.cpp:726 msgid "Operation" msgstr "" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:741 msgid "Error: Cannot halt the computer" msgstr "" #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:751 msgid "Error: Cannot reboot the computer" msgstr "" #: src/client/main.cpp:782 src/client/main.cpp:789 src/client/main.cpp:815 msgid "Error: Cannot count remaining partimages" msgstr "" #. nRes = system("/sbin/shutdown -r now"); #. nRes = system("/sbin/reboot"); #. if we reach this point, it's because shutdown failed #: src/client/main.cpp:804 msgid "DEBUG: reboot the computer" msgstr "" #: src/client/main.cpp:843 #, c-format msgid "" "Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "Supported file systems:....ext2fs, reiserfs, fat16, fat32, ntfs(exp), hpfs\n" "\n" "usage: partimage [options] \n" " partimage \n" "\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/" "partimg/redhat-6.2.partimg.gz\n" "\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. can be very big\n" "\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file " "(default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image " "file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without " "confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X KB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in " "the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -y, --nosync don't synchronize the disks at the end of the " "operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X Automatic mount with X options. Read the doc for more " "details\n" "* -UX --username=X Username to authenticate to server\n" "* -PX --Password=X Password for authentication of user to server\n" msgstr "" #: src/client/main.cpp:894 msgid "stable" msgstr "" #: src/client/main.cpp:894 msgid "unstable" msgstr "" #: src/client/main.cpp:1050 #, c-format msgid "" "%s successfully finished:\n" "\n" "Time elapsed:...%s\n" "Speed:..........%s/min\n" "Data copied:....%s" msgstr "" #: src/client/misc.cpp:374 msgid "initializing the operation. Please wait..." msgstr "" #: src/client/misc.cpp:417 msgid "Bzip2 bug workaround" msgstr "" #: src/client/misc.cpp:418 msgid "" "Because of a bug, you won't be able to restore MBR from any bzip2 compressed " "image unless you manualy run bzip2 -d on them" msgstr "" #: src/client/misc.cpp:595 msgid "Saving partition to the image file..." msgstr "" #: src/client/misc.cpp:711 msgid "initializing the operation" msgstr "" #: src/client/misc.cpp:1001 src/client/misc.cpp:1015 src/client/misc.cpp:1025 msgid "Error in Main Tail" msgstr "" #: src/client/misc.cpp:1002 msgid "Impossible to read the magic: the image is damaged" msgstr "" #: src/client/misc.cpp:1016 msgid "CRC changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1026 msgid "volume numbers changed: the image is damaged" msgstr "" #: src/client/misc.cpp:1639 msgid "inode missing" msgstr "" #: src/client/misc.cpp:1639 #, c-format msgid "" "%s inode doesn't exists. Partimage can create it for you. You can also use " "the manual mknod command. Do you want this inode to be created for you now ?" msgstr "" #: src/client/misc.cpp:1656 #, c-format msgid "%s is not a block device." msgstr "" #: src/client/misc.cpp:1708 msgid "You haven't access to /proc/mounts." msgstr "" #: src/client/misc.cpp:1714 msgid "An error occurred trying to read /proc/mounts." msgstr "" #: src/client/misc.cpp:1888 #, c-format msgid "" "The %s partition is mounted. Partition Image can't work on mounted " "partitions. Please, unmount it before. You can do it with \"umount %s\"" msgstr "" #: src/client/misc.cpp:1908 msgid "" "Split volumes size must be an integer greater than 1024 (size >= 1024 KB)" msgstr "" #: src/client/misc.cpp:1928 msgid "Invalid automount options. Read the manual for more details" msgstr "" #: src/client/misc.cpp:1936 #, c-format msgid "The second argument [%s] must be a valid device (ex: /dev/hda1)" msgstr "" #: src/client/misc.cpp:1945 #, c-format msgid "" "The third argument [%s] must be a valid regular file (not a directory, a " "symlink, ...)" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Exit partimage ?" msgstr "" #: src/client/fs/fs_base.cpp:81 msgid "Do you really want to cancel the current operation ?" msgstr "" #: src/client/fs/fs_base.cpp:346 msgid "local check error" msgstr "" #: src/client/fs/fs_base.cpp:347 msgid "" "Impossible to find a local check structure. Data may be damaged. Do you want " "to continue ?" msgstr "" #: src/client/fs/fs_base.cpp:359 src/client/fs/fs_base.cpp:371 msgid "local CRC error" msgstr "" #: src/client/fs/fs_base.cpp:360 msgid "" "There was a position error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:372 msgid "" "There was a CRC error in CCheck. Data may be damaged. Do you want to " "continue ?" msgstr "" #: src/client/fs/fs_base.cpp:473 msgid "reading partition properties" msgstr "" #: src/client/fs/fs_base.cpp:485 msgid "checking the file system with fsck" msgstr "" #: src/client/fs/fs_base.cpp:507 msgid "writing header" msgstr "" #: src/client/fs/fs_base.cpp:564 src/client/fs/fs_base.cpp:699 msgid "copying used data blocks" msgstr "" #: src/client/fs/fs_base.cpp:588 msgid "reading partition informations" msgstr "" #: src/client/fs/fs_base.cpp:724 #, c-format msgid "" "Block size....................%llu bytes\n" "Total blocks count............%llu\n" "Used blocks count.............%llu\n" "Free blocks count.............%llu\n" msgstr "" #: src/client/fs/fs_base.cpp:738 #, c-format msgid "" "%sSpace usage:..................%llu %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n" msgstr "" #: src/client/fs/fs_ext2.cpp:105 #, c-format msgid "" "%sNumber of groups..............%lu\n" "First block...................%lu\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%lu\n" msgstr "" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "yes" msgstr "" #: src/client/fs/fs_ext2.cpp:113 src/client/fs/fs_ext2.cpp:114 #: src/client/fs/fs_ext2.cpp:115 msgid "no" msgstr "" #: src/client/fs/fs_ext2.cpp:119 msgid "Ext3fs informations" msgstr "" #: src/client/fs/fs_ext2.cpp:121 msgid "Ext2fs informations" msgstr "" #: src/client/fs/fs_ext2.cpp:331 msgid "There was an error while reading the bitmap" msgstr "" #: src/client/fs/fs_fat.cpp:123 #, c-format msgid "" "%sSector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%lu\n" "FAT tables count..............%u\n" "Total Sectors Count...........%lu\n" "Sectors per FAT...............%lu\n" "Clusters count:...............%lu\n" "Used clusters.................%lu\n" "Free clusters.................%lu\n" "Damaged clusters..............%lu\n" msgstr "" #: src/client/fs/fs_fat.cpp:142 msgid "FAT informations" msgstr "" #: src/client/fs/fs_fat.cpp:288 msgid "Can't read boot sector" msgstr "" #: src/client/fs/fs_fat.cpp:343 msgid "" "m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one." msgstr "" #: src/client/fs/fs_fat.cpp:379 msgid "Can't read FSInfo sector" msgstr "" #: src/client/fs/fs_ntfs.cpp:61 #, c-format msgid "%s is not an NTFS file system partition" msgstr "" #: src/client/fs/fs_ntfs.cpp:134 #, c-format msgid "Out of memory: need %lu bytes to read file record in readBitmap()" msgstr "" #: src/client/fs/fs_ntfs.cpp:184 msgid "" "Unable to read the $Bitmap MFT record. Do you want to make an experimental " "search for it ? (it can take a long time)" msgstr "" #: src/client/fs/fs_ntfs.cpp:199 msgid "Cannot find the $bitmap with experimental search" msgstr "" #: src/client/fs/fs_ntfs.cpp:211 msgid "Cannot use $bitmap file record" msgstr "" #: src/client/fs/fs_ntfs.cpp:220 msgid "NTFS $Bitmap is to small" msgstr "" #: src/client/fs/fs_ntfs.cpp:236 src/client/fs/fs_ntfs.cpp:605 msgid "Out of memory" msgstr "" #: src/client/fs/fs_ntfs.cpp:308 #, c-format msgid "" "%sBytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%lu\n" "LCN of MFT Data attrib........%llu\n" msgstr "" #: src/client/fs/fs_ntfs.cpp:316 msgid "NTFS informations" msgstr "" #: src/client/fs/fs_ntfs.cpp:341 #, c-format msgid "Out of memory: need %lu bytes to read file record in readVolumeLabel()" msgstr "" #: src/client/fs/fs_ntfs.cpp:444 msgid "NTFS: \"Attribute List\" attribute is not yet supported." msgstr "" #: src/client/fs/fs_ntfs.cpp:478 #, c-format msgid "NTFS: Compression flag for DATA attribute not null: %ld" msgstr "" #. WORD nOffsetOfStream; #. nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); #. qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10); #: src/client/fs/fs_ntfs.cpp:493 msgid "NTFS: Resident data attribute not supported" msgstr "" #: src/client/fs/fs_ntfs.cpp:506 msgid "NTFS: processRunList() returned -1" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "Error in readFilenameAttribute" msgstr "" #: src/client/fs/fs_ntfs.cpp:526 msgid "The \"filename\" attribute must be resident !" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "$bitmap record search" msgstr "" #: src/client/fs/fs_ntfs.cpp:858 msgid "experimental search succeed" msgstr "" #: src/client/fs/fs_hpfs.cpp:148 #, c-format msgid "%sHPFS version:.................%d\n" msgstr "" #: src/client/fs/fs_hpfs.cpp:152 msgid "HPFS informations" msgstr "" #: src/client/fs/fs_hpfs.cpp:176 msgid "Can't read boot block" msgstr "" #: src/client/fs/fs_hpfs.cpp:188 msgid "Can't read super block" msgstr "" #: src/client/fs/fs_hpfs.cpp:200 msgid "Can't read spare block" msgstr "" #: src/client/fs/fs_hpfs.cpp:207 msgid "Invalid HPFS magic numbers. Not a valid HPFS partition." msgstr "" #: src/client/fs/fs_reiser.cpp:113 msgid "ReiserFS informations" msgstr "" #: src/client/fs/fs_jfs.cpp:566 msgid "JFS informations" msgstr "" #: src/client/fs/fs_xfs.cpp:210 #, c-format msgid "" "%sAllocation Group count:.......%lu\n" "Blocks per Allocation Group...%lu\n" "Allocation Group size:........%s\n" msgstr "" #: src/client/fs/fs_xfs.cpp:217 msgid "XFS informations" msgstr "" #: src/server/partimaged.cpp:77 msgid "Waitting ..." msgstr "" #: src/server/partimaged.cpp:85 msgid "error !" msgstr "" #: src/server/partimaged.cpp:104 msgid "getspace ..." msgstr "" #: src/server/partimaged.cpp:118 msgid "writting ..." msgstr "" #: src/server/partimaged.cpp:146 msgid "opening for write ..." msgstr "" #: src/server/partimaged.cpp:157 msgid "saving" msgstr "" #: src/server/partimaged.cpp:162 msgid "reading ..." msgstr "" #: src/server/partimaged.cpp:188 msgid "closing ..." msgstr "" #: src/server/partimaged.cpp:200 msgid "opening for read ..." msgstr "" #: src/server/partimaged.cpp:201 msgid "restoring" msgstr "" #: src/server/partimaged.cpp:382 msgid "finished" msgstr "" #: src/server/partimaged-gui_newt.cpp:56 src/server/partimaged-gui_newt.cpp:58 #: src/server/partimaged-gui_newt.cpp:62 src/server/partimaged-gui_newt.cpp:64 #: src/server/partimaged-gui_newt.cpp:68 src/server/partimaged-gui_newt.cpp:70 msgid "Partimaged" msgstr "" #: src/server/partimaged-gui_newt.cpp:83 msgid "Client #" msgstr "" #: src/server/partimaged-gui_newt.cpp:84 msgid "State" msgstr "" #: src/server/partimaged-gui_newt.cpp:85 msgid "Host" msgstr "" #: src/server/partimaged-gui_newt.cpp:86 msgid "Location" msgstr "" #: src/server/partimaged-gui_newt.cpp:87 msgid "Size" msgstr "" #: src/server/partimaged-gui_newt.cpp:109 msgid "waiting" msgstr "" #: src/server/partimaged-main.cpp:108 #, c-format msgid "" "Segmentation fault. Please report the bug and send the [%s] file to authors\n" msgstr "" #: src/server/partimaged-main.cpp:119 #, c-format msgid "" "Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n" "\n" "usage: partimaged [options]\n" "\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" msgstr "" #: src/server/partimaged-main.cpp:150 #, c-format msgid "Impossible to open logfile %s: %s\n" msgstr "" #: src/server/partimaged-main.cpp:152 msgid "Fix this and retry.\n" msgstr "" #: src/server/partimaged-main.cpp:173 #, c-format msgid "impossible to find user \"%s\"\n" msgstr "" #: src/server/partimaged-main.cpp:174 msgid "add it and retry\n" msgstr "" #: src/server/partimaged-main.cpp:177 msgid "" "Warning: we couldn't changed euid because we weren't launched as root\n" "expect some access denied or troubles like this.\n" msgstr "" #: src/server/partimaged-main.cpp:226 #, c-format msgid "Partition Image Daemon version %s+SSL\n" msgstr "" #: src/server/partimaged-main.cpp:228 #, c-format msgid "Partition Image Daemon version %s\n" msgstr "" #: src/server/partimaged-main.cpp:230 msgid "(distributed under the GNU GPL 2)\n" msgstr "" #: src/server/partimaged-main.cpp:373 msgid "Waiting for client ..." msgstr "" #: src/server/partimaged-main.cpp:392 msgid "too much client connected" msgstr "" #: src/shared/common.cpp:75 msgid "==== Partition Image: compilation options used ====\n" msgstr "" #: src/shared/common.cpp:76 #, c-format msgid "" "\n" "* Version is %s [%s].\n" msgstr "" #: src/shared/common.cpp:78 msgid "" "\n" "* Supported file systems:\n" " - " msgstr "" #: src/shared/common.cpp:80 msgid "\n" msgstr "" #: src/shared/common.cpp:83 msgid " - Ext2fs support: based on libext2fs library\n" msgstr "" #: src/shared/common.cpp:85 msgid " - Ext2fs support: internal code\n" msgstr "" #: src/shared/common.cpp:88 msgid "" "\n" "* Debug options:\n" msgstr "" #: src/shared/common.cpp:91 #, c-format msgid " - PARTIMAGE_LOG=%s\n" msgstr "" #: src/shared/common.cpp:94 #, c-format msgid " - PARTIMAGED_LOG=%s\n" msgstr "" #: src/shared/common.cpp:98 msgid " - DEVEL ENABLED\n" msgstr "" #: src/shared/common.cpp:100 msgid " - DEVEL DISABLED\n" msgstr "" #: src/shared/common.cpp:103 #, c-format msgid " - DEFAULT_DEBUG_LEVEL=%d\n" msgstr "" #: src/shared/common.cpp:105 #, c-format msgid " - APPEND_PID=%s\n" msgstr "" #: src/shared/common.cpp:105 msgid "true" msgstr "" #: src/shared/common.cpp:106 msgid "false" msgstr "" #: src/shared/common.cpp:109 msgid "" "\n" "* Other options:\n" msgstr "" #: src/shared/common.cpp:110 #, c-format msgid " - CURRENT_IMAGE_FORMAT=%s\n" msgstr "" #: src/shared/common.cpp:113 msgid " - USERS MUST LOGIN\n" msgstr "" #: src/shared/common.cpp:114 #, c-format msgid " - PARTIMAGED_USERS=%s\n" msgstr "" #: src/shared/common.cpp:116 msgid " - USERS DON'T LOGIN\n" msgstr "" #: src/shared/common.cpp:117 msgid " - PARTIMAGED_USERS not used\n" msgstr "" #: src/shared/common.cpp:120 msgid " - SSL ENABLED\n" msgstr "" #: src/shared/common.cpp:122 msgid " - SSL DISABLED\n" msgstr "" #: src/shared/common.cpp:125 msgid " - CHEUID ENABLED\n" msgstr "" #: src/shared/common.cpp:127 msgid " - CHEUID DISABLED\n" msgstr "" #: src/shared/common.cpp:254 #, c-format msgid "%lld bytes" msgstr "" #: src/shared/common.cpp:259 #, c-format msgid "%.2f KiB" msgstr "" #: src/shared/common.cpp:264 #, c-format msgid "%.2f MiB" msgstr "" #: src/shared/common.cpp:269 #, c-format msgid "%.2f GiB" msgstr "" #: src/shared/common.cpp:274 #, c-format msgid "%.2f TiB" msgstr "" partimage-0.6.8/po/it.gmo0000644000000000000000000003254411252653754013754 0ustar rootrootÞ•¡$ß, ¨ © « ¾ Þ ö #;MU'£"Ëî 4%Z` y‡š²Ë-á$4Ja-y§¾Ñé8Pd0kœ¬ÅÜî 2'D'l&”5» ñþ $4:9o©»"Îñ÷+% Q [evŠž$¯<Ô#$(M `  ¢+Ãï #<6N7…+½"é  +58 ;EM aoA~FÀ "=;y%µ»Ñ$ñ$%A grw}…+š4Æ?û+;<gˆ¤ -(N#wm›M  WteÚñ (9M=3‹!¿"á%A*\ ‡M•ãæë 'DKS\ kvJzÅ Ç Ú ÷  ! "!",!"O!Rr!,Å! ò!"$3"9X"’""—"º"É"#Ý"$##&#<J#4‡#'¼#'ä## $B0$"s$–$%°$$Ö$0û$$,%(Q%z%•%:%Ø%%ï%$&:&(R&{&(‚&«&*Ã&'î&&'J='ˆ'‘' š'$¨'3Í'4(6(K('k(“(š(º(0Í( þ( ))()<)P)$a)Y†)à)ò)$÷)*#7*)[*'…*0­*Þ*ï* þ*+ !+B+<T+>‘+,Ð+'ý+ %,2,M,],`, c,n,v,,ž,O°,S- T-`-x->“-Ò-%é-.."-.-P.~.-†.'´. Ü. è.ó.ù./3/9S/6/,Ä/8ñ/m*0˜0'¸0)à0w 1W‚1 Ú1tç1\2x2 ‹2 ˜2£2¶2Ç2NÊ2>3)X3"‚3¥3Â3!Ê3 ì34 4B4]Q4¯4²4º4Ú4'÷45 '5 35=5N5a5_1iŠcwp]u–VvŒ”b^Z“ˆQ+hŸL6J<-8= ';T o„g˜šGf,…lž&xX—s›e:9DY#Žn‰`(t‡†~a%€I4NP3M* ‘A¡y‚BH "ƒ{k•.!W$’r CqUR 57‹2z[)|>E\0/jS?dFKO™ m@œ} * Other options: * Supported file systems: - * Version is %s [%s]. $bitmap record search%lld bytes%s found errors on the file system.%s is not a block device.%s is not a valid Partition Image file or it's damaged. Sorry, can't continue%s is not an NTFS file system partition(distributed under the GNU GPL 2) * Image file to create/use* Partition to save/restore==== Partition Image: compilation options used ==== AboutAbout Partition Image %sAccess deniedAction to be done:Can't open partition %sCan't read %s from imageCan't read SuperBlockCan't read block %ld from harddrive partitionCan't read block %ld from image (%d)Can't read boot blockCan't read boot sectorCan't read informationsCan't read main header: imagefile was damagedCan't read super blockCan't read the MBRCan't write %s to imageCan't write SuperBlockCan't write block %ld to imageCan't write informationsCan't write main headerCan't write the MBRCancelCannot find the $bitmap with experimental searchCannot mount %sCannot open debug file. Cannot read image fileCannot unmount %sCannot use $bitmap file recordChangeCheck partition before savingCompression levelCompression level:................None Compression level:................bzip2Compression level:................gzipCompression mode must be 0 (none), 1(gzip), 2(bzip2) ConfirmationContinueContinue (F5)Current image file:...............%sDo you really want to cancel the current operation ?Do you really want to restore %s from the image file %s ?Enter descriptionEnter new filenameErase free blocks with zero valuesErrorError in readFilenameAttributeError on closeError while writing image file: disk full !Error: %sExit (F6)Exit partimage ?Ext2fs informationsExt3fs informationsFAT informationsFile system:......................%sFinish mode must be 0 (wait), 1(halt), 2(reboot) or 3(quit) HPFS informationsHostImage file to use.................%sImage informationsImpossible to read MBR from diskInvalid compression level for %sInvalid or damaged filesystem %sInvalid volume number (%ld instead of %ld).JFS informationsKnow bugLocationMain window (F7)NTFS $Bitmap is to smallNTFS informationsNTFS: "Attribute List" attribute is not yet supported.NTFS: Compression flag for DATA attribute not null: %ldNTFS: Resident data attribute not supportedNTFS: processRunList() returned -1New VolumeNew Volume locationNext (F5)NoOkOperationOptionsOriginal MBR to useOut of memoryOut of memory.Out of memory: need %lu bytes to read file record in readBitmap()Out of memory: need %lu bytes to read file record in readVolumeLabel()OverwriteOverwrite image?Overwrite without promptPartition Image version %s (distributed under the GNU GPL2). Partition descriptionPartition was on device:..........%s Port:ReiserFS informationsRestore an MBR to the hard diskRestore partition from an image fileRetrySave partition into a new image fileSaving partition to the image file...SimulationSizeStateSuccessText cannot be emptyThe "Image" filed is empty. Cannot continueThe "Server IP/Name" field is empty. Cannot continueThe "Server Port" field is not a valid integer. Cannot continueThe "filename" attribute must be resident !The %s imagefile already exist. Do you want to overwrite it?The %s partition is mounted. Partition Image can't work on mounted partitions. Please, unmount it before. You can do it with "umount %s"The current %s support is beta !The current %s support is experimental !The image file "%s" cannot be foundThe image file was created by a newer release (%s) of Partition Image. Please update this software and retry.The volume has been changed. Old: %s New: %s/%s.%.3ld Press Enter to continueThe whole MBRUnable to read the $Bitmap MFT record. Do you want to make an experimental search for it ? (it can take a long time)Unknown error %d -> %sVolume not foundWaitting ...WarningWhat to restore:XFS informationsYesYou are not logged as root. You may have "access denied" errors when working.You can enter a description of the saved partition:You don't have write access on %schecking the file system with fsckcopying used data blockserror !experimental search succeedinitializing the operationinitializing the operation. Please wait...inode missingm_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.nononereading partition informationsreading partition propertiessave partition to image filestableunknownunstablewriting headerwrong pathyesProject-Id-Version: partimage 0.6.4 Report-Msgid-Bugs-To: POT-Creation-Date: 2004-02-08 21:17+0100 PO-Revision-Date: 2005-02-02 10:19+0000 Last-Translator: Marco Colombo Language-Team: Italian MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit * Altre opzioni: * File system gestiti: - * Versione %s [%s]. $bitmap cerca record%lld byteTrovati %s errori nel file system.%s non è un dispositivo a blocchi.%s non è un file valido di Partition Image o è danneggiato. Impossibile continuare%s non è una partizione con file system NTFS(distribuito sotto la GNU GPL2) * File immagine da creare/usare* Partizione da salvare/ripristinare==== Partition Image: opzioni di compilazione usate ==== InfoInformazioni su Partition Image %sAccesso negatoAzione da eseguire:Impossibile aprire la partizione %sImpossibile leggere %s dall'immagineImpossibile leggere il super bloccoImpossibile leggere il blocco %ld dalla partizione del discoImpossibile leggere il blocco %ld dall'immagine (%d)Impossibile leggere il settore di avvioImpossibile leggere il settore di avvioImpossibile leggere le informazioniImpossibile leggere l'header principale: file immagine danneggiatoImpossibile leggere il superbloccoImpossibile leggere l'MBRImpossibile scrivere %s nell'immagineImpossibile scrivere il super bloccoImpossibile scrivere il blocco %ld nell'immagineImpossibile scrivere le informazioniImpossibile scrivere l'header principaleImpossibile scrivere l'MBRAnnullaImpossibile trovare la $bitmap con la ricerca sperimentaleImpossibile montare %sImpossibile aprire il file di debug. Impossibile leggere il file immagineImpossibile smontare %sImpossibile usare il $bitmap file recordCambiaControlla la partizione prima di salvareLivello di compressioneLivello di compressione:..........Nessuno Livello di compressione:..........bzip2Livello di compressione:..........gzipLa modalità di compressione deve essere 0 (nessuna), 1 (gzip) o 2 (bzip2) ConfermaContinuaContinua (F5)Immagine file corrente:...........%sSi vuole veramente annullare l'operazione corrente?Vuoi veramente ripristinare %s dal file immagine %s?Inserire descrizioneInserire il nuovo nome del fileCancella blocchi liberi con valore zeroErroreErrore in readFilenameAttributeErrore in chiusuraErrore scrivendo il file immagine: disco pieno !Errore: %sEsci (F6)Uscire da partimage?Informazioni Ext2fsInformazioni Ext3fsInformazioni FATFile system:......................%sLa modalità di terminazione deve essere 0 (aspetta), 1 (arresta), 2 (riavvia) o 3 (esci) Informazioni HPFSHostImmagine da usare.................%sInformazioni sull'immagineImpossibile leggere l'MBR dal discoLivello di compressione non valido per %sFile system %s non valido o danneggiatoNumero di volume non valido (%ld invece di %ld).Informazioni JFSBug conosciutoPosizioneFinestra principale (F7)La $Bitmap NTFS è troppo piccolaInformazioni NTFSNTFS: l'attributo "Lista Attributi" non è ancora supportato.NTFS: flag di compressione per l'attributo DATA non nullo: %ldNTFS: attributo resident data non supportatoNTFS: processRunList() ha restituito -1Nuovo volumeNuova posizione del volumeSuccessivo (F5)NoOkOperazioneOpzioniMBR originale da usareMemoria esauritaMemoria esaurita.Memoria esaurita: necessari %lu byte per leggere il file record in readBitmap()Memoria esaurita: necesari %lu byte per leffere il file record in readVolumeLabel()SovrascriviSovrascrivere immagine?Sovrascrivi senza chiederePartition Image vversione %s (distribuito sotto la GNU GPL2). Descrizione partizioneLa partizione era sul device:.....%s Porta:Informazioni ReiserFS Ripristina un MBR sul disco rigidoRipristina una partizione da un file immagineRiprovaSalva la partizione in un nuovo vile immagineSalva la partizione nel file imagine...SimulazioneDimensioneStatoSuccessoIl testo non pu essere nulloIl campo "Immagine" è vuoto. Impossibile continuareIl campo "Server IP/Name" è vuoto. Impossibile continuareIl campo "Server Port" è vuoto. Impossibile continuareL'attributo "filename" dev'essere residente!Il file immagine %s esiste già. Si vuole sovrascriverlo?La partizione %s è montata. Partition Image non può lavorare su partizioni montate. Smontarla con "umount %s"Il supporto %s corrente è beta!Il supporto %s corrente è sperimentale!Il file immagine "%s" non è stato trovatoIl file immagine è stato creato con una nuova versione di Partition Image (%s). Aggiornare questo software e riporvare.Il volume è stato cambiato. Vecchio: %s Nuovo: %s/%s.%.3ld Premere Invio per continuareL'intero MBRImpossibile leggere il record MTF dalla $Bitmap. Si vuole fare una ricerca sperimentale? (può prendere molto tempo)Errore sconosciuto %d -> %sVolume non trovatoIn attesa...AttenzioneCosa ripristinare:Informazioni XFSSiNon si è collegati come root. Si potrà ottenere un errore di "accesso negato".È possibile inserire una descrizione della partizione salvata:Non si hanno i diritti di scrittura su %scontrollo del file system con fsckcopia dei blocchi data usatierrore!ricerca sperimentale con successoInizializzazione dell'operazioneInizializzazione dell'operazione. Attendere prego...inode mancantem_cSectorsPerCluster non pu essere nullo. Controllare che la partizione da s salvare sia FAT.nonessunolettura informazioni partizionelettura proprietà partizionesalva la partizione in un file immaginestabilesconosciutoinstabilescrittura headerpercorso sbagliatosìpartimage-0.6.8/install-sh0000755000000000000000000003246411256751263014221 0ustar rootroot#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: partimage-0.6.8/configure.ac0000644000000000000000000002000211256747750014472 0ustar rootroot# Process this file with autoconf to produce a configure script. # PARTIMAGE (Partition Image): tool which saves and restores a partition # Copyright (C) 2000-2007 Fracois Dupoux # Copyright (C) 2000-2007 Franck Ladurelle AC_REVISION([[$Revision: 1.4 $]]) AC_PREREQ(2.59c) AC_INIT([partimage], [0.6.8]) AC_CANONICAL_SYSTEM AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.6 dist-bzip2]) AM_CONFIG_HEADER([config.h]) AC_DEFINE(ENABLE_NLS, 1, [Enable translations]) # Translations system AM_GNU_GETTEXT_VERSION([0.14.4]) AM_GNU_GETTEXT([external]) AC_PROG_LIBTOOL AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_PROG_AWK AC_PROG_CXX AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S dnl defined for files > 2GB AC_DEFINE([_GNU_SOURCE], 1, [Defined to have O_LARGEFILE under Linux]) AC_SYS_LARGEFILE dnl Try to extract to an external m4 file dnl Test files AC_DEFUN([AC_TEST_FILES], [ ac_file_found=yes for f in $1; do if test ! -f $2/$f; then ac_file_found=no break; fi done if test "$ac_file_found" = "yes" ; then ifelse([$3], , :,[$3]) else ifelse([$4], , :,[$4]) fi ]) dnl Checks for os/architecture specificities. case "$target_os" in linux*) AC_DEFINE([OS_LINUX], 1, [Define to 1 if OS is Linux]) AC_CHECK_LIB([pthread], [pthread_create], [], AC_MSG_ERROR([*** pthread library (libpthread) not found])) ;; freebsd*) AC_MSG_WARN([Partimage not yet fully ported to BSDish]) AC_DEFINE([OS_FBSD], 1, [Define to 1 if OS is FreeBSD]) CPPFLAGS="$CPPFLAGS -I../../intl -I/usr/local/include" CPPFLAGS="$CPPFLAGS -I../../src/client/fs" CPPFLAGS="$CPPFLAGS -I/usr/include/slang" PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -pthread" LIBS="$LIBS -L/usr/local/lib" ;; *) AC_MSG_ERROR([Unsupported system type $target_os]) ;; esac dnl Check for libraries. AC_ARG_ENABLE(efence, [--enable-efence Enable linking with libefence Memory Debugger], efence_support=$enableval, efence_support=no ) if test "$efence_support" = "yes" ; then AC_CHECK_LIB([efence], [EF_Print], [], AC_MSG_ERROR([*** efence library \ (libefence) not found])) fi AC_CHECK_LIB([bz2], [BZ2_bzopen], [], AC_MSG_ERROR([*** bzip2 library (libbz2) not found or too old: version 1.0.0 or more recent is need])) AC_CHECK_LIB([newt], [newtCenteredWindow], [], AC_MSG_ERROR([*** newt library (libnewt) not found])) AC_CHECK_LIB([z], [gzwrite], [], AC_MSG_ERROR([*** gzip library (libz) not found])) dnl Search for headers, add path to CPPFLAGS if found AC_DEFUN([AC_SEARCH_HEADERS], [ AC_MSG_CHECKING("for $1") ac_hdr_found=no for p in $2; do AC_TEST_FILES($1, $p, [ ac_hdr_found=yes break ] ) done if test "$ac_hdr_found" = "yes" ; then CPPFLAGS="$CPPFLAGS -I$p" AC_MSG_RESULT( [($p) yes] ) ifelse([$3], , :,[$3]) else AC_MSG_RESULT("no") ifelse([$4], , :,[$4]) fi ]) dnl end of code to extract CPPFLAGS="$CPPFLAGS -Wno-deprecated" dnl SSL support. AC_ARG_ENABLE(ssl, [--disable-ssl Don't compile ssl mode], SSL=$enableval, SSL=yes ) AC_ARG_WITH(ssl-headers, [--with-ssl-headers=DIR SSL Include files location], SSL_HDR_DIR="$withval" CPPFLAGS="$CPPFLAGS -I$withval" ) AC_ARG_WITH(ssl-lib, [--with-ssl-lib=DIR SSL Library location], LIBS="$LIBS -L$withval" ) dnl SLang location AC_ARG_WITH(slang-headers, [--with-slang-headers=DIR SLang Include files location], CPPFLAGS="$CPPFLAGS -I$withval" ) dnl options for developers dnl Don't remove the comma, it's required. AC_ARG_ENABLE(devel, [--enable-devel Enable developpers options (debug, ...)], AC_DEFINE([DEVEL_SUPPORT], 1, [Define to 1 to enable Developpers support]) , ) dnl Want to use PAM? AC_ARG_ENABLE(pam, [--enable-pam Enable PAM to authenticate users], pamsupport=$enableval, pamsupport=no ) dnl Static executables? AC_ARG_ENABLE(all-static, [--enable-all-static build static binaries], allstatic=$enableval, allstatic=no ) if test "$allstatic" = "yes"; then PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -all-static" PARTIMAGED_LDFLAGS="$PARTIMAGED_LDFLAGS -all-static" AC_SUBST(PARTIMAGE_LDFLAGS) AC_SUBST(PARTIMAGED_LDFLAGS) LIBS="$LIBS /usr/lib/libslang.a /usr/lib/libnewt.a /usr/lib/libdl.a" if test "$SSL" = "yes"; then LIBS="$LIBS /usr/lib/libssl.a /usr/lib/libcrypto.a" fi fi dnl Check for header files. AC_CHECK_HEADERS(fcntl.h strings.h limit.h malloc.h strings.h unistd.h) AC_CHECK_HEADERS(pthread.h crypt.h shadow.h mntent.h) AC_CHECK_HEADERS(sys/param.h sys/statfs.h sys/mount.h) AC_CHECK_HEADERS(getopt.h, [], AC_MSG_WARN([getopt.h not found: only short parameter can be used on cmdline]) ) dnl Check for typedefs, structures and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_STRUCT_TM dnl Check for library functions. AC_FUNC_SETPGRP AC_CHECK_FUNCS(getwd strerror strdup atoll strtoll setpgid) AC_CHECK_FUNCS(fstat64 fstatfs64 open64) dnl getcwd, putenv, strdup have already been checked. dnl with-log-dir option. AC_ARG_WITH(log-dir, [ --with-log-dir=PATH logfiles [/var/log]], LOGDIR=$with_log_dir, LOGDIR=/var/log) AC_SUBST(LOGDIR) dnl Check for types sizes. (not required anymore ? -> use u8 to u64) AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long int, 4) AC_CHECK_SIZEOF(unsigned long long, 8) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdint.h stdlib.h stdio.h string.h strings.h getopt.h sys/types.h]) dnl Check for PAM. if test "$pamsupport" = "yes"; then AC_CHECK_LIB([pam], [pam_start], [], AC_MSG_ERROR([*** pam library (libpam) not found])) AC_CHECK_LIB([dl], [dlopen], [], AC_MSG_ERROR([*** dl library (libdl) not found])) AC_DEFINE([HAVE_PAM], 1, [Define if you have PAM support on your system]) fi dnl Check for SSL. if test "$SSL" = "yes"; then AC_MSG_RESULT() AC_PATH_PROG(opensslpath, openssl) if test x$opensslpath = x ; then AC_MSG_WARN([openssl is required for building partimaged certificates.]) AC_MSG_WARN([Use --disable-ssl if you don't want to install openssl.]) fi AC_SUBST(opensslpath) AC_CHECKING([ for SSL Library and Header files ... ]) AC_SEARCH_HEADERS(rsa.h crypto.h x509.h pem.h ssl.h err.h, $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include, [ AC_CHECK_LIB(crypto, CRYPTO_lock, [LIBS="$LIBS -lcrypto"], AC_MSG_ERROR([ Required for SSL Crypto Library not found. ]) ) AC_CHECK_LIB(ssl, SSL_CTX_new, [ LIBS="$LIBS -lssl" AC_DEFINE([HAVE_SSL], 1, [Define to 1 if you have SSL support]) ], AC_MSG_ERROR([ SSL Library not found. ]) ) ], AC_MSG_ERROR([ SSL Headers not found. ]) ) fi dnl Client must login. dnl Don't remove the comma, it's required. AC_ARG_ENABLE(login, [--disable-login Clients needn't to login when connecting partimaged], , [AC_DEFINE([MUST_LOGIN], 1, [Define to 1 if you want users to login before using partimaged]) AC_CHECK_LIB([crypt], [crypt], [], AC_MSG_ERROR([*** crypt library (libcrypt) not found])) ] ) dnl Server changes euid to 'partimag' dnl Don't remove the comma, it's required. AC_ARG_ENABLE(cheuid, [--disable-cheuid Server doesn't change euid to 'partimag'], , AC_DEFINE([MUST_CHEUID], 1, [Define to 1 if you want partimaged to drop privilieges on start]) ) dnl with-debug-level option. AC_ARG_WITH(debug-level, [ --with-debug-level=X default debut level used to write the debug logfile [1]], DEFAULT_DEBUG_LEVEL=$with_debug_level, DEFAULT_DEBUG_LEVEL=1 ) AC_SUBST(DEFAULT_DEBUG_LEVEL) dnl SYSCONFDIR substitution if test "${sysconfdir}" = "\${prefix}/etc" ; then if test "${prefix}" = "NONE" ; then SYSCONFDIR=["$ac_default_prefix/etc"] else SYSCONFDIR=["${prefix}/etc"] fi else SYSCONFDIR=[${sysconfdir}] fi AC_SUBST(SYSCONFDIR) AC_CONFIG_FILES([Makefile src/Makefile src/shared/Makefile src/shared/pathnames.h src/client/Makefile src/client/fs/Makefile src/server/Makefile m4/Makefile po/Makefile.in]) AC_OUTPUT partimage-0.6.8/missing0000755000000000000000000002557711256751263013623 0ustar rootroot#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case $1 in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $1 in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: partimage-0.6.8/COPYING0000644000000000000000000003543311252653200013233 0ustar rootroot GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS partimage-0.6.8/ABOUT-NLS0000644000000000000000000020362011252653200013422 0ustar rootroot1 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. 1.1 Quick configuration advice ============================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. 1.2 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the included GNU `gettext' library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will, respectively, bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might not be desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.3 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your country by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.4 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. 1.5 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of April 2005. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB +-------------------------------------------------+ GNUnet | | a2ps | [] [] [] [] [] | aegis | () | ant-phone | () | anubis | [] | ap-utils | | aspell | [] [] [] [] | bash | [] [] | batchelor | [] | bfd | | bibshelf | [] | binutils | [] | bison | [] [] | bluez-pin | [] [] [] [] | clisp | [] [] | console-tools | [] [] | coreutils | [] [] [] [] | cpio | | cpplib | [] [] [] | darkstat | [] () [] | dialog | [] [] [] [] [] [] | diffutils | [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] [] | fetchmail | [] () [] [] [] | fileutils | [] [] | findutils | [] [] [] | flex | [] [] [] | fslint | [] | gas | | gawk | [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] [] [] | gip | | gliv | [] | glunarclock | | gmult | [] [] | gnubiff | () | gnucash | [] () () [] | gnucash-glossary | [] () | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | | gpe-edit | [] | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] [] | gpe-todo | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] | gpsdrive | () () | gramadoir | [] [] | grep | [] [] [] [] [] [] | gretl | | gsasl | [] | gss | | gst-plugins | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () | gtkspell | [] [] [] | hello | [] [] [] [] | id-utils | [] [] | impost | | indent | [] [] | iso_3166 | | iso_3166_1 | [] [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] | iso_4217 | | iso_639 | | jpilot | [] | jtag | | jwhois | | kbd | [] [] [] [] | latrine | () | ld | [] | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] [] [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | | lifelines | [] () | lilypond | [] | lingoteach | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | [] | make | [] [] | man-db | [] () [] [] | minicom | [] [] | mysecretdiary | [] [] | nano | [] () [] | nano_1_0 | [] () [] [] | opcodes | [] | parted | [] [] [] [] | psmisc | | ptx | [] [] [] | pwdutils | | python | | radius | [] | recode | [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] | sh-utils | [] [] | shared-mime-info | [] [] | sharutils | [] [] [] [] [] | silky | | skencil | [] () | sketch | [] () | solfege | [] | soundtracker | [] [] | sp | [] | stardict | [] | tar | | texinfo | [] [] | textutils | [] [] [] | tin | () () | tp-robot | [] | tuxpaint | [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] [] [] | wastesedge | () | wdiff | [] [] [] [] | wget | [] [] [] [] [] [] | xchat | [] [] [] [] | xkeyboard-config | | xpad | | +-------------------------------------------------+ af am ar az be bg bs ca cs cy da de el en en_GB 10 0 0 2 7 4 0 41 43 3 52 90 20 1 15 eo es et eu fa fi fr ga gl he hr hu id is it +-----------------------------------------------+ GNUnet | | a2ps | [] [] [] () | aegis | | ant-phone | [] | anubis | [] | ap-utils | [] | aspell | [] [] | bash | [] [] [] [] | batchelor | [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] [] | bison | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] | clisp | [] [] | console-tools | | coreutils | [] [] [] [] [] | cpio | [] [] | cpplib | [] [] | darkstat | [] () [] [] [] | dialog | [] [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] [] | enscript | [] [] | error | [] [] [] [] [] | fetchmail | [] | fileutils | [] [] [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] | fslint | [] | gas | [] [] | gawk | [] [] [] [] | gbiff | [] | gcal | [] [] | gcc | [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | () | glunarclock | [] [] [] | gmult | [] [] [] | gnubiff | () () | gnucash | [] () [] | gnucash-glossary | [] [] | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] | gpe-conf | [] | gpe-contacts | [] | gpe-edit | [] [] | gpe-go | [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] | gprof | [] [] [] | gpsdrive | () () [] () | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] [] [] [] [] | gretl | [] [] [] | gsasl | [] [] [] | gss | [] | gst-plugins | [] [] [] | gstreamer | [] | gtick | [] [] [] [] [] | gtkspell | [] [] [] [] [] [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] | impost | [] [] | indent | [] [] [] [] [] [] [] [] [] [] [] | iso_3166 | [] [] [] | iso_3166_1 | [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] [] [] | jpilot | [] [] | jtag | [] | jwhois | [] [] [] [] [] | kbd | [] [] | latrine | [] [] [] | ld | [] [] | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] [] [] [] [] | libgsasl | [] [] | libiconv | [] [] [] [] [] [] [] [] [] [] [] | libidn | [] [] | lifelines | () | lilypond | [] | lingoteach | [] [] [] | lynx | [] [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] [] [] [] [] | man-db | () | minicom | [] [] [] [] | mysecretdiary | [] [] [] | nano | [] [] () [] [] | nano_1_0 | [] [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | psmisc | [] [] | ptx | [] [] [] [] [] [] [] [] [] | pwdutils | | python | | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rpm | [] | screem | | scrollkeeper | [] [] [] | sed | [] [] [] [] [] | sh-utils | [] [] [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | silky | [] | skencil | [] [] | sketch | [] [] | solfege | [] | soundtracker | [] [] [] | sp | [] | stardict | [] | tar | [] [] [] [] [] | texinfo | [] [] [] | textutils | [] [] [] [] [] | tin | [] () | tp-robot | [] [] | tuxpaint | [] [] [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux | [] [] [] [] [] [] | vorbis-tools | [] [] | wastesedge | () | wdiff | [] [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] [] [] | xchat | [] [] [] [] [] | xkeyboard-config | | xpad | [] [] [] | +-----------------------------------------------+ eo es et eu fa fi fr ga gl he hr hu id is it 13 85 21 15 2 35 115 45 17 8 6 40 27 1 45 ja ko ku lg lt lv mk mn ms mt nb nl nn no nso +-----------------------------------------------+ GNUnet | | a2ps | () [] [] () | aegis | () | ant-phone | [] | anubis | [] [] [] | ap-utils | | aspell | [] [] | bash | [] | batchelor | [] | bfd | | bibshelf | | binutils | | bison | [] [] [] | bluez-pin | [] | clisp | [] | console-tools | | coreutils | [] [] | cpio | | cpplib | | darkstat | [] [] | dialog | [] | diffutils | [] [] [] | doodle | | e2fsprogs | | enscript | [] | error | [] | fetchmail | [] [] | fileutils | [] [] | findutils | [] | flex | [] [] | fslint | [] | gas | | gawk | [] [] | gbiff | [] | gcal | | gcc | | gettext-examples | [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gimp-print | [] [] | gip | [] | gliv | [] | glunarclock | [] [] | gmult | [] | gnubiff | | gnucash | () () [] | gnucash-glossary | [] | gpe-aerial | [] | gpe-beam | [] | gpe-calendar | [] | gpe-clock | [] | gpe-conf | [] | gpe-contacts | | gpe-edit | [] | gpe-go | [] | gpe-login | [] | gpe-ownerinfo | [] | gpe-sketchbook | [] | gpe-su | [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | [] | gphoto2 | [] [] | gprof | | gpsdrive | () () () | gramadoir | () | grep | [] [] [] | gretl | | gsasl | [] | gss | | gst-plugins | [] | gstreamer | [] | gtick | [] | gtkspell | [] [] | hello | [] [] [] [] [] [] [] [] | id-utils | [] | impost | | indent | [] [] | iso_3166 | [] | iso_3166_1 | [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] [] | jpilot | () () () | jtag | | jwhois | [] | kbd | [] | latrine | [] | ld | | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] | libgsasl | [] | libiconv | [] | libidn | | lifelines | [] | lilypond | [] | lingoteach | [] | lynx | [] [] | m4 | [] [] | mailutils | | make | [] [] [] | man-db | () | minicom | [] | mysecretdiary | [] | nano | [] [] | nano_1_0 | [] [] [] | opcodes | [] | parted | [] [] | psmisc | [] [] | ptx | [] [] [] | pwdutils | | python | | radius | | recode | [] | rpm | [] [] | screem | [] | scrollkeeper | [] [] [] | sed | [] [] | sh-utils | [] [] | shared-mime-info | [] [] [] [] | sharutils | [] [] | silky | [] | skencil | | sketch | | solfege | [] [] | soundtracker | | sp | () | stardict | [] [] | tar | [] [] | texinfo | [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] | vorbis-tools | [] | wastesedge | [] | wdiff | [] [] | wget | [] [] | xchat | [] [] [] [] | xkeyboard-config | [] | xpad | [] | +-----------------------------------------------+ ja ko ku lg lt lv mk mn ms mt nb nl nn no nso 33 11 1 1 1 2 2 3 11 0 15 96 7 5 0 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta +-------------------------------------------------+ GNUnet | | a2ps | () [] [] [] [] [] [] | aegis | () () | ant-phone | [] | anubis | [] [] [] | ap-utils | () | aspell | [] [] | bash | [] [] [] | batchelor | [] | bfd | | bibshelf | | binutils | [] [] | bison | [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | clisp | [] | console-tools | [] | coreutils | [] [] [] [] | cpio | [] [] | cpplib | | darkstat | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] | fetchmail | [] () [] [] [] | fileutils | [] [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | fslint | [] [] [] | gas | | gawk | [] [] [] [] | gbiff | [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | [] [] [] | glunarclock | [] [] [] [] [] [] | gmult | [] [] [] [] | gnubiff | () [] | gnucash | () [] [] [] [] | gnucash-glossary | [] [] [] | gpe-aerial | [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] | gpe-calendar | [] [] [] [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] [] [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] [] [] [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] | gpsdrive | [] | gramadoir | [] | grep | [] [] [] [] [] [] [] | gretl | [] | gsasl | [] [] [] [] [] | gss | [] [] [] | gst-plugins | [] [] [] [] | gstreamer | [] [] [] [] | gtick | [] [] [] | gtkspell | [] [] [] [] [] [] | hello | [] [] [] [] [] [] [] | id-utils | [] [] [] [] | impost | | indent | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] | iso_3166_1 | [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] [] [] | iso_4217 | [] [] | iso_639 | [] [] [] | jpilot | | jtag | [] | jwhois | [] [] [] () () | kbd | [] [] [] | latrine | [] [] | ld | [] | libc | [] [] [] [] [] | libextractor | [] | libgpewidget | [] [] [] [] [] [] | libgsasl | [] [] [] | libiconv | [] [] [] [] [] [] [] [] [] [] | libidn | [] () | lifelines | [] [] | lilypond | [] | lingoteach | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailutils | [] [] [] | make | [] [] [] [] | man-db | [] [] | minicom | [] [] [] [] | mysecretdiary | [] [] [] [] | nano | [] [] [] | nano_1_0 | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | psmisc | [] [] | ptx | [] [] [] [] [] [] | pwdutils | [] | python | | radius | [] [] | recode | [] [] [] [] [] [] | rpm | [] [] [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sh-utils | [] [] [] | shared-mime-info | [] [] [] [] [] | sharutils | [] [] [] | silky | [] | skencil | [] [] [] | sketch | [] [] [] | solfege | | soundtracker | [] [] | sp | | stardict | [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] | vorbis-tools | [] [] | wastesedge | | wdiff | [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] [] | xchat | [] [] [] [] [] [] | xkeyboard-config | | xpad | | +-------------------------------------------------+ or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta 1 0 48 30 58 6 79 71 5 45 13 12 50 86 0 tg th tk tr uk ven vi wa xh zh_CN zh_TW zu +--------------------------------------------+ GNUnet | | 0 a2ps | [] [] [] | 19 aegis | | 0 ant-phone | [] | 4 anubis | [] | 9 ap-utils | () | 1 aspell | [] [] [] | 13 bash | | 10 batchelor | [] [] | 7 bfd | | 1 bibshelf | [] | 5 binutils | [] | 6 bison | [] | 17 bluez-pin | [] [] [] [] [] | 24 clisp | | 7 console-tools | [] | 4 coreutils | [] | 16 cpio | [] [] | 6 cpplib | [] [] | 7 darkstat | [] () () | 15 dialog | [] [] [] | 25 diffutils | [] [] [] [] | 28 doodle | [] | 5 e2fsprogs | [] | 8 enscript | [] | 12 error | [] [] [] | 16 fetchmail | [] | 12 fileutils | [] [] [] | 18 findutils | [] [] | 17 flex | [] [] | 15 fslint | [] | 7 gas | [] | 3 gawk | [] | 14 gbiff | | 4 gcal | [] | 5 gcc | [] | 3 gettext-examples | [] [] [] [] | 20 gettext-runtime | [] [] [] [] [] | 25 gettext-tools | [] [] [] | 17 gimp-print | [] | 11 gip | [] | 8 gliv | [] | 6 glunarclock | [] [] | 13 gmult | [] [] [] | 13 gnubiff | [] | 3 gnucash | () [] | 10 gnucash-glossary | [] | 8 gpe-aerial | [] [] | 13 gpe-beam | [] [] | 13 gpe-calendar | [] [] [] [] | 18 gpe-clock | [] [] [] [] | 17 gpe-conf | [] [] | 12 gpe-contacts | [] [] | 6 gpe-edit | [] [] [] [] | 15 gpe-go | [] [] | 11 gpe-login | [] [] [] [] [] | 18 gpe-ownerinfo | [] [] [] [] | 19 gpe-sketchbook | [] [] | 14 gpe-su | [] [] [] | 16 gpe-taskmanager | [] [] [] | 17 gpe-timesheet | [] [] [] [] | 17 gpe-today | [] [] [] [] [] | 19 gpe-todo | [] [] [] | 16 gphoto2 | [] [] | 17 gprof | [] [] | 10 gpsdrive | | 2 gramadoir | [] | 6 grep | [] [] [] [] | 32 gretl | | 4 gsasl | [] [] | 12 gss | [] | 5 gst-plugins | [] [] | 16 gstreamer | [] [] [] | 14 gtick | [] | 11 gtkspell | [] [] [] | 20 hello | [] [] [] [] | 37 id-utils | [] [] | 13 impost | [] | 3 indent | [] [] [] | 24 iso_3166 | [] [] [] | 12 iso_3166_1 | [] [] | 20 iso_3166_2 | | 2 iso_3166_3 | [] [] | 8 iso_4217 | [] [] | 10 iso_639 | [] [] | 12 jpilot | [] [] [] | 6 jtag | | 2 jwhois | [] [] [] | 12 kbd | [] [] | 12 latrine | [] [] | 8 ld | [] | 5 libc | [] [] | 22 libextractor | | 1 libgpewidget | [] [] | 17 libgsasl | [] | 7 libiconv | [] [] [] [] [] | 32 libidn | [] [] | 5 lifelines | | 4 lilypond | [] | 5 lingoteach | | 5 lynx | [] [] | 14 m4 | [] [] | 17 mailutils | [] | 7 make | [] [] | 18 man-db | | 5 minicom | | 11 mysecretdiary | [] [] | 12 nano | | 11 nano_1_0 | [] [] | 17 opcodes | [] | 7 parted | [] [] [] | 17 psmisc | [] | 7 ptx | [] [] | 23 pwdutils | | 1 python | | 0 radius | [] | 6 recode | [] [] | 22 rpm | [] [] | 11 screem | | 1 scrollkeeper | [] [] | 23 sed | [] [] | 19 sh-utils | [] | 15 shared-mime-info | [] [] | 19 sharutils | [] [] [] | 20 silky | | 3 skencil | | 6 sketch | | 6 solfege | | 4 soundtracker | [] | 8 sp | [] | 3 stardict | [] [] [] [] | 10 tar | [] [] | 13 texinfo | [] [] | 14 textutils | [] [] [] | 17 tin | | 1 tp-robot | [] [] | 7 tuxpaint | [] [] [] [] | 34 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux | [] [] | 17 vorbis-tools | [] | 10 wastesedge | | 1 wdiff | [] [] | 22 wget | [] [] [] [] | 31 xchat | [] [] [] | 22 xkeyboard-config | | 1 xpad | [] | 5 +--------------------------------------------+ 72 teams tg th tk tr uk ven vi wa xh zh_CN zh_TW zu 147 domains 0 0 1 78 29 0 71 16 0 41 20 0 1711 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 April 2005 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. 1.6 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. partimage-0.6.8/config.rpath0000755000000000000000000003502511252653607014520 0ustar rootroot#! /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-2005 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 M$VC, # 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/'` cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case "$cc_basename" in xlc*) wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux*) case $cc_basename in icc* | ecc*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; sco3.2v5*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) wl='-Wl,' ;; sysv4*MP*) ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then case "$host_os" in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris* | sysv5*) 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 ;; sunos4*) hardcode_direct=yes ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then # 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' fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case "$cc_basename" in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | kfreebsd*-gnu | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10* | hpux11*) if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) 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 ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) ;; 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.2uw2*) hardcode_direct=yes hardcode_minus_L=no ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ;; sysv5*) hardcode_libdir_flag_spec= ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. libname_spec='lib$name' case "$host_os" in aix3*) ;; aix4* | aix5*) ;; amigaos*) ;; beos*) ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) shrext=.dll ;; darwin* | rhapsody*) shrext=.dylib ;; dgux*) ;; freebsd1*) ;; kfreebsd*-gnu) ;; freebsd*) ;; gnu*) ;; hpux9* | hpux10* | hpux11*) case "$host_cpu" in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac ;; irix5* | irix6* | nonstopux*) case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux*) ;; knetbsd*-gnu) ;; netbsd*) ;; newsos6) ;; nto-qnx*) ;; openbsd*) ;; os2*) libname_spec='$name' shrext=.dll ;; osf3* | osf4* | osf5*) ;; sco3.2v5*) ;; solaris*) ;; sunos4*) ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ;; sysv4*MP*) ;; uts4*) ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' < erreur lors de la detection de la fin d'espace disque ? * corriger le repertoire debian avec celui de la version 0.6.1-diff19 * ajouter ext3fs comme fs supporte (dans le fichier man) * corriger le repertoire debian du partimage-user-doc pour supprimer les doublons des fichiers * la verification des tailles de structure est faite mais les resultats sont perdus. a changer. * other features are reported to developpement branch 0_7. TODO for Partimage 0.6.6 (Easy features): ------------------------------------------- - add full support for Reiser4 - merge ntfs support from ntfsprogs (http://linux-ntfs.sourceforge.net/) - add support for unsupported file systems (all blocks are seen as used) - add support for LZO compression level partimage-0.6.8/src/0000777000000000000000000000000011256751523012776 5ustar rootrootpartimage-0.6.8/src/server/0000777000000000000000000000000011256751523014304 5ustar rootrootpartimage-0.6.8/src/server/partimaged-gui_newt.h0000644000000000000000000000432311252653176020410 0ustar rootroot/*************************************************************************** partimaged-gui_newt.h - description ------------------- begin : Wed Feb 21 2001 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef PARTIMAGED_GUI_NEWT_H #define PARTIMAGED_GUI_NEWT_H #include #include #include "partimage.h" #include "partimaged.h" #include "partimaged-gui.h" // ======================================================= class CPartimagedInterfaceNewt : public CPartimagedInterface { public: CPartimagedInterfaceNewt(); virtual ~CPartimagedInterfaceNewt(); virtual void Status(char * msg); virtual void show(); virtual void SetState(int client, char * state); virtual void SetHostname(int client, char * state); virtual void SetLocation(int client, char * locate); virtual void SetSize(int client, QWORD size); virtual void SetSize(int client, char * size); private: newtComponent m_formMain, m_Scroll; newtComponent m_labelClient[MAX_CLIENTS]; newtComponent m_labelClientState[MAX_CLIENTS]; newtComponent m_labelClientHostname[MAX_CLIENTS]; newtComponent m_labelClientLocation[MAX_CLIENTS]; newtComponent m_labelClientSize[MAX_CLIENTS]; newtComponent m_labelClientTitle; newtComponent m_labelClientStateTitle; newtComponent m_labelClientHostnameTitle; newtComponent m_labelClientLocationTitle; newtComponent m_labelClientSizeTitle; }; #endif // PARTIMAGED_GUI_NEWT_H partimage-0.6.8/src/server/partimaged-client.cpp0000644000000000000000000001030111252653176020371 0ustar rootroot/*************************************************************************** partimaged-client.cpp - manage clients from server ------------------- begin : Fri Feb 23 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "partimaged-client.h" #include "common.h" // ======================================================= CPartimagedClients::CPartimagedClients() { showDebug(10, "mutex init for clients\n"); pthread_mutex_init(&mClients, &mClientsAttr); } // ======================================================= CPartimagedClients::~CPartimagedClients() { showDebug(10, "mutex destroy for clients\n"); pthread_mutex_destroy(&mClients); } // ======================================================= unsigned int CPartimagedClients::New() { int next = 0; bool found = false; while (!found && next < MAX_CLIENTS) { if (!Clients[next].Present) found = true; else next++; } Clients[next].Present = true; pthread_mutex_unlock(&mClients); return found ? next : MAX_CLIENTS; } // ======================================================= void CPartimagedClients::Set(unsigned int client, int sock) { pthread_mutex_lock(&mClients); Clients[client].Sock = sock; Clients[client].Ssl = NULL; pthread_mutex_unlock(&mClients); } // ======================================================= void CPartimagedClients::Set(unsigned int client, int sock, struct sockaddr_in sockaddr, void * _ssl) { pthread_mutex_lock(&mClients); Clients[client].Sock = sock; Clients[client].SockAddr = sockaddr; #ifdef HAVE_SSL Clients[client].Ssl = (SSL *) _ssl; #else Clients[client].Ssl = (char *) _ssl; #endif pthread_mutex_unlock(&mClients); } // ======================================================= void CPartimagedClients::Release(unsigned int client) { pthread_mutex_lock(&mClients); showDebug(1, "%d released\n", client); Clients[client].Present = false; pthread_mutex_unlock(&mClients); } // ======================================================= #ifdef HAVE_SSL SSL * CPartimagedClients::Ssl(unsigned int client) { SSL * aux; pthread_mutex_lock(&mClients); aux = Clients[client].Ssl; pthread_mutex_unlock(&mClients); return aux; } #else char * CPartimagedClients::Ssl(unsigned int client) { char * aux; pthread_mutex_lock(&mClients); aux = Clients[client].Ssl; pthread_mutex_unlock(&mClients); return aux; } #endif // ======================================================= int CPartimagedClients::Sock(unsigned int client) { int aux; pthread_mutex_lock(&mClients); aux = Clients[client].Sock; pthread_mutex_unlock(&mClients); return aux; } // ======================================================= struct sockaddr_in CPartimagedClients::GetSA(unsigned int client) { struct sockaddr_in aux; pthread_mutex_lock(&mClients); aux = Clients[client].SockAddr; pthread_mutex_unlock(&mClients); return aux; } // ======================================================= void CPartimagedClients::SetSock(unsigned int client, int sock) { pthread_mutex_lock(&mClients); Clients[client].Sock = sock; pthread_mutex_unlock(&mClients); } // ======================================================= void CPartimagedClients::SetSsl(unsigned int client, void * ssl) { pthread_mutex_lock(&mClients); #ifdef HAVE_SSL Clients[client].Ssl = (SSL *) ssl; #else Clients[client].Ssl = (char *) ssl; #endif pthread_mutex_unlock(&mClients); } partimage-0.6.8/src/server/Makefile.am0000644000000000000000000000164311252653176016341 0ustar rootroot## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/shared \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/server \ -I/usr/include/slang sbin_PROGRAMS = partimaged partimaged_SOURCES = \ netserver.cpp \ partimaged.cpp \ partimaged-client.cpp \ partimaged-gui_dummy.cpp \ partimaged-gui_newt.cpp \ partimaged-main.cpp noinst_HEADERS = netserver.h partimaged-client.h partimaged-gui.h \ partimaged-gui_dummy.h partimaged-gui_newt.h partimaged.h #partimaged_LDADD = -L/usr/lib -lz -lbz2 -lnewt -lpthread -lcrypt -lslang -lcom_err -lext2fs ../shared/libshared.a partimaged_LDADD = -L$(libdir) -lslang ../shared/libshared.a partimaged_LDFLAGS = @PARTIMAGE_LDFLAGS@ DEFS=@DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 CPPFLAGS=@CPPFLAGS@ -Wall MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/src/server/netserver.h0000644000000000000000000000467411252653176016502 0ustar rootroot/*************************************************************************** netserver.h - description ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _NETSERVER_H_ #define _NETSERVER_H_ #ifdef HAVE_CONFIG_H #include #endif #include "net.h" #include "partimaged-client.h" #include "exceptions.h" #define BACKLOG_SIZE 5 // ================================================ class CNetServer : public CNet { private: int sock_listen; struct sockaddr_in local_sa; struct sockaddr_in client_sa; CPartimagedClients * Clients; #ifdef HAVE_SSL SSL_CTX * ctx; X509 * client_cert; SSL_METHOD * meth; int err; #endif public: CNetServer(unsigned short int port); ~CNetServer(); unsigned int AcceptClient(); char * GetPeer(unsigned int client); void Release(unsigned int client); unsigned int ValidatePass(unsigned int client); size_t RecvMsg(unsigned int client, CMessages * msg) { return nRecvMsg(Clients->Get(client), msg); } size_t SendMsg(unsigned int client, CMessages * msg) { return nSendMsg(Clients->Get(client), msg); } size_t Send(unsigned int client, const void * buf, size_t len) // { return nSend(Clients->Get(client), buf, len); } { CIdefRemote aux; showDebug(1, "before GET: %d\n", client); aux = Clients->Get(client); showDebug(1, "after GET: %d\n", client); return nSend(aux, buf, len); } size_t Recv(unsigned int client, void * buf, size_t len) { return nRecv(Clients->Get(client), buf, len); } void SendExcep(unsigned int client, CExceptions * excep); }; #endif // _NETSERVER_H_ partimage-0.6.8/src/server/partimaged-gui_dummy.h0000644000000000000000000000336311252653176020571 0ustar rootroot/*************************************************************************** partimaged-gui_dummy.h - description ------------------- begin : Tue Mar 20 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef PARTIMAGED_GUI_DUMMY_H #define PARTIMAGED_GUI_DUMMY_H #include #include #include "partimage.h" #include "partimaged.h" #include "partimaged-gui.h" // ======================================================= class CPartimagedInterfaceDummy : public CPartimagedInterface { public: CPartimagedInterfaceDummy(); virtual ~CPartimagedInterfaceDummy(); virtual void Status(char * msg); virtual void show(); virtual void SetState(int client, char * state); virtual void SetHostname(int client, char * state); virtual void SetLocation(int client, char * locate); virtual void SetSize(int client, QWORD size); virtual void SetSize(int client, char * size); private: }; #endif // PARTIMAGED_GUI_DUMMY_H partimage-0.6.8/src/server/partimaged.h0000644000000000000000000000270711252653176016575 0ustar rootroot/*************************************************************************** partimaged.h - description ------------------- begin : Sun Jan 28 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef PARTIMAGED_H #define PARTIMAGED_H #include #include "pathnames.h" #define BUFFER_LEN BUFFER_SIZE #define MAX_CLIENTS 15 #define SERVER_LISTEN_PORT 4025 extern bool g_bBeDaemon; void * partimaged(void * _s); void * thread(void * param); #define showDebug(level, format, args...) showDebugMsg(g_fDebug, level, __FILE__, __FUNCTION__, __LINE__, format, ## args) extern bool g_bSigKill; extern bool g_bSigInt; #endif // PARTIMAGED_H partimage-0.6.8/src/server/partimaged-client.h0000644000000000000000000000347111252653176020050 0ustar rootroot/*************************************************************************** partimaged-client.h - description ------------------- begin : Fri Feb 23 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "net.h" #include "structures.h" class CPartimagedClients { public: CPartimagedClients(); ~CPartimagedClients(); unsigned int New(); void Set(unsigned int client, int sock); void Set(unsigned int client, int sock, struct sockaddr_in sockaddr, void * _ssl); void Release(unsigned int client); CIdefRemote Get(unsigned int client) { return Clients[client]; } #ifdef HAVE_SSL SSL * Ssl(unsigned int client); #else char * Ssl(unsigned int client); #endif int Sock(unsigned int client); void SetSock(unsigned int client, int sock); void SetSsl(unsigned int client, void * ssl); struct sockaddr_in GetSA(unsigned int client); private: pthread_mutex_t mClients; pthread_mutexattr_t mClientsAttr; CIdefRemote Clients[MAX_CLIENTS+1]; // one more for first client to reject }; partimage-0.6.8/src/server/Makefile.in0000644000000000000000000004060411256751264016353 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ sbin_PROGRAMS = partimaged$(EXEEXT) subdir = src/server DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(sbin_PROGRAMS) am_partimaged_OBJECTS = netserver.$(OBJEXT) partimaged.$(OBJEXT) \ partimaged-client.$(OBJEXT) partimaged-gui_dummy.$(OBJEXT) \ partimaged-gui_newt.$(OBJEXT) partimaged-main.$(OBJEXT) partimaged_OBJECTS = $(am_partimaged_OBJECTS) partimaged_DEPENDENCIES = ../shared/libshared.a partimaged_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(partimaged_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(partimaged_SOURCES) DIST_SOURCES = $(partimaged_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -Wall CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/shared \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/server \ -I/usr/include/slang partimaged_SOURCES = \ netserver.cpp \ partimaged.cpp \ partimaged-client.cpp \ partimaged-gui_dummy.cpp \ partimaged-gui_newt.cpp \ partimaged-main.cpp noinst_HEADERS = netserver.h partimaged-client.h partimaged-gui.h \ partimaged-gui_dummy.h partimaged-gui_newt.h partimaged.h #partimaged_LDADD = -L/usr/lib -lz -lbz2 -lnewt -lpthread -lcrypt -lslang -lcom_err -lext2fs ../shared/libshared.a partimaged_LDADD = -L$(libdir) -lslang ../shared/libshared.a partimaged_LDFLAGS = @PARTIMAGE_LDFLAGS@ MAINTAINERCLEANFILES = Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/server/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/server/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" @list='$(sbin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \ rm -f "$(DESTDIR)$(sbindir)/$$f"; \ done clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done partimaged$(EXEEXT): $(partimaged_OBJECTS) $(partimaged_DEPENDENCIES) @rm -f partimaged$(EXEEXT) $(partimaged_LINK) $(partimaged_OBJECTS) $(partimaged_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netserver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/partimaged-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/partimaged-gui_dummy.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/partimaged-gui_newt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/partimaged-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/partimaged.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(sbindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-exec-am: install-sbinPROGRAMS install-html: install-html-am install-info: install-info-am install-man: install-pdf: install-pdf-am install-ps: install-ps-am installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-sbinPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-sbinPROGRAMS ctags 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-sbinPROGRAMS 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 uninstall uninstall-am uninstall-sbinPROGRAMS # 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: partimage-0.6.8/src/server/partimaged-gui_dummy.cpp0000644000000000000000000000500311252653176021115 0ustar rootroot/*************************************************************************** partimaged-gui_dummy.cpp - description ------------------- begin : Tue Mar 20 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "partimaged-gui_dummy.h" #include "partimage.h" #include "partimaged.h" #include "common.h" #include #include #include // ============================================================================= CPartimagedInterfaceDummy::CPartimagedInterfaceDummy() { } // ============================================================================= CPartimagedInterfaceDummy::~CPartimagedInterfaceDummy() { } // ============================================================================= void CPartimagedInterfaceDummy::show() { } // ============================================================================= void CPartimagedInterfaceDummy::SetState(int client, char * state) { } // ============================================================================= void CPartimagedInterfaceDummy::SetHostname(int client, char * state) { } // ============================================================================= void CPartimagedInterfaceDummy::SetLocation(int client, char * locate) { } // ============================================================================= void CPartimagedInterfaceDummy::SetSize(int client, QWORD size) { } // ============================================================================= void CPartimagedInterfaceDummy::SetSize(int client, char * size) { } // ============================================================================= void CPartimagedInterfaceDummy::Status(char * msg) { } partimage-0.6.8/src/server/partimaged-gui_newt.cpp0000644000000000000000000001360111256743306020741 0ustar rootroot/*************************************************************************** partimaged-gui_newt.cpp - description ------------------- begin : Wed Feb 21 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "partimaged-gui_newt.h" #include "partimage.h" #include "partimaged.h" #include "common.h" #include #include #include #include #include extern bool g_bMustLogin; extern bool g_bUseSSL; // ============================================================================= CPartimagedInterfaceNewt::CPartimagedInterfaceNewt() { if (!g_bBeDaemon) { int i; char * szAux = (char *) malloc (256); SLang_init_tty('*', 0, 0); // '*' to send SIGTERM newtInit(); newtCls(); newtPushHelpLine(""); m_Scroll = newtVerticalScrollbar(50,10, 20, NEWT_COLORSET_WINDOW, NEWT_COLORSET_ACTCHECKBOX); m_formMain = newtForm(m_Scroll, NULL, 0); #ifdef MUST_LOGIN if (g_bMustLogin) #ifdef HAVE_SSL if (g_bUseSSL) snprintf(szAux, 255, "%s %s LOGIN+SSL", i18n("Partimaged"), PACKAGE_VERSION); else #endif snprintf(szAux, 255, "%s %s LOGIN+NOSSL", i18n("Partimaged"), PACKAGE_VERSION); else #endif #ifdef HAVE_SSL if (g_bUseSSL) snprintf(szAux, 255, "%s %s NOLOGIN+SSL", i18n("Partimaged"), PACKAGE_VERSION); else #endif snprintf(szAux, 255, "%s %s NOLOGIN+NOSSL", i18n("Partimaged"), PACKAGE_VERSION); *(szAux+255) = '\0'; newtCenteredWindow(73, 20, szAux); m_labelClientTitle = newtLabel(2, 2, ""); m_labelClientStateTitle = newtLabel(13, 2, ""); m_labelClientHostnameTitle = newtLabel(22, 2, ""); m_labelClientLocationTitle = newtLabel(42, 2, ""); m_labelClientSizeTitle = newtLabel(61, 2, ""); newtLabelSetText(m_labelClientTitle, i18n("Client #")); newtLabelSetText(m_labelClientStateTitle, i18n("State")); newtLabelSetText(m_labelClientHostnameTitle, i18n("Host")); newtLabelSetText(m_labelClientLocationTitle, i18n("Location")); newtLabelSetText(m_labelClientSizeTitle, i18n("Size")); newtFormAddComponents(m_formMain, m_labelClientTitle, m_labelClientStateTitle, m_labelClientLocationTitle, m_labelClientSizeTitle, NULL); newtRefresh(); for (i = 0; i < MAX_CLIENTS; i++) { m_labelClient[i] = newtLabel(4, 4+i, ""); m_labelClientState[i] = newtLabel(9, 4+i, ""); m_labelClientHostname[i] = newtLabel(20, 4+i, ""); m_labelClientLocation[i] = newtLabel(42, 4+i, ""); m_labelClientSize[i] = newtLabel(61, 4+i, ""); newtFormAddComponents(m_formMain, m_labelClient[i], m_labelClientState[i], m_labelClientLocation[i], m_labelClientSize[i], NULL); } for (i = 0; i < MAX_CLIENTS; i++) { snprintf(szAux, 255, "%d", i); *(szAux+255) = '\0'; newtLabelSetText(m_labelClient[i], szAux); newtLabelSetText(m_labelClientState[i], i18n("waiting")); newtRefresh(); } free(szAux); } } // ============================================================================= CPartimagedInterfaceNewt::~CPartimagedInterfaceNewt() { if (!g_bBeDaemon) newtFinished(); } // ============================================================================= void CPartimagedInterfaceNewt::show() { if (!g_bBeDaemon) { newtRefresh(); } } // ============================================================================= void CPartimagedInterfaceNewt::SetState(int client, char * state) { if (!g_bBeDaemon) { newtLabelSetText(m_labelClientState[client], state); newtRefresh(); } } // ============================================================================= void CPartimagedInterfaceNewt::SetHostname(int client, char * state) { if (!g_bBeDaemon) { newtLabelSetText(m_labelClientHostname[client], state); newtRefresh(); } } // ============================================================================= void CPartimagedInterfaceNewt::SetLocation(int client, char * locate) { if (!g_bBeDaemon) { newtLabelSetText(m_labelClientLocation[client], locate); newtRefresh(); } } // ============================================================================= void CPartimagedInterfaceNewt::SetSize(int client, QWORD size) { if (!g_bBeDaemon) { char * szAux = (char *) malloc(64); if (szAux) { formatSize(size, szAux); newtLabelSetText(m_labelClientSize[client], szAux); newtRefresh(); free(szAux); } } } // ============================================================================= void CPartimagedInterfaceNewt::SetSize(int client, char * size) { if (!g_bBeDaemon) { newtLabelSetText(m_labelClientSize[client], size); newtRefresh(); } } // ============================================================================= void CPartimagedInterfaceNewt::Status(char * msg) { char szBuf[1024]; newtPopHelpLine(); snprintf(szBuf, sizeof(szBuf), "%s [Press * to exit]", msg); newtPushHelpLine(szBuf); newtRefresh(); } partimage-0.6.8/src/server/partimaged.cpp0000644000000000000000000002730011252653176017124 0ustar rootroot/*************************************************************************** partimaged.cpp - thread to handle a client ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "net.h" #include "netserver.h" #include "messages.h" #include "image_disk.h" #include "common.h" #include "pathnames.h" #include "buffer.h" #include "partimaged-gui_newt.h" #include "partimaged.h" #ifdef MUST_CHEUID #include "privs.h" extern CPrivs * g_privs; #endif extern CNetServer * g_Server; extern CPartimagedInterface * g_Window; void * partimaged(void * _s) { bool bAux, bQuit; #ifdef MUST_CHEUID g_privs -> ForceUser(); showDebug(1, "UID is %d, EUID is %d\n", getuid(), geteuid()); #endif char * buf = (char *) malloc(BUFFER_LEN); char * szAux, * szMountDevice, * szMountPoint, * szMountFS; QWORD qwAux, qwSize = 0LL; DWORD dwAux, m_cmd, m_size; DWORD dwRes = 0L; int n; int nClient; CMessages * mess; CImageDisk * cid; CNetServer * Server = g_Server; COptions options; bQuit = false; memcpy(&nClient, _s, sizeof(int)); mess = new CMessages; Server->Recv(nClient, &options, sizeof(COptions)); cid = new CImageDisk(&options); while (!bQuit) { g_Window->Status(i18n("waiting ...")); n = Server->RecvMsg(nClient, mess); if (n != MESSAGE_LEN) { showDebug(2, "client %d: received %d instead of %d\n", nClient, n, MESSAGE_LEN); showDebug(2, "client %d: error while receiving message from network\n" , nClient); g_Window->SetState(nClient, i18n("error !")); g_Window->SetLocation(nClient, "connexion lost"); g_Server->Release(nClient); pthread_exit(NULL); } mess->getMessage(&m_cmd, &m_size); showDebug(3, "retour recvmsg: %ld %ld\n", m_cmd, m_size); switch (m_cmd) { case MSG_NEWOPTIONS: n = Server->Recv(nClient, &options, sizeof(COptions)); cid -> set_options(&options); mess->setMessage(MSG_OK); Server->SendMsg(nClient, mess); break; case MSG_GETSPACE: g_Window->Status(i18n("getspace ...")); try { cid -> getFreeSpace(&qwAux); } catch ( CExceptions * excep) // errno { Server->SendExcep(nClient, excep); break; // jump to next case } showDebug(3, "return ok for getspace: %lld\n", qwAux); mess->setMessage(MSG_OK); Server->SendMsg(nClient, mess); Server->Send(nClient, (void *)&qwAux, sizeof(QWORD)); break; case MSG_WRITE: g_Window->Status(i18n("writing ...")); if (m_size > BUFFER_LEN) { delete g_Window; g_Window = NULL; showDebug(1, "buffer overflow : %ld\n", m_size); exit(5); } n = Server->Recv(nClient, buf, m_size); // receive what to write { int nRes; try { cid -> write(buf, n, &nRes); } catch ( CExceptions * excep ) { mess->setMessage(MSG_ERROR, (DWORD) excep->GetExcept()); Server->SendExcep(nClient, excep); break; } mess->setMessage(MSG_OK, (DWORD) nRes); Server->SendMsg(nClient, mess); g_Window->SetSize(nClient, qwSize); // update partition size qwSize += (QWORD) n; } break; case MSG_OPENW: g_Window->Status(i18n("opening for write ...")); try { cid -> openWriting(); } catch ( CExceptions * excep ) { Server->SendExcep(nClient, excep); break; } mess->setMessage(MSG_OK, 0L); Server->SendMsg(nClient, mess); g_Window->SetState(nClient, i18n("saving")); g_Window->SetLocation(nClient, cid->get_szImageFilename()); break; case MSG_READ: g_Window->Status(i18n("reading ...")); if (m_size > BUFFER_LEN) { delete g_Window; g_Window = NULL; showDebug(1, "buffer overflow : %ld\n", m_size); exit(5); } try { dwRes = cid -> read(buf, m_size); } catch ( CExceptions * excep ) { Server->SendExcep(nClient, excep); break; } g_Window->SetSize(nClient, qwSize); qwSize += (QWORD) m_size; mess->setMessage(MSG_OK, dwRes); Server->SendMsg(nClient, mess); Server->Send(nClient, (void *)buf, dwRes); break; case MSG_CLOSE: g_Window->Status(i18n("closing ...")); try { cid -> close(); } catch ( CExceptions * excep ) { Server->SendExcep(nClient, excep); break; } mess->setMessage(MSG_OK, 0L); Server->SendMsg(nClient, mess); break; case MSG_OPENR: g_Window->Status(i18n("opening for read ...")); g_Window->SetState(nClient, i18n("restoring")); g_Window->SetLocation(nClient, cid->get_szImageFilename()); try { cid -> openReading(); } catch ( CExceptions * excep ) { Server->SendExcep(nClient, excep); break; } mess->setMessage(MSG_OK, 0L); Server->SendMsg(nClient, mess); break; case MSG_DOESFILEEXIST: bool b; n = Server->Recv(nClient, buf, m_size); b = cid -> doesFileExists(buf); mess->setMessage(b ? MSG_OK : MSG_ERROR); Server->SendMsg(nClient, mess); break; case MSG_GETDISKSPACEFILE: n = Server->Recv(nClient, buf, m_size); cid -> getDiskFreeSpaceForFile(&qwAux, buf); Server->Send(nClient, &qwAux, sizeof(QWORD)); break; case MSG_GET_C: n = Server->Recv(nClient, buf, m_size); n = cid -> getCompressionLevelForImage(buf); mess->setMessage(MSG_OK, n); Server->SendMsg(nClient, mess); break; case MSG_GETFILESIZE: n = Server->Recv(nClient, buf, m_size); cid -> getFileSize(&qwAux, buf); Server->Send(nClient, &qwAux, sizeof(QWORD)); break; case MSG_SET_IO: cid -> set_bIsOpened(m_size?true:false); break; case MSG_SET_P: if (m_size > BUFFER_LEN) { delete g_Window; g_Window = NULL; showDebug(1, "buffer overflow : %ld\n", m_size); exit(5); } n = Server->Recv(nClient, buf, m_size); cid -> set_szPath(buf); break; case MSG_SET_IF: if (m_size > BUFFER_LEN) { delete g_Window; g_Window = NULL; showDebug(1, "buffer overflow : %ld\n", m_size); exit(5); } n = Server->Recv(nClient, buf, m_size); cid -> set_szImageFilename(buf); break; case MSG_SET_OF: if (m_size > BUFFER_LEN) { delete g_Window; g_Window = NULL; showDebug(1, "buffer overflow : %ld\n", m_size); exit(5); } n = Server->Recv(nClient, buf, m_size); cid -> set_szOriginalFilename(buf); break; case MSG_GET_CVS: cid -> get_qwCurrentVolumeSize(&qwAux); Server->Send(nClient, &qwAux, sizeof(QWORD)); break; case MSG_GET_IO: bAux = cid -> get_bIsOpened(); Server->Send(nClient, (void *) &bAux, sizeof(bool)); break; case MSG_GET_P: szAux = cid -> get_szPath(); mess->setMessage(MSG_OK, strlen(szAux)+1); Server->SendMsg(nClient, mess); Server->Send(nClient, (void *) szAux, strlen(szAux)+1); break; case MSG_GET_IF: szAux = cid -> get_szImageFilename(); mess->setMessage(MSG_OK, strlen(szAux)+1); Server->SendMsg(nClient, mess); Server->Send(nClient, (void *) szAux, strlen(szAux)+1); break; case MSG_GET_OF: szAux = cid -> get_szOriginalFilename(); mess->setMessage(MSG_OK, strlen(szAux)+1); Server->SendMsg(nClient, mess); Server->Send(nClient, (void *) szAux, strlen(szAux)+1); break; case MSG_QUIT: bQuit = true; Server->SendMsg(nClient, mess); // ACK break; case MSG_MOUNTIMAGELOCATION: // receive device to be mounted n = Server->Recv(nClient, buf, m_size); if ((unsigned int)n == m_size) szMountDevice=strdup(buf); else { szMountDevice = NULL; showDebug(1, "inconsistant size (%d instead of %d)\n", n,m_size); } // receive mountpoint Server->Recv(nClient, &m_size, sizeof(m_size)); n = Server->Recv(nClient, buf, m_size); if ((unsigned int)n == m_size) szMountPoint=strdup(buf); else { szMountPoint = NULL; showDebug(1, "inconsistant size (%d instead of %d)\n", n,m_size); } // receive filesystem type Server->Recv(nClient, &m_size, sizeof(m_size)); n = Server->Recv(nClient, buf, m_size); if ((unsigned int)n == m_size) szMountFS=strdup(buf); else { szMountFS = NULL; showDebug(1, "inconsistant size (%d instead of %d)\n", n,m_size); } // call CImageDisk mount dwAux = cid -> mountImageLocation(szMountDevice, szMountPoint, szMountFS); // return status mess->setMessage(dwAux ? MSG_ERROR : MSG_OK); Server->SendMsg(nClient, mess); break; case MSG_UMOUNTIMAGELOCATION: // receive mointpoint n = Server->Recv(nClient, buf, m_size); if ((unsigned int)n == m_size) szMountPoint=strdup(buf); else { szMountPoint = NULL; showDebug(1, "inconsistant size (%d instead of %d)\n", n,m_size); } // call CImageDisk umount dwAux = cid -> umountImageLocation(szMountPoint); // return status mess->setMessage(dwAux ? MSG_ERROR : MSG_OK); Server->SendMsg(nClient, mess); break; default: delete g_Window; g_Window = NULL; exit(5); break; } } delete mess; mess = NULL; delete cid; cid = NULL; g_Window->SetState(nClient, i18n("finished")); g_Window->SetLocation(nClient, ""); g_Window->SetSize(nClient, ""); g_Server->Release(nClient); free(buf); pthread_exit(NULL); } partimage-0.6.8/src/server/partimaged-gui.h0000644000000000000000000000320611252653176017352 0ustar rootroot/*************************************************************************** partimaged-gui.h - description ------------------- begin : Wed Feb 21 2001 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef PARTIMAGED_GUI_H #define PARTIMAGED_GUI_H #include "partimage.h" #include "partimaged.h" #include // ======================================================= class CPartimagedInterface { public: CPartimagedInterface(){} virtual ~CPartimagedInterface(){}; virtual void Status(char * msg)=0; virtual void show()=0; virtual void SetState(int client, char * state)=0; virtual void SetHostname(int client, char * state)=0; virtual void SetLocation(int client, char * locate)=0; virtual void SetSize(int client, QWORD size)=0; virtual void SetSize(int client, char * size)=0; }; #endif // PARTIMAGED_GUI_H partimage-0.6.8/src/server/partimaged-main.cpp0000644000000000000000000003166611256743306020057 0ustar rootroot/*************************************************************************** partimaged-main.cpp - main part of Partimaged ------------------- begin : Sun Jan 28 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ // $Name: $ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_GETOPT_H #include #endif #include #include #include #include #include #include #include #include #include #include "net.h" #include "netserver.h" #include "messages.h" #include "image_disk.h" #include "common.h" #include "pathnames.h" #include "buffer.h" #include "partimaged-gui_newt.h" #include "partimaged-gui_dummy.h" #include "partimaged.h" #include "access.h" #include "privs.h" static char Revision[] = "CVS $Revision: 1.1.1.1 $"; CPrivs * g_privs=NULL; FILE * g_fDebug; FILE * g_fLocalDebug; extern DWORD g_dwDebugLevel; bool g_bBeDaemon; CNetServer * g_Server; CPartimagedInterface * g_Window; bool g_bMustLogin; bool g_bUseSSL; extern char * optarg; extern int optind; extern int opterr; #ifdef HAVE_GETOPT_H static struct option const long_options[] = { {"compilinfo", no_argument, NULL, 'i'}, {"port", required_argument, NULL, 'p'}, {"help", no_argument, NULL, 'h'}, {"version", no_argument, NULL, 'v'}, {"daemon", no_argument, NULL, 'D'}, {"dest", required_argument, NULL, 'd'}, {"chroot", required_argument, NULL, 'r'}, {"debug", required_argument, NULL, 'g'}, {"nologin", no_argument, NULL, 'L'}, {"nossl", no_argument, NULL, 'n'}, {NULL, 0, NULL, 0} }; #endif //HAVE_GETOPT_H static char optstring[]="ip:hvDd:r:g:Ln"; bool g_bSigKill = false; bool g_bSigInt = false; // ======================================================= static void catch_sigint(int signo) { if (signo == SIGTERM) { g_bSigKill = true; delete g_Server; delete g_Window; g_Server = NULL; g_Window = NULL; exit(0); } else if (signo == SIGINT) { g_bSigInt = true; delete g_Server; delete g_Window; g_Server = NULL; g_Window = NULL; exit(0); } else if (signo == SIGSEGV) { delete g_Server; delete g_Window; g_Server = NULL; g_Window = NULL; fprintf(stderr, i18n("Segmentation fault. Please report the bug and send the [%s] file to authors\n"), PARTIMAGED_LOG); exit(0); } showDebug(1, "Signal: %d\n", signo); } // ======================================================= void Usage() { printf ("=======================================================" "========================\n"); printf (i18n("Partition Image Daemon (http://www.partimage.org/) version %s\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n\n" "usage: partimaged [options]\n\n" "Options:\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -d, --dest destination directory\n" "* -pX, --port=X server's port listening (defaults to %d)\n" "* -D, --daemon start in daemon mode, not foreground\n" "* -i, --compilinfo show compilation options used\n" "* -r dir, --chroot dir use chroot to improve security\n" "* -g, --debug=X set the debug level to X (default: 1)\n" "* -L, --nologin disable login from clients\n" "* -n, --nossl disable SSL\n"), PACKAGE_VERSION, SERVER_LISTEN_PORT); printf ("=======================================================" "========================\n"); exit(0); } // ======================================================= void Initialize() { char szTemp[2048]; // open log files as root if (g_dwDebugLevel) { g_fDebug = openFileDescriptorSecure(PARTIMAGED_LOG, "a", O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC, S_IRUSR | S_IWUSR); if (!g_fDebug) { fprintf(stderr, i18n("Impossible to open logfile %s: %s\n"), PARTIMAGED_LOG, strerror(errno)); fprintf(stderr, i18n("Fix this and retry.\n")); } } else g_fDebug = NULL; if (!g_fDebug) { g_fDebug = fopen("/dev/null", "w"); if (!g_fDebug) exit(1); } g_fLocalDebug = fopen("/dev/null", "w"); if (!g_fLocalDebug) g_fDebug = stderr; // find PARTIMAGED_USER euid and register it to be used later. g_privs = new CPrivs(PARTIMAGED_USER); if (!g_privs) { fprintf(stderr, i18n("impossible to find user \"%s\"\n"),PARTIMAGED_USER); fprintf(stderr, i18n("add it and retry\n")); } if (!g_privs->AsSwitched()) showDebug(4, i18n("Warning: we couldn't changed euid because we weren't " "launched as root\nexpect some access denied or troubles like this.\n")); // add usefull informations into logfile showDebug(1, "partimaged %s(%s)\n", PACKAGE_VERSION, Revision); showDebug(1,"-----------------------------------------\n"); formatCompilOptions(szTemp, sizeof(szTemp)); showDebug(1, "%s\n\n", szTemp); showDebug(1,"-----------------------------------------\n"); // we only exit here because we must write informations in logfile to help // debugging if (!g_privs) exit(0); } // ======================================================= int main(int argc, char *argv[]) { unsigned int client; int nOptCh, nRes, nServerPort = SERVER_LISTEN_PORT; char * szRootDir = NULL; char * szPeerName; char szTemp[2048]; g_dwDebugLevel = DEFAULT_DEBUG_LEVEL; g_nDebugThreadMain = getpid(); g_bBeDaemon = false; g_bMustLogin = true; g_bUseSSL = true; pthread_t threads[MAX_CLIENTS]; #ifdef HAVE_GETOPT_H while ((nOptCh = getopt_long(argc, argv, optstring, long_options,NULL)) != EOF) #else while ((nOptCh = getopt(argc, argv, optstring)) != -1) #endif { switch (nOptCh) { case 'p': // listening port nServerPort = atoi(optarg); break; case 'h': // help Usage(); case 'v': // version #ifdef HAVE_SSL printf(i18n("Partition Image Daemon version %s+SSL\n"), PACKAGE_VERSION); #else printf(i18n("Partition Image Daemon version %s\n"), PACKAGE_VERSION); #endif printf(i18n("(distributed under the GNU GPL 2)\n")); exit(0); case 'D': // daemonize g_bBeDaemon = true; break; case 'd': if (chdir(optarg) != 0) { printf("Directory %s: %s\n", optarg, strerror(errno)); exit(-1); } break; case 'r': // change chroot if ((optarg) && (optarg[0])) szRootDir = strdup(optarg); break; case 'g': // debug level g_dwDebugLevel = atol(optarg); if (g_dwDebugLevel < 0 || g_dwDebugLevel > 10) g_dwDebugLevel = DEFAULT_DEBUG_LEVEL; break; case 'i': // compilation options formatCompilOptions(szTemp, sizeof(szTemp)); printf("%s\n", szTemp); return EXIT_SUCCESS; break; case 'L': // no login g_bMustLogin = false; break; case 'n': // no SSL g_bUseSSL = false; break; default: break; } } if (szRootDir) { // showDebug(2, "about to chroot to %s\n", szRootDir); // g_privs->Root(); if (chdir(szRootDir) < 0) { // g_privs->User(); fprintf(g_fDebug, "failed to chdir to %s: %s\n", szRootDir, strerror(errno)); delete g_Window; g_Window = NULL; exit(1); } if (chroot(szRootDir) < 0) { // g_privs->User(); fprintf(g_fDebug, "failed to chroot: %s\n", strerror(errno)); delete g_Window; g_Window = NULL; exit(1); } if (chdir("/") < 0) { // g_privs->User(); fprintf(g_fDebug, "failed to chdir to /: %s\n", strerror(errno)); delete g_Window; g_Window = NULL; exit(1); } // g_privs->User(); // showDebug(1, "root changed to %s\n", szRootDir); free(szRootDir); szRootDir = NULL; } // Warn: no showDebug must have been called before this point Initialize(); #ifdef MUST_LOGIN if (g_bMustLogin) { if (CheckAccessFile(PARTIMAGED_USERS)) exit(1); } #endif #ifdef HAVE_SSL if (g_bUseSSL) { if ( CheckAccessFile(KEYF) || CheckAccessFile(CERTF) ) { exit(1); } } #endif // register signals signal(SIGTERM, catch_sigint); signal(SIGINT, catch_sigint); signal(SIGSEGV, catch_sigint); // segmentation fault signal(SIGCHLD, SIG_IGN); // ignore child exits // signal(SIGHUP, catch_sigint); // signal(SIGQUIT, catch_sigint); // signal(SIGCHLD, catch_sigint); // signal(SIGILL, catch_sigint); // signal(SIGKILL, catch_sigint); if (g_bBeDaemon) { // fork - so i'm not the owner of the process group any more int pgrp; int i = fork(); if (i < 0) { showDebug(1, "can't fork: %s\n", strerror(errno)); exit(1); } if (i > 0) exit(0); // no need for the parent any more pgrp = setsid(); if (pgrp < 0) { showDebug(1, "can't daemonize: %s\n", strerror(errno)); exit(1); } /* FIXME: this will break 'socket' call close(fileno(stdin)); close(fileno(stdout)); close(fileno(stderr)); */ #ifdef HAVE_SETPGID setpgid(0, getpid()); #else # ifdef SETPGRP_VOID setpgrp(); # else setpgrp(0, getpid()); # endif #endif } try { g_Server = new CNetServer(nServerPort); } catch ( CExceptions * excep ) { showDebug(1, "fatal error: get exception %d\n", excep->GetExcept()); fclose(g_fDebug); exit(1); } // g_Window = new CPartimagedInterfaceDummy(); g_Window = new CPartimagedInterfaceNewt(); g_Window->Status(i18n("Waiting for client ...")); while (1) { showDebug(1, "infernal loop\n"); try { client = g_Server->AcceptClient(); } catch ( CExceptions * excep ) { showDebug(1, "*** excep catched\n"); switch (excep -> GetExcept()) { case ERR_ERRNO: showDebug(1, "accept failed with %s\n", strerror(excep->get_dwArg1())); continue; // jump to next client case ERR_TOOMANY: showDebug(3, "too many clients -> one refused\n"); if (!g_bBeDaemon) g_Window->Status(i18n("too much client connected")); else fprintf(stderr, "partimaged: too much clients connected\n"); continue; // jump to next client case ERR_REFUSED: showDebug(1, "refused: banner or version\n"); // client is undefined->we can't show it // g_Window->SetState(client, "error !"); // g_Window->SetLocation(client, "(wrong banner)"); continue; // jump to next client default: showDebug(1, "other exception: %d\n", excep->GetExcept()); continue; // jump to next client } showDebug(1, "ARG: reached unexpected point\n"); continue; // we shouldn't reach this point but never knows } showDebug(1, "client %d arrived\n", client); g_Window->SetState(client, "connected"); szPeerName = g_Server -> GetPeer(client); g_Window->SetHostname(client, szPeerName); free(szPeerName); nRes = g_Server->ValidatePass(client); if (nRes) { g_Window->SetState(client, "error !"); g_Window->SetLocation(client, "(wrong password)"); } else { int rv = fork(); if ( rv < 0 ) { showDebug(1, "Cannot fork() on incoming connection - %s\n", strerror(errno)); continue; } if ( ! rv ) partimaged(&client); // child process } } // infernal loop showDebug(1, "end of partimaged-main\n"); while(1); delete g_Server; g_Server = NULL; delete g_Window; g_Window = NULL; fclose(g_fDebug); } partimage-0.6.8/src/server/netserver.cpp0000644000000000000000000002056211256743306017026 0ustar rootroot/*************************************************************************** netserver.cpp - class to handle server net part ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include #include "pathnames.h" #include "netserver.h" #include "access.h" #include "exceptions.h" extern bool g_bMustLogin; extern bool g_bUseSSL; // ================================================ CNetServer::CNetServer(unsigned short int port):CNet() { int option = 1; BEGIN; Clients = new CPartimagedClients; #ifdef HAVE_SSL ctx = NULL; if (g_bUseSSL) { SSL_load_error_strings(); SSLeay_add_ssl_algorithms(); meth = SSLv23_server_method(); ctx = SSL_CTX_new(meth); if (!ctx) { ERR_print_errors_fp(stderr); THROW(ERR_SSL_CTX); } if (SSL_CTX_use_certificate_file(ctx, CERTF, SSL_FILETYPE_PEM) <= 0) { ERR_print_errors_fp(stderr); THROW(ERR_SSL_LOADCERT); } if (SSL_CTX_use_PrivateKey_file(ctx, KEYF, SSL_FILETYPE_PEM) <= 0) { ERR_print_errors_fp(stderr); THROW(ERR_SSL_LOADKEY); } if (!SSL_CTX_check_private_key(ctx)) { fprintf(stderr, "private key does not match the certificate public key\n"); THROW(ERR_SSL_PRIVKEY); } } #endif if (!(sock_listen = socket(AF_INET, SOCK_STREAM, 0))) { showDebug(1, "socket error %d %s\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } memset(&local_sa, '\0', sizeof(struct sockaddr)); /* we want to reuse the (addr,port) -> SO_REUSEADDR */ setsockopt(sock_listen, SOL_SOCKET, SO_REUSEADDR, &option, sizeof(int)); local_sa.sin_family = AF_INET; local_sa.sin_addr.s_addr = INADDR_ANY; local_sa.sin_port = htons(port); if (bind(sock_listen, (struct sockaddr *) &local_sa, sizeof(struct sockaddr_in))) { showDebug(1, "bind error %s\n", strerror(errno)); THROW(ERR_ERRNO, errno); } if (listen(sock_listen, BACKLOG_SIZE)) { showDebug(1, "listen error %s\n", strerror(errno)); THROW(ERR_ERRNO, errno); } showDebug(9, "end\n"); } // ================================================ CNetServer::~CNetServer() { showDebug(1, "cns detroyed\n"); delete Clients; /* #ifdef HAVE_SSL for (unsigned int i = 0; i < nb_clients; i++) if (idf_clients[i].ssl) SSL_free(idf_clients[i].ssl); if (ctx) SSL_CTX_free(ctx); #endif */ } // ================================================ unsigned int CNetServer::AcceptClient() { socklen_t len = sizeof(struct sockaddr_in); int sock; unsigned int client; char * szBanner; char * szClientBanner = (char *) malloc(BANNER_SIZE+1); char * pos; int n; bool bMustLogin; bool bUseSSL; BEGIN; sock = accept(sock_listen, (struct sockaddr *) &client_sa, &len); if (sock == -1) { perror("CNetServer::AcceptClient: accept error"); THROW(ERR_ERRNO, errno); } client = Clients->New(); Clients->Set(client, sock); #ifdef MUST_LOGIN bMustLogin = g_bMustLogin; #else bMustLogin = false; #endif #ifdef HAVE_SSL bUseSSL = g_bUseSSL; #else bUseSSL = false; #endif szBanner = Banner(bUseSSL, bMustLogin); showDebug(1, "Banner: %s\n", szBanner); Send(client, szBanner, BANNER_SIZE+1); // preserve endding \0 Recv(client, szClientBanner, BANNER_SIZE+1); *(szClientBanner+BANNER_SIZE) = '\0'; showDebug(1, "received banner for client %d: %s\n", client, szClientBanner); if (strcmp(szBanner, szClientBanner)) { // banners mismatch, client can't log on showDebug(3, "wrong banner received from %s:%d\n", inet_ntoa(client_sa.sin_addr), ntohs(client_sa.sin_port)); Send(client, "nack", 5); // return reason of refuse pos = strchr(szBanner, ' '); if (!pos) Send(client, "1234567", 8); // useless but must be 8 caracters long n = (pos-szBanner); if (strncmp(szBanner, szClientBanner, n)) Send(client, "version", 8); else Send(client, "banners", 8); Release(client); free(szBanner); free(szClientBanner); szBanner = NULL; szClientBanner = NULL; THROW(ERR_REFUSED); } if (client == MAX_CLIENTS) { // partimaged support only MAX_CLIENTS at same time, user has to wait Send(client, "nack", 5); Send(client, "toomany", 8); free(szBanner); free(szClientBanner); szBanner = NULL; szClientBanner = NULL; THROW(ERR_TOOMANY); } // client can log Send(client, " ack", 5); #ifdef HAVE_SSL SSL * ssl; if (g_bUseSSL) { showDebug(3, "switching to SSL\n"); ssl = SSL_new (ctx); SSL_set_fd(ssl, sock); err = SSL_accept(ssl); if (err == -1) { showDebug(2, "error for client %d: %s\n", client, ERR_error_string(ERR_peek_error(), NULL)); SSL_free(ssl); ssl = NULL; } } else { showDebug(3, "SSL not used\n"); ssl = NULL; } #else showDebug(1, "SSL not used\n"); char * ssl = NULL; #endif showDebug(3, "connexion from %s:%d\n", inet_ntoa(client_sa.sin_addr), ntohs(client_sa.sin_port)); Clients->Set(client, sock, client_sa, ssl); free(szBanner); free(szClientBanner); szBanner = NULL; szClientBanner = NULL; showDebug(9, "end\n"); return client; } void CNetServer::Release(unsigned int client) { Clients->Release(client); } void CNetServer::SendExcep(unsigned int client, CExceptions * excep) { DWORD dwAux; char * szAux; CMessages * mess = new CMessages; showDebug(1, "send except to client %d: [%ld %ld %s]\n", client, excep->get_dwArg1(), excep->get_dwArg2(), excep->get_szArg1()); // send error && error code mess -> setMessage(MSG_ERROR, (DWORD) excep->GetExcept()); SendMsg(client, mess); // send errorcode dwAux = excep->GetExcept(); Send(client, &dwAux, sizeof(dwAux)); // send dwArg1 dwAux = excep->get_dwArg1(); Send(client, &dwAux, sizeof(dwAux)); // send dwArg2 dwAux = excep->get_dwArg2(); Send(client, &dwAux, sizeof(dwAux)); // send szArg1 szAux = excep->get_szArg1(); if (!szAux) szAux = ""; dwAux = strlen(szAux)+1; Send(client, &dwAux, sizeof(dwAux)); Send(client, szAux, dwAux); delete mess; } char * CNetServer::GetPeer(unsigned int client) { char * szAux = (char *) malloc(15+7); //aaa.aaa.aaa.aaa:xxxxx\0 snprintf(szAux, 22, "%s:%d",inet_ntoa(Clients->GetSA(client).sin_addr), ntohs(Clients->GetSA(client).sin_port)); *(szAux+21) = '\0'; return szAux; } // return 0 on success unsigned int CNetServer::ValidatePass(unsigned int client) { int nRes; unsigned int nSize; char * szLogin; char * szPass; char * szSalt; // receive login nRes = Recv(client, &nSize, sizeof(unsigned int)); szLogin = (char *) malloc (nSize); nRes = Recv(client, szLogin, nSize); showDebug(2, "client %d is %s\n", client, szLogin); szSalt = GetSalt(szLogin); if (!szSalt) szSalt = strdup(""); nSize = strlen(szSalt)+1; nRes = Send(client, &nSize, sizeof(unsigned int)); nRes = Send(client, szSalt, nSize); // receive password nRes = Recv(client, &nSize, sizeof(unsigned int)); szPass = (char *) malloc (nSize); nRes = Recv(client, szPass, nSize); nRes = CheckAccess(g_bMustLogin, szLogin, szPass); showDebug(1, "return of checkaccess: %d\n", nRes); if (nRes) { Send(client, "nack", 5); Release(client); } else Send(client, " ack", 5); free(szPass); szPass = NULL; free(szLogin); szLogin = NULL; free(szSalt); szSalt = NULL; return nRes; } partimage-0.6.8/src/shared/0000777000000000000000000000000011256751522014243 5ustar rootrootpartimage-0.6.8/src/shared/exceptions.h0000644000000000000000000000542611252653176016602 0ustar rootroot/*************************************************************************** exceptions.h - description ------------------- begin : THU JAN 4 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _EXCEPTIONS_H_ #define _EXCEPTIONS_H_ #include "gui_text.h" #include "errors.h" class CExceptions { public: CExceptions(const char *szMsg, signed int nError); CExceptions(const char *szMsg, signed int nError, DWORD dwArg1); CExceptions(const char *szMsg, signed int nError, DWORD dwArg1, DWORD dwArg2); CExceptions(const char *szMsg, signed int nError, QWORD qwArg1, QWORD qwArg2); CExceptions(const char *szMsg, signed int nError, char * szArg1); CExceptions(const char *szMsg, signed int nError, char * szArg1, DWORD dwArg1); // this constructor should only be called when receiving exception from server CExceptions(const char *szMsg, signed int nError, char * szArg1, DWORD dwArg1, DWORD dwArg2); ~CExceptions(); const signed int GetExcept(); char * getNewString() { return gui.getNewString(); } unsigned int windowAlreadyExist(char * img, char * path) { return gui.windowAlreadyExist(img, path); } unsigned int windowLocked(char * img, char * path) { return gui.windowLocked(img, path); } unsigned int windowWrongPath(char * szFilename) { return gui.windowWrongPath(szFilename); } bool getCaught() { return m_caught; } void setCaught() { m_caught = true; } DWORD get_dwArg1() { return m_dwArg1; } DWORD get_dwArg2() { return m_dwArg2; } QWORD get_qwArg1() { showDebug(1, "QWORD1=%llu\n", m_qwArg1); return m_qwArg1; } QWORD get_qwArg2() { showDebug(1, "QWORD2=%llu\n", m_qwArg2); return m_qwArg2; } char * get_szArg1() { showDebug(1, "STR=%s\n", m_szArg1);return m_szArg1; } private: void CheckArguments(int excep, int nb); // unsigned int action(int, char *); signed int m_nError; CExceptionsGUI gui; bool m_caught; DWORD m_dwArg1; DWORD m_dwArg2; QWORD m_qwArg1; QWORD m_qwArg2; char * m_szArg1; }; #endif partimage-0.6.8/src/shared/access.h0000644000000000000000000000230711252653176015655 0ustar rootroot/*************************************************************************** access.h - description ------------------- begin : Tue Feb 20 2001 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _ACCESS_H_ #define _ACCESS_H_ unsigned int CheckAccess(bool bMustLogin, char * szLogin, char * szPasswd); char * GetSalt(char * szLogin); unsigned int CheckAccessFile(char * szFile); #endif partimage-0.6.8/src/shared/net.h0000644000000000000000000000443511252653176015206 0ustar rootroot/*************************************************************************** net.h - description ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include "pathnames.h" #include "messages.h" #include "common.h" #include "../server/partimaged.h" #include "structures.h" #ifndef _NET_H_ #define _NET_H_ // banner format is "version( capability)+\0" // for now, banner is in form "0.5.7 SSL LOG " // true banner depends on configure options --disable-ssl, --disable-login #define BANNER_SIZE 32 #ifdef HAVE_SSL #include #include #include #include #include #include #endif class CNet { public: CNet() {} ~CNet() {} size_t nSend(CIdefRemote remote, const void * buf, size_t len); size_t nRecv(CIdefRemote remote, void * buf, size_t len); size_t nSendMsg(CIdefRemote remote, CMessages * msg); size_t nRecvMsg(CIdefRemote remote, CMessages * msg); size_t nSendStr(CIdefRemote remote, const char * str); size_t nRecvStr(CIdefRemote remote, const char * str, size_t len); char * Banner(bool bUseSSL, bool bMustLogin); }; #endif // _NET_H_ partimage-0.6.8/src/shared/messages.h0000644000000000000000000000515011252653176016222 0ustar rootroot/*************************************************************************** messages.h - description ------------------- begin : Mon Oct 30 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _MESSAGES_H_ #define _MESSAGES_H_ #include #include #include "misc.h" #include "partimage.h" #define MSG_OK 0 #define MSG_OPENW 1 #define MSG_WRITE 2 /// #define MSG_WRITEMAGIC 3 #define MSG_READMAGIC 4 #define MSG_READ 5 #define MSG_CLOSE 6 #define MSG_OPENR 7 #define MSG_ISSPLIT 8 #define MSG_GETERROR 9 #define MSG_ERROR 10 #define MSG_GETSPACE 11 /// #define MSG_UNWRITE 12 #define MSG_DOESFILEEXIST 13 #define MSG_GETDISKSPACEFILE 14 #define MSG_GETFILESIZE 15 #define MSG_MOUNTIMAGELOCATION 16 #define MSG_UMOUNTIMAGELOCATION 17 #define MSG_NEWOPTIONS 18 #define MSG_SET_CVS 20 #define MSG_SET_VN 21 //#define MSG_SET_C 22 //#define MSG_SET_CRC 23 #define MSG_SET_IS 24 #define MSG_SET_IO 25 #define MSG_SET_P 26 #define MSG_SET_IF 27 #define MSG_SET_OF 28 #define MSG_GET_CVS 30 #define MSG_GET_VN 31 #define MSG_GET_C 32 //#define MSG_GET_CRC 33 #define MSG_GET_IS 34 #define MSG_GET_IO 35 #define MSG_GET_P 36 #define MSG_GET_IF 37 #define MSG_GET_OF 38 #define MSG_QUIT 40 #define OFF_SIZE (sizeof(DWORD)) #define MESSAGE_LEN (OFF_SIZE + sizeof(DWORD)) class CMessages { private: char msg[sizeof(DWORD)+sizeof(DWORD)]; public: CMessages() {} void setMessage(DWORD _cmd); void setMessage(DWORD _cmd, DWORD _size); void getMessage(DWORD *_cmd, DWORD *_size); void getCmd(DWORD * cmd) { memcpy(cmd, msg, sizeof(DWORD)); } void getSize(DWORD * size) { memcpy(size, msg+OFF_SIZE, sizeof(DWORD)); } char * toString() { return msg; } void fromString(char * _msg) { memcpy(msg, _msg, MESSAGE_LEN); } }; #endif // _MESSAGES_H_ partimage-0.6.8/src/shared/messages.cpp0000644000000000000000000000300611252653176016553 0ustar rootroot/*************************************************************************** messages.cpp - class to handle net messages ------------------- begin : Mon Oct 30 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "messages.h" void CMessages::setMessage(DWORD _cmd) { DWORD _size; memcpy(msg, &_cmd, sizeof(DWORD)); memcpy(msg+OFF_SIZE, &_size, sizeof(DWORD)); } void CMessages::setMessage(DWORD _cmd, DWORD _size) { memcpy(msg, &_cmd, sizeof(DWORD)); memcpy(msg+OFF_SIZE, &_size, sizeof(DWORD)); } void CMessages::getMessage(DWORD *_cmd, DWORD *_size) { memcpy(_cmd, msg, sizeof(DWORD)); memcpy(_size, msg+OFF_SIZE, sizeof(DWORD)); } partimage-0.6.8/src/shared/pathnames.h.in0000644000000000000000000000162711252653176017005 0ustar rootroot#ifndef _PATHNAMES_H_ #define _PATHNAMES_H_ #define PARTIMAGE_LOG "@LOGDIR@/partimage-debug.log" #define PARTIMAGED_LOG "@LOGDIR@/partimaged.log" // partimaged will change euid to this user #define PARTIMAGED_USER "partimag" #ifdef DEVEL_SUPPORT // define if you want to append pid number to PARTIMAGE_LOG // ex: /var/log/partimage-debug.log_45121 instead of // /var/log/partimage-debug.log // this can be used when debugging with several running partimage #define APPEND_PID 1 #define DEFAULT_DEBUG_LEVEL 5 #else // DEVEL_SUPPORT #define DEFAULT_DEBUG_LEVEL @DEFAULT_DEBUG_LEVEL@ #endif // DEVEL_SUPPORT #define PARTIMAGED_USERS "@SYSCONFDIR@/partimaged/partimagedusers" // used by SSL. #define CERTF "@SYSCONFDIR@/partimaged/partimaged.cert" #define KEYF "@SYSCONFDIR@/partimaged/partimaged.key" // you can use CInterfaceNewt #define PARTIMAGE_INTERFACE CInterfaceNewt #endif // _PATHNAMES_H_ partimage-0.6.8/src/shared/structures.h0000644000000000000000000000272011252653176016636 0ustar rootroot/*************************************************************************** structures.h - description ------------------- begin : Tue May 1 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _STRUCTURES_H_ #define _STRUCTURES_H_ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_SSL #include #include #include #include #include #include #endif class CIdefRemote { public: int Sock; struct sockaddr_in SockAddr; bool Present; #ifdef HAVE_SSL SSL * Ssl; #else char * Ssl; #endif }; #endif // _STRUCTURES_H_ partimage-0.6.8/src/shared/Makefile.am0000644000000000000000000000162111252653176016275 0ustar rootroot## Process this file with automake to produce Makefile.in # Should be another room for .cpp files but I can't find it. EXTRA_DIST = access.cpp common.cpp exceptions.cpp image_disk.cpp \ messages.cpp net.cpp # Pickup header files here so automake knows about them. # useful at least for 'make dist' noinst_HEADERS = access.h common.h errors.h exceptions.h image_disk.h \ messages.h net.h structures.h privs.h endianess.h pathnames.h INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/shared \ -I/usr/include/slang noinst_LIBRARIES = libshared.a libshared_a_SOURCES = \ common.cpp \ access.cpp \ net.cpp \ exceptions.cpp \ messages.cpp \ privs.cpp \ image_disk.cpp DEFS=@DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 CPPFLAGS=@CPPFLAGS@ -Wall MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/src/shared/image_disk.cpp0000644000000000000000000005140711252653176017050 0ustar rootroot/*************************************************************************** image_disk.cpp - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif // _GNU_SOURCE #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif //_FILE_OFFSET_BITS #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_STATFS_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #include #include #include #include #include #include #include #include "image_disk.h" #include "errors.h" #include "common.h" #include "buffer.h" #include "pathnames.h" #define SPACEFILE_SIZE (10*1024*1024) // 10 MB #ifndef HAVE_FSTAT64 #warning "fstat32 used" #endif #ifndef HAVE_FSTATFS64 #warning "fstatfs32 used" #endif #ifndef HAVE_OPEN64 #warning "open32 used" #endif // ======================================================= CImageDisk::CImageDisk(COptions * options):CImageBase() // [Main-Thread] { m_bIsOpened = false; m_qwTotal = 0LL; m_qwVolSize = 0LL; memcpy(&m_options, options, sizeof(COptions)); memset(m_szSpaceFilename, 0, sizeof(m_szSpaceFilename)); showDebug(3, "compress=%ld\n", options->dwCompression); } // ======================================================= CImageDisk::~CImageDisk() // [Main-Thread] { showDebug(1, "total written: %lld\n", m_qwTotal); unlockImageFile(); } // ======================================================= QWORD CImageDisk::getPartitionSize(const char *szDevice) // [Main-Thread] { QWORD qwSize; long lSize; int fdDevice; showDebug(1, "begin\n"); qwSize = 0; #ifdef HAVE_OPEN64 fdDevice = open64(szDevice, O_RDONLY); #else fdDevice = open(szDevice, O_RDONLY); #endif if (fdDevice < 0) THROW( ERR_ERRNO, errno); #ifdef OS_LINUX if (!ioctl(fdDevice, BLKGETSIZE, &lSize)) { qwSize = ((QWORD) 512) * ((QWORD) lSize); } else THROW( ERR_ERRNO, errno); #endif if (::close(fdDevice)) THROW( ERR_ERRNO, errno); return qwSize; } // ======================================================= void CImageDisk::getFileSize(QWORD *qwFileSize, char *szFilepath) // [Main-Thread] { #ifdef HAVE_FSTAT64 struct stat64 fStat; #else struct stat fStat; #endif //struct stat st; int nRes; #ifdef HAVE_FSTAT64 nRes = stat64(szFilepath, &fStat); #else nRes = stat(szFilepath, &fStat); #endif //nRes = stat(szFilepath, &st); showDebug(1, "getFileSize() -> nRes=%d\n", nRes); if (nRes != -1) *qwFileSize = (QWORD)fStat.st_size; // ::getFileSize(szFilepath); else *qwFileSize = (QWORD)0LL; // ::getFileSize(szFilepath); } // ======================================================= void CImageDisk::get_qwCurrentVolumeSize(QWORD *qwSize) // [Main-Thread] { //struct stat fStat; if (m_bIsOpened == false) { showDebug(3, "Failed: m_bIsOpened == false\n"); THROW( ERR_OPENED); } errno = 0; *qwSize = m_qwVolSize; } // ======================================================= // may throw incomplete on error void CImageDisk::write(void *vBuf, DWORD dwLength, int *nResult) // [Buffer-Thread] { DWORD dwRes, dwFirstWritten; QWORD qwVolumeSize; int nRes; char *cBuf; showDebug(3, "called for %ld\n", dwLength); *nResult = 0; if (get_bIsOpened() == false) { showDebug(3, "file not opened\n"); *nResult = ERR_OPENED; return; //THROW(ERR_OPENED); } //*dwResult = 0; m_qwTotal += (QWORD) dwLength; m_qwVolSize += (QWORD) dwLength; cBuf = (char*) vBuf; errno = 0; dwRes = fwrite(cBuf, 1, dwLength, m_fImageFile); //*dwResult += dwRes; if (dwRes != dwLength) // "out of space" or "file too large" { showDebug(1, "ERROR: dwRes != dwLength (dwRes=%lu and dwLen=%lu)\n",dwRes,dwLength); dwFirstWritten = dwRes; if (errno == EFBIG) // if "file too large" (larger than 2 GB) { showDebug(1, "ERROR: file too large\n"); *nResult = ERR_FILETOOLARGE; return; //THROW(ERR_FILETOOLARGE); } else // "no space left" { // 1. free a little space nRes = destroySpaceFile(); if (nRes == -1) {*nResult = ERR_DESTROYSPACEFILE; return; } //THROW(ERR_DESTROYSPACEFILE); // 2. write the end of data dwRes = fwrite(cBuf+dwFirstWritten, 1, dwLength-dwFirstWritten, m_fImageFile); //*dwResult += dwRes; if (dwRes != dwLength-dwFirstWritten) // out of space { *nResult = ERR_INCOMPLETEFINISH; showDebug(3, "ERROR: ERR_INCOMPLETEFINISH (dwRes != dwLength-dwFirstWritten) error %d = %s " "[dwRes=%lu and dwLength-dwFirstWritten=%lu]\n", errno, strerror(errno), dwRes, dwLength-dwFirstWritten); newtWinMessage("error", "ok", "ERROR: ERR_INCOMPLETEFINISH (dwRes != dwLength-dwFirstWritten) " "error %d = %s [dwRes=%lu and dwLength-dwFirstWritten=%lu]\n", errno, strerror(errno), dwRes, dwLength-dwFirstWritten); } else // no error { *nResult = ERR_INCOMPLETE; showDebug(3, "ERROR: ERR_INCOMPLETE. error = %d = %s\n", errno, strerror(errno)); } } } // check for SPLIT_SIZE get_qwCurrentVolumeSize(&qwVolumeSize); if ( (m_options.qwSplitSize) && (qwVolumeSize + ENDVOL_MARGIN > m_options.qwSplitSize)) { *nResult = ERR_SPLITSIZE; } showDebug(1, "m_qwTotal = %lld\n", m_qwTotal); } // ======================================================= // may raise ERR_OPENED, ERR_EOF DWORD CImageDisk::read(void *buf, DWORD dwLength) // [Buffer-Thread] { if (m_bIsOpened == false) THROW(ERR_OPENED); DWORD dwRes; errno = 0; // **************************************** //clearerr(m_fImageFile); dwRes = fread(buf, 1, dwLength, m_fImageFile); if (dwRes < dwLength) { showDebug(1, "EOF: dwRes=%lu and dwLength=%lu: MISSING: %lu\n", dwRes, dwLength, dwLength-dwRes); } m_qwTotal += (QWORD) dwRes; //dwLength; showDebug(1, "cid: %ld ; m_qwTotal = %lld\n", dwRes, m_qwTotal); return dwRes; // important: must return dwRes even if EOF reached } // ======================================================= void CImageDisk::unlockImageFile() // [Main-Thread] { #ifndef DEVEL_SUPPORT flock(m_nImageFd, LOCK_UN); showDebug(4, "UNLOCK file %s\n", m_szImageFilename); #endif // DEVEL_SUPPORT } // ======================================================= // may raise an errno exception void CImageDisk::close() // [Main-Thread] { BEGIN; showDebug(1, "close -> %lld\n", m_qwTotal); if (m_bIsOpened == false) RETURN; unlockImageFile(); int nRes = 0; errno = 0; destroySpaceFile(); nRes = fclose(m_fImageFile); if (nRes) THROW(ERR_ERRNO, errno); m_bIsOpened = false; RETURN; } // ======================================================= int CImageDisk::getCompressionLevelForImage(char *szFilename) // [Main-Thread] { //return(COMPRESS_LZO); BEGIN; if (!strcmp(szFilename, "stdin")) return COMPRESS_NONE; gzFile gzImageFile; FILE *fImageFile; BZFILE *bzImageFile; DWORD dwRes; CVolumeHeader headVolume; char *szLabel = MAGIC_BEGIN_VOLUME; char cBuf[64]; showDebug(3, "TRACE_001\n"); // ------ 0. Check for LZO compression fImageFile = fopen(szFilename, "rb"); if (fImageFile == NULL) goto checkBzip2; dwRes = fread(cBuf, 1, 16, fImageFile); fclose(fImageFile); if (dwRes != 16) goto checkBzip2; if (strncmp(cBuf+1, "LZO", 3) == 0) RETURN_int(COMPRESS_LZO); showDebug(3, "TRACE_002\n"); // ------ 1. Check for a bzip2 compression checkBzip2: bzImageFile = BZ2_bzopen(szFilename, "rb"); if (bzImageFile == NULL) goto checkNone; dwRes = BZ2_bzread(bzImageFile, &headVolume, sizeof(CVolumeHeader)); BZ2_bzclose(bzImageFile); if (dwRes != sizeof(CVolumeHeader)) goto checkNone; if (strncmp(headVolume.szMagicString, szLabel, strlen(szLabel)) == 0) RETURN_int(COMPRESS_BZIP2); showDebug(3, "TRACE_003\n"); // ------ 2. Check for no compression checkNone: fImageFile = fopen(szFilename, "rb"); if (fImageFile == NULL) goto checkGzip; dwRes = fread(&headVolume, 1, sizeof(CVolumeHeader), fImageFile); fclose(fImageFile); if (dwRes != sizeof(CVolumeHeader)) goto checkGzip; if (strncmp(headVolume.szMagicString, szLabel, strlen(szLabel)) == 0) RETURN_int(COMPRESS_NONE); showDebug(3, "TRACE_004\n"); // ------ 3. Check for a gzip compression checkGzip: gzImageFile = gzopen(szFilename, "rb"); if (gzImageFile == NULL) RETURN_int(-1); // error dwRes = gzread(gzImageFile, &headVolume, sizeof(CVolumeHeader)); gzclose(gzImageFile); if (dwRes != sizeof(CVolumeHeader)) RETURN_int(-1); // error if (strncmp(headVolume.szMagicString, szLabel, strlen(szLabel)) == 0) //if (strcmp(headMain.szAppName, "PartImage") == 0) RETURN_int(COMPRESS_GZIP); showDebug(3, "TRACE_005\n"); RETURN_int(-1); // error } // ======================================================= // may throw ERR_OPENED, ERR_NOTFOUND, errno, comp void CImageDisk::openReading() // [Main-Thread] { //int nRes; #ifdef HAVE_FSTAT64 struct stat64 fStat; #else struct stat fStat; #endif BEGIN; showDebug(1, "ALREADY=%llu\n", m_qwTotal); m_qwTotal=0LL; if (m_bIsOpened == true) THROW(ERR_OPENED); if (strcmp(m_szImageFilename, "stdin")) { // check the file exists errno = 0; if (access(m_szImageFilename, F_OK) == -1) // if the file doesn't exists THROW(ERR_NOTFOUND); showDebug(1, "openReading[%s]\n", m_szImageFilename); #ifdef OS_LINUX #ifdef HAVE_OPEN64 m_nImageFd = open64(m_szImageFilename, O_RDONLY | O_LARGEFILE | O_NOFOLLOW); #else m_nImageFd = open(m_szImageFilename, O_RDONLY | O_LARGEFILE | O_NOFOLLOW); #endif #endif #ifdef OS_FBSD m_nImageFd = open(m_szImageFilename, O_RDONLY | O_NOFOLLOW); #endif if (m_nImageFd == -1) THROW(ERR_ERRNO, errno); else showDebug(1, "preopen successfull for %s\n", m_szImageFilename); // ---- avoid RACE CONDITIONS security problems: errno = 0; #ifdef HAVE_FSTAT64 if (fstat64(m_nImageFd, &fStat) == -1) #else if (fstat(m_nImageFd, &fStat) == -1) #endif { showDebug(1, "fstat() returned -1 and errno=%d=[%s]\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } if (!S_ISREG(fStat.st_mode)) // not a regular file THROW(ERR_NOTAREGULARFILE, m_szImageFilename); //BIGH // ---- lock the image file if (lockImage(LOCK_SH, m_nImageFd, m_szImageFilename) == -1) THROW(ERR_LOCKED, m_szImageFilename); m_fImageFile = fdopen(m_nImageFd, "rb"); if (m_fImageFile == NULL) THROW( errno); else showDebug(1, "open\n"); showDebug(1, "file %s opened ok\n", m_szImageFilename); } // stdin? else { m_fImageFile = stdin; showDebug(1, "stdin opened for reading\n"); } m_bIsOpened = true; } // ======================================================= int CImageDisk::destroySpaceFile() // [Main-Thread] { int nRes; showDebug(1, "DESTROY SPACE FILE [%s]\n", m_szSpaceFilename); //newtWinMessage("before","b","erase %s", m_szSpaceFilename); nRes = unlink(m_szSpaceFilename); //newtWinMessage("after","b","erase %s", m_szSpaceFilename); return nRes; } // ======================================================= int CImageDisk::createSpaceFile() // [Main-Thread] { char cBuffer[1024]; //int nSpaceFd; FILE *fStream; DWORD dwFileSize; int nRes; WORD i; showDebug(1, "CREATE SPACE FILE [%s]\n", m_szSpaceFilename); // write random numbers for (i=0; i < sizeof(cBuffer); i++) cBuffer[i] = (i ^ 94) % 256; // open file descriptor ICI fStream = openFileDescriptorSecure(m_szSpaceFilename, "a", O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC, S_IREAD | S_IWRITE); if (!fStream) return -1; dwFileSize = 0; while (dwFileSize < SPACEFILE_SIZE) { //nRes = ::write(nSpaceFd, cBuffer, sizeof(cBuffer)); nRes = fwrite(cBuffer, sizeof(cBuffer), 1, fStream); if (nRes != 1) { fclose(fStream); destroySpaceFile(); return -1; } dwFileSize += sizeof(cBuffer); } nRes = fclose(fStream); if (nRes == -1) return -1; return 0; // success } // ======================================================= // may raise ERR_OPENED, ERR_EXIST, errno void CImageDisk::openWriting() // [Main-Thread] { #ifdef HAVE_FSTAT64 struct stat64 fStat; #else struct stat fStat; #endif int flags; int nRes; char szShortName[32]; // DOS short filenames char szPathDir[MAXPATHLEN]; BEGIN; showDebug(1, "ALREADY=%lld\n", m_qwTotal); if (m_bIsOpened == true) THROW(ERR_OPENED); SNPRINTF(szShortName, "pi%.8x", (DWORD)generateIdentificator()); extractFilepathFromFullPath(m_szImageFilename, szPathDir); // filepath without filename if (access(szPathDir, R_OK) == -1) mkdir(szPathDir, 0755); snprintf(m_szSpaceFilename, MAXPATHLEN, "%s/%8s.tmp", szPathDir, szShortName); showDebug(1, "TEMP=[%s]\n", m_szSpaceFilename); if (strcmp(m_szImageFilename, "stdout")) { // we create spacefile only if imagefile is not stdout errno = 0; nRes = createSpaceFile(); if (nRes == -1) { if (errno == ENOSPC) { showDebug(1, "No space left -> cannot create file [%s]\n", m_szSpaceFilename); THROW(ERR_CREATESPACEFILENOSPC, szPathDir); } else if (errno == EACCES) { showDebug(1, "Permission denied -> cannot create file [%s]\n", m_szSpaceFilename); THROW(ERR_CREATESPACEFILEDENIED, szPathDir); } else { showDebug(1, "Cannot create SpaceFile[%s]\n", m_szSpaceFilename); THROW(ERR_CREATESPACEFILE, m_szSpaceFilename); } } } if (strcmp(m_szImageFilename, "stdout")) { errno = 0; flags = O_CREAT | O_WRONLY | O_NOFOLLOW; #ifdef OS_LINUX flags |= O_LARGEFILE; #endif if (m_options.bOverwrite != true) flags |= O_EXCL; #ifdef HAVE_OPEN64 m_nImageFd = open64(m_szImageFilename, flags, S_IREAD | S_IWRITE); #else m_nImageFd = open(m_szImageFilename, flags, S_IREAD | S_IWRITE); #endif if ((m_nImageFd == -1)) if (errno == EEXIST) THROW(ERR_EXIST); else THROW(ERR_ERRNO, errno); // ---- avoid RACE CONDITIONS security problems: #ifdef HAVE_FSTAT64 if (fstat64(m_nImageFd, &fStat) == -1) #else if (fstat(m_nImageFd, &fStat) == -1) #endif THROW(ERR_ERRNO, errno); if (!S_ISREG(fStat.st_mode)) // not a regular file THROW(ERR_NOTAREGULARFILE, m_szImageFilename); // lock the image file if (lockImage(LOCK_EX, m_nImageFd, m_szImageFilename) == -1) THROW(ERR_LOCKED, m_szImageFilename); /* FIXME: this fails when using LUFS. Is it required? // truncate the file (now, we can because it's not a symlink) if (ftruncate(m_nImageFd, 0L) == -1) THROW(ERR_ERRNO, errno); */ showDebug(1, "open std\n"); m_fImageFile = fdopen(m_nImageFd, "wb"); if (m_fImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } } else // it's stdout { m_fImageFile = stdout; showDebug(1, "image will be on stdout\n"); } m_bIsOpened = true; m_qwVolSize = 0LL; showDebug(1, "end of CImageDisk::openWriting(), return = ok\n"); } // ======================================================= // flag = LOCK_SH | LOCK_EX if called when restoring or saving int CImageDisk::lockImage(int flag, int nFd, char *szFilename) // [Main-Thread] { #ifndef DEVEL_SUPPORT int nRes; errno = 0; if (flag != LOCK_SH && flag != LOCK_EX) { showDebug(1, "LOCK flag is %d\n", flag); RETURN_int(-1); } nRes = flock(m_nImageFd, flag | LOCK_NB); if (nRes == -1) RETURN_int(-1); showDebug(4, "LOCK file %s\n", m_szImageFilename); #endif // DEVEL_SUPPORT return 0; } // ======================================================= // may throw errno #ifdef HAVE_SYS_STATFS_H void CImageDisk::getFreeSpace(QWORD *qwAvailDiskSpace) // [Main-Thread] { int nRes; #ifdef HAVE_FSTATFS64 struct statfs64 fsInfo; #else struct statfs fsInfo; #endif *qwAvailDiskSpace = 0LL; #ifdef HAVE_FSTATFS64 nRes = fstatfs64(m_nImageFd, &fsInfo); #else nRes = fstatfs(m_nImageFd, &fsInfo); #endif if (nRes == -1) // error THROW(ERR_ERRNO, errno); *qwAvailDiskSpace = ((QWORD) fsInfo.f_bavail) * ((QWORD)fsInfo.f_bsize); } #else //ifdef HAVE_SYS_STATFS_H void CImageDisk::getFreeSpace(QWORD *qwAvailDiskSpace) { #warning "getFreeSpace always return 0" *qwAvailDiskSpace = 0LL; } #endif // ======================================================= bool CImageDisk::doesFileExists(char *szPath) // [Main-Thread] { //return ::doesFileExists2(szPath); BEGIN; //FILE *fStream; #ifdef HAVE_FSTAT64 struct stat64 fStat; #else struct stat fStat; #endif int nFd; int nRes; errno = 0; if ( strcmp(szPath, "stdin") ) { #ifdef HAVE_OPEN64 nFd = open64(szPath, O_RDONLY | O_NOFOLLOW | O_LARGEFILE); #else nFd = open(szPath, O_RDONLY | O_NOFOLLOW | O_LARGEFILE); #endif } else { // it's stdin nFd=0; return true; } showDebug(3, "doesFileExists(%s) =>%d\n",szPath,nFd); //fStream = fopen(szPath, "rb"); //if (!fStream) // error if (nFd == -1) { RETURN_int (errno != ENOENT); } else // success { #ifdef HAVE_FSTAT64 nRes = fstat64(nFd, &fStat); #else nRes = fstat(nFd, &fStat); #endif showDebug(3, "fstat() returned %d\n", nRes); if (nRes == -1) return true; // for large files //fclose(fStream); ::close(nFd); showDebug(3, "fStat.st_mode=%ld\n",(long)fStat.st_mode); RETURN_int(S_ISREG(fStat.st_mode)); } } // ======================================================= #ifdef HAVE_SYS_STATFS_H void CImageDisk::getDiskFreeSpaceForFile(QWORD *qwAvailDiskSpace, char *szFilepath) // [Main-Thread] { //::getDiskFreeSpaceForFile(qwFreeSpace, szFilepath); int nRes; struct statfs fsInfo; *qwAvailDiskSpace = 0LL; errno = 0; nRes = statfs(szFilepath, &fsInfo); if (nRes == -1) // error { if (errno == ENOENT) // file doesn't exists { // create an empty file FILE *fFile; fFile = fopen(szFilepath, "w"); if (fFile == NULL) RETURN; fclose(fFile); getDiskFreeSpaceForFile(qwAvailDiskSpace, szFilepath); unlink(szFilepath); RETURN;; } else // another error { RETURN; } } *qwAvailDiskSpace = ((QWORD) fsInfo.f_bavail) * ((QWORD)fsInfo.f_bsize); RETURN; } #else // HAVE_SYS_STATFS_H void CImageDisk::getDiskFreeSpaceForFile(QWORD *qwAvailDiskSpace, char *szFilepath) // [Main-Thread] { #warning "getDiskFreeSpaceForFile always return 5 MB" *qwAvailDiskSpace = (QWORD)(5LL*1024LL*1024LL); return 0; } #endif // HAVE_SYS_STATFS_H // ======================================================= int CImageDisk::mountImageLocation(char * szMountDevice, char * szMountPoint, char * szMountFS) // [Main-Thread] { int nRes; errno = 0; showDebug(1, "automount-> %s %s %s\n", szMountDevice, szMountPoint,szMountFS); #ifdef OS_LINUX if (!strcasecmp(szMountFS, "iso9660")) nRes = mount(szMountDevice, szMountPoint, szMountFS, MS_RDONLY, NULL); else if (!strcasecmp(szMountFS, "udf")) nRes = mount(szMountDevice, szMountPoint, szMountFS, MS_NOATIME, NULL); else nRes = mount(szMountDevice, szMountPoint, szMountFS, 0, NULL); #endif #ifdef OS_FBSD nRes = mount(szMountFS, szMountPoint, 0, NULL); #endif if ((nRes) && (errno != EBUSY)) // EBUSY==already mounted { showDebug(1, "mount failed: %d (%s)\n", errno, strerror(errno)); return -1; } else return 0; } // ======================================================= int CImageDisk::umountImageLocation(char *szMountPoint) // [Main-Thread] { sync(); #ifdef OS_LINUX return umount(szMountPoint); #endif #ifdef OS_FBSD return unmount(szMountPoint, 0); #endif } partimage-0.6.8/src/shared/Makefile.in0000644000000000000000000003622311256751264016315 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ subdir = src/shared DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/pathnames.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = pathnames.h LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libshared_a_AR = $(AR) $(ARFLAGS) libshared_a_LIBADD = am_libshared_a_OBJECTS = common.$(OBJEXT) access.$(OBJEXT) \ net.$(OBJEXT) exceptions.$(OBJEXT) messages.$(OBJEXT) \ privs.$(OBJEXT) image_disk.$(OBJEXT) libshared_a_OBJECTS = $(am_libshared_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libshared_a_SOURCES) DIST_SOURCES = $(libshared_a_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -Wall CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ # Should be another room for .cpp files but I can't find it. EXTRA_DIST = access.cpp common.cpp exceptions.cpp image_disk.cpp \ messages.cpp net.cpp # Pickup header files here so automake knows about them. # useful at least for 'make dist' noinst_HEADERS = access.h common.h errors.h exceptions.h image_disk.h \ messages.h net.h structures.h privs.h endianess.h pathnames.h INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/shared \ -I/usr/include/slang noinst_LIBRARIES = libshared.a libshared_a_SOURCES = \ common.cpp \ access.cpp \ net.cpp \ exceptions.cpp \ messages.cpp \ privs.cpp \ image_disk.cpp MAINTAINERCLEANFILES = Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/shared/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/shared/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh pathnames.h: $(top_builddir)/config.status $(srcdir)/pathnames.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libshared.a: $(libshared_a_OBJECTS) $(libshared_a_DEPENDENCIES) -rm -f libshared.a $(libshared_a_AR) libshared.a $(libshared_a_OBJECTS) $(libshared_a_LIBADD) $(RANLIB) libshared.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/access.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exceptions.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image_disk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/messages.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/net.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/privs.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) $(HEADERS) 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am 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 installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags 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 uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: partimage-0.6.8/src/shared/privs.cpp0000644000000000000000000000560311256743072016113 0ustar rootroot/*************************************************************************** privs.h - class for changing userid to 'partimag' ------------------- begin : Tue Jun 28 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include #include #include #include #include #ifdef HAVE_CONFIG_H #include #endif #include "common.h" #include "privs.h" #ifdef MUST_CHEUID // get our new uid/euid from /etc/passwd // if not run as root, we can't change them CPrivs::CPrivs(char * _user) { struct passwd * password = (struct passwd *) malloc(sizeof(struct passwd)); switched = false; if (getuid()) // we're not root, stay as user { // we can't use showDebug since not yet opened user = getuid(); setuid(user); seteuid(user); } else { password = getpwnam(_user); endpwent(); if (password) { switched = true; user = password -> pw_uid; group = password -> pw_gid; setuid(0); setegid(group); // we're now _user seteuid(user); // we're now _user } else { // we can't use showDebug since not yet opened fprintf(stderr, "Changing to user '%s' failed:\n", _user); fprintf(stderr, "impossible to get user '%s' from /etc/passwd.\n", _user); fprintf(stderr, "You must add '%s' to your password file.\n", _user); fprintf(stderr, "See: 'man adduser' or 'man useradd' for help.\n"); exit(1); } } } // be root void CPrivs::Root() { showDebug(4, "Switched to Root\n"); seteuid(0); } // switch to unpriv user void CPrivs::User() { showDebug(4, "Switched to user\n"); seteuid(user); } // go to unpriv user without way back void CPrivs::ForceUser() { showDebug(4, "forced unpriv user\n"); seteuid(0); setuid(user); seteuid(user); } #else // MUST_CHEUID // how does it work for BSD ? CPrivs::CPrivs(char * _user) {} void CPrivs::Root() {} void CPrivs::User() {} #endif // MUST_CHEUID partimage-0.6.8/src/shared/common.h0000644000000000000000000002007511256743306015705 0ustar rootroot /*************************************************************************** common.h - description ------------------- begin : Sun Jul 16 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef COMMON_H #define COMMON_H #include #include #include #include "partimage.h" // debug extern DWORD g_dwDebugLevel; extern int g_nDebugThreadMain; extern int g_nDebugThreadBufferW; extern int g_nDebugThreadBufferR; extern pthread_mutex_t g_mutexDebug; // lock the buffer while working inside it extern pthread_mutexattr_t g_mutexDebugAttr; extern char *g_szSupportedFileSystems; void formatCompilOptions(char *szDest, int nMaxLen); FILE *openFileDescriptorSecure(char *szFilename, char *szMode, int nFlags, mode_t mode); char *formatGzipError(int nError, char *szTemp, int nMaxLen); int extractFilenameFromFullPath(char *szFullpath, char *szFilename); int extractFilepathFromFullPath(char *szFullpath, char *szFilepath); QWORD generateIdentificator(); /** Show formated advanced debug informations in the log file (/var/log/partimage-debug.log in most cases) * The debug level allow to tell if the message must be written in a normal use, or only in a debug session * This function must not be used directly: use showDebug() instead. * nDebug Level: * + 0 -> no message in the log file * + 1 -> important messages in the log file (default) good for users * + 2 -> many messages in the log file: good for developers * + 3 -> all messages in the log file: good for debugging */ void showDebugMsg(FILE *fDebug, DWORD dwDebugLevel, const char *szFile, const char *szFunction, int nLine, const char *fmt, ...); //bool doesFileExists(char *szPath); /** Returns the formatted size in the appropriated unit. Examples: * 193 --> "193 bytes" * 9185 --> "8.97 KB" * 58955455 --> "56.22 MB" * @param qwSize numerical size * @param szText buffer where to write the result string * @return pointer to the result string (allows to use this function in an expression) */ char *formatSize2(QWORD qwSize, char *szText, int nMaxLen); #define formatSize(qwSize, szBuf) formatSize2(qwSize, szBuf, sizeof(szBuf)) char *formatSizeNoGui(QWORD qwSize, char *szText, int nMaxLen); #define formatSizeNG(qwSize, szBuf) formatSizeNoGui(qwSize, szBuf, sizeof(szBuf)) /** Returns the formatted time in a string. This function receives a number of seconds, and * format this in hour, minutes, seconds into a char buffer. * Examples: * 70 --> "1min:10sec" * 3700 --> "1h:1min:30sec" * @param qwSec number of seconds * @param szBuf buffer where to write the result string * @return pointer to the result string (allows to use this function in an expression) */ char *formatTime2(DWORD dwSec, char *szBuf, int nMaxLen); #define formatTime(dwSec, szBuf) formatTime2(dwSec, szBuf, sizeof(szBuf)) char *formatTimeNoGui(DWORD dwSec, char *szBuf, int nMaxLen); #define formatTimeNG(dwSec, szBuf) formatTimeNoGui(dwSec, szBuf, sizeof(szBuf)) /** returns the free disk space available to write a file. For example, if the file is "/home/user/file.txt", it returns the free space on the /home partition. * @param qwAvailDiskSpace adress of the 64 bits number of the free space in bytes * @param szFilename path of the file to look to the free space for * @return @p 0 if success, @p -1 if error */ //int getDiskFreeSpaceForFile2(QWORD *qwAvailDiskSpace, const char *szFilename); /** returns the compression type used for an image file. For example, if the image was created in the gzip compression mode, and it was uncompressed, then it will returns COMPRESS_NONE. It doesn't use the file name to detect the compression level. * @param szFilename path of the file to look to the compression level for * @return @p COMPRESS_NONE or @p COMPRESS_GZIP or @p COMPRESS_BZIP2 */ //int getCompressionLevelForImageCommon(char *szFilename); // =================================================================== struct CVolumeHeader // size must be 512 (adjust the reserved data) { char szMagicString[32]; char szVersion[64]; // version of the image file DWORD dwVolumeNumber; QWORD qwIdentificator; // to avoid using volumes from differents image files on restore unsigned char cReserved[404]; // Adjust to fit with total header size } __attribute__ ((packed)); // =================================================================== struct CMainTail // size must be 16384 (adjust the reserved data) { QWORD qwCRC; DWORD dwVolumeNumber; unsigned char cReserved[16372]; // Adjust to fit with total header size }; // =================================================================== struct COptions { bool bOverwrite; //DWORD dwSplitMode; bool bSplitWait; // Wait after each volume change bool bRunShell; // run a shell command on each volume change bool bEraseWithNull; bool bCheckBeforeSaving; bool bFailIfMounted; // Fail if file system is mounted bool bAskDesc; bool bBatchMode; bool bSync; bool bMustLogin; bool bUseSSL; bool bBackupMBR; bool bSimulateMode; DWORD dwFinish; DWORD dwServerPort; // ip port DWORD dwDebugLevel; DWORD dwCompression; QWORD qwSplitSize; // 0L = auto, !0 = bytes size char szServerName[MAX_HOSTNAMESIZE]; // partimaged server's name char szAutoMount[MAXPATHLEN]; char szUserName[MAX_USERNAMELEN]; char szPassWord[MAX_PASSWORDLEN]; char szFullyBatchMode[2048]; }; #define MAX_UNAMEINFOLEN 65 //SYS_NMLN struct portable_tm { uint32_t tm_sec; uint32_t tm_min; uint32_t tm_hour; uint32_t tm_mday; uint32_t tm_mon; uint32_t tm_year; uint32_t tm_wday; uint32_t tm_yday; uint32_t tm_isdst; uint32_t tm_gmtoff; uint32_t tm_zone; }; // ================================================ struct CMainHeader // size must be 16384 (adjust the reserved data) { char szFileSystem[512]; // ext2fs, ntfs, reiserfs, ... char szPartDescription[MAX_DESCRIPTION]; // user description of the partition char szOriginalDevice[MAX_DEVICENAMELEN]; // original partition name char szFirstImageFilepath[4095]; //MAXPATHLEN]; // for splitted image files // system and hardware infos char szUnameSysname[MAX_UNAMEINFOLEN]; char szUnameNodename[MAX_UNAMEINFOLEN]; char szUnameRelease[MAX_UNAMEINFOLEN]; char szUnameVersion[MAX_UNAMEINFOLEN]; char szUnameMachine[MAX_UNAMEINFOLEN]; DWORD dwCompression; // COMPRESS_XXXXXX DWORD dwMainFlags; struct portable_tm dateCreate; // date of image creation QWORD qwPartSize; // size of the partition in bytes char szHostname[MAX_HOSTNAMESIZE]; char szVersion[64]; // version of the image file // MBR backup DWORD dwMbrCount; // how many MBR are saved in the image file DWORD dwMbrSize; // size of a MBR record (allow to change the size in the next versions) // future encryption support DWORD dwEncryptAlgo; // algo used to encrypt data char cHashTestKey[16]; // used to test the password without giving it // reserved for future use (save DiskLabel, Extended partitions, ...) DWORD dwReservedFuture000; DWORD dwReservedFuture001; DWORD dwReservedFuture002; DWORD dwReservedFuture003; DWORD dwReservedFuture004; DWORD dwReservedFuture005; DWORD dwReservedFuture006; DWORD dwReservedFuture007; DWORD dwReservedFuture008; DWORD dwReservedFuture009; BYTE cReserved[6524]; // Adjust to fit with total header size } __attribute__ ((packed)); #endif //COMMON_H partimage-0.6.8/src/shared/endianess.h0000644000000000000000000000736111252653176016372 0ustar rootrootextern WORD g_wEndian; #define ENDIAN_UNKNOWN 0 #define ENDIAN_LITTLE 1 #define ENDIAN_BIG 2 #define ENDIAN_PDP 3 // swapping macros #define swab16(x) \ ((unsigned short)( \ (((unsigned short)(x) & (unsigned short)0x00ffU) << 8) | \ (((unsigned short)(x) & (unsigned short)0xff00U) >> 8) )) #define swab32(x) \ ((unsigned int)( \ (((unsigned int)(x) & (unsigned int)0x000000ffUL) << 24) | \ (((unsigned int)(x) & (unsigned int)0x0000ff00UL) << 8) | \ (((unsigned int)(x) & (unsigned int)0x00ff0000UL) >> 8) | \ (((unsigned int)(x) & (unsigned int)0xff000000UL) >> 24) )) #define swab64(x) \ ((unsigned long long)( \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00000000000000ffULL) << 56) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x000000000000ff00ULL) << 40) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x0000000000ff0000ULL) << 24) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00000000ff000000ULL) << 8) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x000000ff00000000ULL) >> 8) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x0000ff0000000000ULL) >> 24) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00ff000000000000ULL) >> 40) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0xff00000000000000ULL) >> 56) )) inline void setEndianess(BOOL bShowPrintf) { DWORD dwNb = 0x11223344; BYTE *cBuffer; cBuffer = (BYTE*)&dwNb; g_wEndian = ENDIAN_UNKNOWN; if ((cBuffer[0] == 0x44) && (cBuffer[1] == 0x33) && (cBuffer[2] == 0x22) && (cBuffer[3] == 0x11)) // little endian { g_wEndian = ENDIAN_LITTLE; if (bShowPrintf) printf ("Processor = ENDIAN_LITTLE\n"); } if ((cBuffer[0] == 0x11) && (cBuffer[1] == 0x22) && (cBuffer[2] == 0x33) && (cBuffer[3] == 0x44)) // big endian { g_wEndian = ENDIAN_BIG; if (bShowPrintf) printf ("Processor = ENDIAN_BIG\n"); } if ((cBuffer[0] == 0x22) && (cBuffer[1] == 0x11) && (cBuffer[2] == 0x44) && (cBuffer[3] == 0x33)) // pdp endian { g_wEndian = ENDIAN_PDP; if (bShowPrintf) printf ("Processor = ENDIAN_PDP\n"); } } // ------------- CPU TO XXX -------------- #define CpuToLe16(a) ((g_wEndian == ENDIAN_LITTLE) ? a : swab16(a)) #define CpuToBe16(a) ((g_wEndian == ENDIAN_BIG) ? a : swab16(a)) #define CpuToLe32(a) ((g_wEndian == ENDIAN_LITTLE) ? a : swab32(a)) #define CpuToBe32(a) ((g_wEndian == ENDIAN_BIG) ? a : swab32(a)) #define CpuToLe64(a) ((g_wEndian == ENDIAN_LITTLE) ? a : swab64(a)) #define CpuToBe64(a) ((g_wEndian == ENDIAN_BIG) ? a : swab64(a)) #define CpuToLe(a) \ ((sizeof(a) == 8) ? CpuToLe64(a) : \ ((sizeof(a) == 4) ? CpuToLe32(a) : \ ((sizeof(a) == 2) ? CpuToLe16(a) : \ (a)))) #define CpuToBe(a) \ ((sizeof(a) == 8) ? CpuToBe64(a) : \ ((sizeof(a) == 4) ? CpuToBe32(a) : \ ((sizeof(a) == 2) ? CpuToBe16(a) : \ (a)))) // ------------- XXX TO CPU -------------- #define Le16ToCpu(a) CpuToLe16(a) #define Le32ToCpu(a) CpuToLe32(a) #define Le64ToCpu(a) CpuToLe64(a) #define Be16ToCpu(a) CpuToBe16(a) #define Be32ToCpu(a) CpuToBe32(a) #define Be64ToCpu(a) CpuToBe64(a) #define LeToCpu(a) \ ((sizeof(a) == 8) ? Le64ToCpu(a) : \ ((sizeof(a) == 4) ? Le32ToCpu(a) : \ ((sizeof(a) == 2) ? Le16ToCpu(a) : \ (a)))) #define BeToCpu(a) \ ((sizeof(a) == 8) ? Be64ToCpu(a) : \ ((sizeof(a) == 4) ? Be32ToCpu(a) : \ ((sizeof(a) == 2) ? Be16ToCpu(a) : \ (a)))) partimage-0.6.8/src/shared/net.cpp0000644000000000000000000000630211252653176015534 0ustar rootroot/*************************************************************************** net.cpp - basic class for network support ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "net.h" #include "pathnames.h" size_t CNet::nSend(CIdefRemote remote, const void * buf, size_t len) { static DWORD nb = 0L; size_t res; showDebug(3, "begin # %ld for %d bytes \n", nb, len); #ifdef HAVE_SSL showDebug(3, "send avec ssl\n"); if (remote.Ssl) res = SSL_write(remote.Ssl, (char *) buf, len); else #endif res = send(remote.Sock, buf, len, MSG_NOSIGNAL); if (res != len) showDebug(1, "end: %s\n", strerror(errno)); showDebug(3, "end ret=%d\n", res); nb++; return res; } size_t CNet::nRecv(CIdefRemote remote, void * buf, size_t len) { unsigned int res; static DWORD nb = 0L; showDebug(3, "begin # %ld for %d\n", nb, len); #ifdef HAVE_SSL if (remote.Ssl) res = SSL_read(remote.Ssl, (char *) buf, len); else #endif res = recv(remote.Sock, buf, len, MSG_WAITALL); if ((signed int)res == -1) showDebug(1, "end %s\n", strerror(errno)); else if (res < len) showDebug(1, "received %d bytes instead of %d\n", res, len); showDebug(3, "end nb=%d\n", res); nb++; return (size_t) res; } size_t CNet::nRecvMsg(CIdefRemote remote, CMessages * msg) { size_t res; void * buf; showDebug(3, "begin (*)\n"); buf = malloc (MESSAGE_LEN); res = nRecv(remote, buf, MESSAGE_LEN); if (res < sizeof(CMessages)) showDebug(1, "incomplete message received\n"); msg->fromString((char *) buf); free(buf); return res; } size_t CNet::nSendMsg(CIdefRemote remote, CMessages * msg) { size_t len; len = nSend(remote, msg->toString(), MESSAGE_LEN); if (len != sizeof(CMessages)) showDebug(1, "(*) incomplete message sent (%d instead of %d)\n", len, sizeof(CMessages)); showDebug(3, "end (*)\n"); return len; } char * CNet::Banner(bool bUseSSL, bool bMustLogin) { char * szBanner = (char *) malloc (BANNER_SIZE+1); memset(szBanner, ' ', BANNER_SIZE); *(szBanner+BANNER_SIZE) = '\0'; strcpy(szBanner, PACKAGE_VERSION); #ifdef HAVE_SSL if (bUseSSL) { strcat(szBanner, " SSL"); } #endif #ifdef MUST_LOGIN if (bMustLogin) { strcat(szBanner, " LOG"); } #endif showDebug(1, "generated banner: %s\n", szBanner); return szBanner; } partimage-0.6.8/src/shared/access.cpp0000644000000000000000000002070211252653176016207 0ustar rootroot/*************************************************************************** access.cpp - allow or not connexion from user ------------------- begin : Tue Feb 20 2001 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ // PAM support is writen based on code from Chris Evans for // Very Secure FTPd. #ifdef HAVE_CONFIG_H #include #endif #include #include // shadow.h and crypt.h may not exist on bsd #ifdef HAVE_PAM #include #else #ifdef HAVE_SHADOW_H #include #endif #ifdef HAVE_CRYPT_H #include #endif #endif #include #include #include #include #include #include "common.h" #include "pathnames.h" #include "privs.h" extern CPrivs * g_privs; #ifndef HAVE_PAM char * GetSalt(char * szLogin) { #ifdef OS_LINUX struct spwd * s_pass; #endif #ifdef OS_FBSD struct passwd * s_pass; #endif char * salt = (char *) malloc(12); long int r; BEGIN; if (!salt) return NULL; srandom((unsigned int) time(NULL)); *(salt+11) = '\0'; for (unsigned int i = 0; i < 11; i++) { r = random() % 52; *(salt+i) = (r>25 ? 'a'+r-26 : 'A'+r); } #ifdef MUST_LOGIN g_privs->Root(); #ifdef OS_LINUX s_pass = getspnam(szLogin); #endif #ifdef OS_FBSD s_pass = getpwnam(szLogin); #endif g_privs->User(); #ifdef OS_LINUX if (s_pass && strlen(s_pass->sp_pwdp) > 10) memcpy(salt, s_pass->sp_pwdp, 11); else if (s_pass) memcpy(salt, s_pass->sp_pwdp, strlen(s_pass->sp_pwdp)); #endif #ifdef OS_FBSD if (s_pass && strlen(s_pass->pw_passwd) > 10) memcpy(salt, s_pass->pw_passwd, 11); else if (s_pass) memcpy(salt, s_pass->pw_passwd, strlen(s_pass->pw_passwd)); #endif #else // MUST_LOGIN *salt = '\0'; #endif // MUST_LOGIN showDebug(9, "end of access::getsalt\n"); return salt; } #else // HAVE_PAM char * GetSalt(char * szLogin) { return NULL; } #endif #ifdef MUST_LOGIN #ifndef HAVE_PAM unsigned int CheckAccess(bool bMustLogin, char * szLogin, char * szPasswd) { if (!bMustLogin) RETURN_int(0) FILE * f; #ifdef OS_LINUX struct spwd * s_pass; #endif #ifdef OS_FBSD struct passwd * s_pass; #endif int found; char * str = (char *) malloc (1024); char * ptr, * ptr2; BEGIN; f = fopen(PARTIMAGED_USERS, "r"); if (!f) { showDebug(1, "can't open: %d %s\n", errno, strerror(errno)); RETURN_int(1); } found = 0; while (!feof(f)) { fgets(str, 1023, f); while (str[strlen(str)-1] == '\n') str[strlen(str)-1] = '\0'; ptr = strchr(str, '#'); if (ptr) *ptr = '\0'; // remove comments from partimagedusers ptr = str; while (*ptr && isblank(*ptr)) // remove starting spaces or tabs ++ptr; ptr2 = ptr+strlen(ptr); // *ptr2 = '\0' // warning: maybe *ptr=*ptr2='\0' while (ptr2 > ptr) { --ptr2; if ( isblank(*ptr2) ) *(ptr2) = '\0'; // remove trailing spaces or tabs } if (!strcmp(ptr, szLogin)) { found = 1; break; } } free(str); fclose(f); if (!found) RETURN_int(2); g_privs->Root(); #ifdef OS_LINUX s_pass = getspnam(szLogin); #endif #ifdef OS_FBSD s_pass = getpwnam(szLogin); #endif g_privs->User(); if (!s_pass) RETURN_int(3); #ifdef OS_LINUX if (!strcmp(s_pass->sp_pwdp, szPasswd)) RETURN_int(0) else RETURN_int(10); #endif #ifdef OS_FBSD if (strncmp(s_pass->pw_passwd, "$1$", 3)) { showDebug(1, "password for %s is not a MD5, I don't kwow what to do.\n", szLogin); RETURN_int(4); } if (!strcmp(s_pass->pw_passwd, szPasswd)) RETURN_int(0) else RETURN_int(10); #endif } #else // HAVE_PAM static char * g_szPassword; int pam_conv_partimaged(int nmsg, const struct pam_message ** p_messages, struct pam_response ** p_responses, void * p_adddata) { struct pam_response * response; response = (struct pam_response *) malloc (sizeof(struct pam_response)*nmsg); if (!response) { showDebug(2, "PAM: cannot allocate memory for response\n"); return PAM_CONV_ERR; } showDebug(1, "PAM: conv called\n"); for (int i=0; i < nmsg; ++i) switch (p_messages[i] -> msg_style) { case PAM_PROMPT_ECHO_OFF: // send user password to PAM module showDebug(1, "PAM ECHOOFF\n"); response[i].resp_retcode = PAM_SUCCESS; response[i].resp = strdup(g_szPassword); break; case PAM_PROMPT_ECHO_ON: // we don't want this showDebug(2, "PAM: PROMPT_ECHO_ON refused by us.\n"); free(response); return PAM_CONV_ERR; case PAM_TEXT_INFO: case PAM_ERROR_MSG: showDebug(2, "PAM message: %s\n", p_messages[i] -> msg); response[i].resp_retcode = PAM_SUCCESS; response[i].resp = NULL; break; default: showDebug(2, "PAM: wrong message code: %d.\n", p_messages[i] -> msg_style); free(response); return PAM_CONV_ERR; } *p_responses = response; // send answers for messages to PAM module return PAM_SUCCESS; } unsigned int CheckAccess(bool bMustLogin, char * szLogin, char * szPasswd) { int nRes; pam_handle_t * pamh; struct pam_conv partimaged_conv = { &pam_conv_partimaged, 0 }; if (!bMustLogin) RETURN_int(0) g_szPassword = strdup(szPasswd); nRes = pam_start("partimaged", szLogin, &partimaged_conv, &pamh); if (nRes != PAM_SUCCESS) { pam_end(pamh, nRes); showDebug(1, "pam_start failed: %s\n", pam_strerror(pamh, nRes)); return 1; } g_privs->Root(); nRes = pam_authenticate(pamh, 0); g_privs->User(); if (nRes != PAM_SUCCESS) { pam_end(pamh, nRes); showDebug(1, "pam_autenticate failed: %s\n", pam_strerror(pamh, nRes)); return 2; } g_privs->Root(); nRes = pam_acct_mgmt(pamh, 0); g_privs->User(); if (nRes != PAM_SUCCESS) { pam_end(pamh, nRes); showDebug(1, "pam_acct_mgmt failed: %s\n", pam_strerror(pamh, nRes)); return 3; } nRes = pam_end(pamh, nRes); return (nRes == PAM_SUCCESS ? 0 : 4); } #endif // HAVE_PAM #else // MUST_LOGIN unsigned int CheckAccess(bool bMustLogin, char * szLogin, char * szPasswd) { RETURN_int(0); } #endif #ifndef HAVE_PAM static void help(char * szFile) { fprintf(stderr,"error when verifying %s, check logfile for help\n", szFile); fprintf(stderr, "logfile is %s\n", PARTIMAGED_LOG); fprintf(stderr,"if you don't have logfile, use partimaged --debug=1\n"); } unsigned int CheckAccessFile(char * szFile) { int nRes; struct stat status; mode_t mode; showDebug(2, "verifing %s access rights\n", szFile); nRes = stat(szFile, &status); if (nRes) { help(szFile); showDebug(0, "error on stat for %s: %s\n", szFile, strerror(errno)); return 1; } mode = status.st_mode; /* if (!S_ISREG(mode)) { help(szFile); showDebug(0, "file %s is not a regular file\n", szFile); return 1; } */ /* if (status.st_uid != 0 || status.st_gid != 0) { help(szFile); showDebug(0, "file %s must belong to root.root\n", szFile); return 1; } */ /* if (mode != (S_IFREG | S_IRUSR | S_IWUSR)) { help(szFile); showDebug(0, "file %s must be chmoded 0600\n", szFile); showDebug(0, "enter \"chmod 0600 %s\"\n", szFile); showDebug(0, "it's %o, see stat manpage for help\n"); return 1; } */ return 0; } #else // HAVE_PAM unsigned int CheckAccessFile(char * szFile) { return 0; } #endif partimage-0.6.8/src/shared/common.cpp0000644000000000000000000002763611252653176016253 0ustar rootroot/*************************************************************************** common.cpp - procedures shared between client&server ------------------- begin : Sun Jul 16 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #define __STDC_FORMAT_MACROS #include #include #include #include #include #include #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #ifdef HAVE_SYS_STATFS_H #include #endif #include // gzip compression #include // bzip2 compression #include #include "common.h" #include "partimage.h" #include "pathnames.h" DWORD g_dwDebugLevel; int g_nDebugThreadMain; int g_nDebugThreadBufferR; int g_nDebugThreadBufferW; pthread_mutex_t g_mutexDebug; // lock the buffer while working inside it pthread_mutexattr_t g_mutexDebugAttr; char *g_szSupportedFileSystems = "ext2fs,ext3fs,reiserfs-3.5,reiserfs-3.6,reiserfs,fat,fat16,fat32,ntfs,hpfs,xfs,jfs,hfs,ufs"; // ======================================================= #define addText(format, args...) \ { \ nLenRest = nMaxLen - strlen(szDest); \ snprintf(szTemp, sizeof(szTemp), format, ##args); \ strncat(szDest, szTemp, nLenRest); \ } void formatCompilOptions(char *szDest, int nMaxLen) { int nLenRest; char szTemp[8192]; memset(szDest, 0, nMaxLen); addText(i18n("==== Partition Image: compilation options used ====\n")); addText(i18n("\n* Version is %s [%s].\n"), PACKAGE_VERSION, __VERSION__); addText(i18n("\n* Supported file systems:\n - ")); addText(g_szSupportedFileSystems); addText(i18n("\n")); #ifdef LIBRARY_EXT2FS addText(i18n(" - Ext2fs support: based on libext2fs library\n")); #else addText(i18n(" - Ext2fs support: internal code\n")); #endif addText(i18n("\n* Debug options:\n")); #ifdef PARTIMAGE_LOG addText(i18n(" - PARTIMAGE_LOG=%s\n"), PARTIMAGE_LOG); #endif #ifdef PARTIMAGED_LOG addText(i18n(" - PARTIMAGED_LOG=%s\n"), PARTIMAGED_LOG); #endif #ifdef DEVEL_SUPPORT addText(i18n(" - DEVEL ENABLED\n")); #else addText(i18n(" - DEVEL DISABLED\n")); #endif addText(i18n(" - DEFAULT_DEBUG_LEVEL=%d\n"), DEFAULT_DEBUG_LEVEL); #ifdef APPEND_PID addText(i18n(" - APPEND_PID=%s\n"), (APPEND_PID ? i18n("true") : i18n("false"))); #endif addText(i18n("\n* Other options:\n")); addText(i18n(" - CURRENT_IMAGE_FORMAT=%s\n"), CURRENT_IMAGE_FORMAT); #ifdef MUST_LOGIN addText(i18n(" - USERS MUST LOGIN\n")); addText(i18n(" - PARTIMAGED_USERS=%s\n"), PARTIMAGED_USERS); #else addText(i18n(" - USERS DON'T LOGIN\n")); addText(i18n(" - PARTIMAGED_USERS not used\n")); #endif #ifdef HAVE_SSL addText(i18n(" - SSL ENABLED\n")); #else addText(i18n(" - SSL DISABLED\n")); #endif #ifdef MUST_CHEUID addText(i18n(" - CHEUID ENABLED\n")); #else addText(i18n(" - CHEUID DISABLED\n")); #endif } // ======================================================= char *formatGzipError(int nError, char *szTemp, int nMaxLen) { switch (nError) { case Z_OK: snprintf(szTemp, nMaxLen, "GZIP nError = %d: Z_OK\n", nError); break; case Z_STREAM_END: snprintf(szTemp, nMaxLen, "GZIP = %d: Z_STREAM_END\n", nError); break; case Z_ERRNO: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_ERRNO and errno=%d=[%s]\n", nError, errno, strerror(errno)); break; case Z_NEED_DICT: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_NEED_DICT\n", nError); break; case Z_STREAM_ERROR: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_STREAM_ERROR\n", nError); break; case Z_DATA_ERROR: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_DATA_ERROR\n", nError); break; case Z_MEM_ERROR: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_MEM_ERROR\n", nError); break; case Z_BUF_ERROR: snprintf(szTemp, nMaxLen, "GZIP: nError = %d: Z_BUF_ERROR\n", nError); break; default: snprintf(szTemp, nMaxLen, "GZIP: nError = %d\n", nError); break; }; return szTemp; } // ======================================================= void showDebugMsg(FILE *fDebug, DWORD dwDebugLevel, const char *szFile, const char *szFunction, int nLine, const char *fmt, ...) { if (dwDebugLevel == 0) return; pthread_mutex_lock(&g_mutexDebug); va_list args; DWORD i; if (dwDebugLevel <= g_dwDebugLevel) { // add tabs to distinguish log levels for (i = 1; i < dwDebugLevel; i++) fprintf(fDebug, "\t"); va_start(args, fmt); if (getpid() == g_nDebugThreadMain) fprintf(fDebug, "[Main] %s->%s#%d: ", szFile, szFunction, nLine); else if (getpid() == g_nDebugThreadBufferR) fprintf(fDebug, "[BufferR] %s->%s#%d: ", szFile, szFunction, nLine); else if (getpid() == g_nDebugThreadBufferW) fprintf(fDebug, "[BufferW] %s->%s#%d: ", szFile, szFunction, nLine); else fprintf(fDebug, "[TH=%d] %s->%s#%d: ", getpid(), szFile, szFunction, nLine); vfprintf(fDebug, fmt, args); // do not slow down the progran if standard debug level // must be enabled: if no flush, the log won't be up-to-date if there // is a segfault //if (g_dwDebugLevel != 1) fflush(fDebug); va_end(args); } pthread_mutex_unlock(&g_mutexDebug); } // ======================================================= char *formatTime2(DWORD dwSec, char *szBuf, int nMaxLen) { int nHour, nMin, nSec; nSec = dwSec % 60; dwSec -= nSec; dwSec /= 60; // now, dwSec = dwMinutes nMin = dwSec % 60; dwSec -= nMin; dwSec /= 60; // now, dwSec = dwHours nHour = dwSec; //nHour = (dwSec - (dwSec % 3600)) / 60; *szBuf = 0; if (nHour) snprintf(szBuf, nMaxLen, "%2dh:", nHour); if (nMin || nHour) snprintf(szBuf+strlen(szBuf), nMaxLen-strlen(szBuf), "%2dm:", nMin); snprintf(szBuf+strlen(szBuf), nMaxLen-strlen(szBuf), "%2dsec", nSec); return szBuf; } // ======================================================= char *formatTimeNoGui(DWORD dwSec, char *szBuf, int nMaxLen) { int nHour, nMin, nSec; nSec = dwSec % 60; dwSec -= nSec; dwSec /= 60; // now, dwSec = dwMinutes nMin = dwSec % 60; dwSec -= nMin; dwSec /= 60; // now, dwSec = dwHours nHour = dwSec; //nHour = (dwSec - (dwSec % 3600)) / 60; *szBuf = 0; snprintf(szBuf, nMaxLen, "%02d:%02d:%02d", nHour, nMin, nSec); return szBuf; } // ======================================================= char *formatSize2(QWORD qwSize, char *szText, int nMaxLen) { //showDebug(1,"SALUT\n"); double dSize; QWORD llKiloB = ((QWORD) 1024); QWORD llMegaB = ((QWORD) 1024)*((QWORD) 1024); QWORD llGigaB = ((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024); QWORD llTeraB = ((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024); if (qwSize < llKiloB) // In Bytes { snprintf(szText, nMaxLen, i18n("%"PRId64" bytes"), qwSize); } else if (qwSize < llMegaB) // In KiloBytes { dSize = ((double) qwSize) / ((double) 1024.0); snprintf(szText, nMaxLen, i18n("%.2f KiB"), (float) dSize); } else if (qwSize < llGigaB) // In MegaBytes { dSize = ((double) qwSize) / ((double) (1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%.2f MiB"), (float) dSize); } else if (qwSize < llTeraB)// In GigaBytes { dSize = ((double) qwSize) / ((double) (1024.0 * 1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%.2f GiB"), (float) dSize); } else // In TeraBytes { dSize = ((double) qwSize)/((double) (1024.0 * 1024.0 * 1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%.2f TiB"), (float) dSize); } return szText; } // ======================================================= char *formatSizeNoGui(QWORD qwSize, char *szText, int nMaxLen) { //showDebug(1,"SALUT\n"); double dSize; QWORD llKiloB = ((QWORD) 1024); QWORD llMegaB = ((QWORD) 1024)*((QWORD) 1024); QWORD llGigaB = ((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024); QWORD llTeraB = ((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024)*((QWORD) 1024); if (qwSize < llKiloB) // In Bytes { snprintf(szText, nMaxLen, i18n("%"PRId64"b"), qwSize); } else if (qwSize < llMegaB) // In KiloBytes { dSize = ((double) qwSize) / ((double) 1024.0); snprintf(szText, nMaxLen, i18n("%4.0fK"), (float) dSize); } else if (qwSize < llGigaB) // In MegaBytes { dSize = ((double) qwSize) / ((double) (1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%4.0fM"), (float) dSize); } else if (qwSize < llTeraB)// In GigaBytes { dSize = ((double) qwSize) / ((double) (1024.0 * 1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%1.2fG"), (float) dSize); } else // In TeraBytes { dSize = ((double) qwSize)/((double) (1024.0 * 1024.0 * 1024.0 * 1024.0)); snprintf(szText, nMaxLen, i18n("%1.2fT"), (float) dSize); } return szText; } // ======================================================= // avoid RACE CONDITIONS security problems FILE *openFileDescriptorSecure(char *szFilename, char *szMode, int nFlags, mode_t mode) { int nFd; FILE *fStream; #ifdef HAVE_FSTAT64 struct stat64 fStat; #else struct stat fStat; #endif // init errno = 0; #ifdef OS_LINUX nFlags |= O_LARGEFILE; #endif // open file descriptor nFd = open(szFilename, nFlags, mode); if (nFd == -1) return NULL; #ifdef HAVE_FSTAT64 if (fstat64(nFd, &fStat) == -1) return NULL; #else if (fstat(nFd, &fStat) == -1) return NULL; #endif if (!S_ISREG(fStat.st_mode)) // not a regular file return NULL; fStream = fdopen(nFd, szMode); if (fStream == NULL) return NULL; return fStream; } // ======================================================= QWORD generateIdentificator() { QWORD qwResult; int i; unsigned char *ptr; ptr = (unsigned char *) &qwResult; qwResult = time(NULL); for (i=0; i < (int)sizeof(qwResult); i++) ptr[i] ^= getpid(); showDebug(3, "generateIdentificator() = %llu = %Xh\n", qwResult, qwResult); return qwResult; } // ======================================================= int extractFilenameFromFullPath(char *szFullpath, char *szFilename) { int nLen; // if no '/' present if (strchr(szFullpath, '/') == 0) strcpy(szFilename, szFullpath); else // if '/' is present strcpy(szFilename, strrchr(szFullpath, '/')+1); // remove the volume number at the end of the filename nLen = strlen(szFilename); if (isdigit(szFilename[nLen-3]) && isdigit(szFilename[nLen-2]) && isdigit(szFilename[nLen-1]) && szFilename[nLen-4] == '.') // if there is a volume number szFilename[nLen-4] = 0; // truncate volume number return 0; } // ======================================================= int extractFilepathFromFullPath(char *szFullpath, char *szFilepath) { int i; int nLen; // if no '/' present if (strchr(szFullpath, '/') == 0) { strcpy(szFilepath, "."); return 0; } // if '/' is present nLen = strrchr(szFullpath, '/') - szFullpath; for (i=0; i < nLen; i++) szFilepath[i] = szFullpath[i]; szFilepath[i] = 0; return 0; } partimage-0.6.8/src/shared/exceptions.cpp0000644000000000000000000001635011252653176017133 0ustar rootroot/*************************************************************************** exceptions.cpp - class to handle exceptions ------------------- begin : THU JAN 4 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "partimage.h" #include "exceptions.h" #include "common.h" /** Checks if number of parameters matches required number for this exception * @param excep is the exception number (refer to errors.h for the list) * @param nb is the number of parameters got for @param excep exception * required number of parameters is hardcoded in CheckArguments. * Warning: CheckArguments doesn't check argument type */ void CExceptions::CheckArguments(int excep, int nb) { switch (excep) { // list all one argument exceptions here case ERR_ERRNO: case ERR_READ_BITMAP: case ERR_ZEROING: case ERR_OPENING_DEVICE: case ERR_VERSION_OLDER: case ERR_VERSION_NEWER: case ERR_NOTAPARTIMAGEFILE: case ERR_NOTAREGULARFILE: case ERR_LOCKED: case ERR_CREATESPACEFILE: case ERR_CREATESPACEFILENOSPC: case ERR_CREATESPACEFILEDENIED: if (nb != 1) showDebug(1, "WARNING: %d with wrong argument number (%d)\n",excep,nb); break; // list all two arguments exceptions here case ERR_READING: case ERR_WRITING: case ERR_CHECK_CRC: case ERR_CHECK_NUM: case ERR_VOLUMENUMBER: case ERR_PART_TOOSMALL: case ERR_BLOCKSIZE: if (nb != 2) showDebug(1, "WARNING: %d with wrong argument number (%d)\n",excep,nb); break; } } /** Basic constructor for class CExceptions. * @param msg is a short text writen in debugfile for debugging * @param error is the exception number (see errors.h for the list) * Use this constructor only if the exception doesn't require any parameter */ CExceptions::CExceptions(const char *szMsg, signed int nError) { m_nError = nError; m_caught = false; CheckArguments(nError, 0); if (nError > 0) showDebug(1, "%s -> throws: (%d) %s\n", szMsg, nError, strerror(nError)); else showDebug(1, "%s -> throws: %d\n", szMsg, nError); m_szArg1 = NULL; m_dwArg1 = m_dwArg2 = 0L; m_qwArg1 = m_qwArg2 = 0L; } /** Constructor with one DWORD parameter for class CExceptions. * @param szMsg is a short text writen in debugfile for debugging * @param nError is the exception number (see errors.h for the list) * @param dwArg1 is a DWORD parameter for the exception * Use this constructor only if the exception requires only a DWORD parameter */ CExceptions::CExceptions(const char *szMsg, signed int nError, DWORD dwArg1) { m_nError = nError; m_caught = false; m_dwArg1 = dwArg1; CheckArguments(nError, 1); showDebug(1, "%s -> throws (DWORD): %d (%ld)\n", szMsg, nError, dwArg1); m_szArg1 = NULL; m_dwArg2 = 0L; } /** Constructor with two DWORD parameter for class CExceptions. * @param msg is a short text writen in debugfile for debugging * @param error is the exception number (see errors.h for the list) * @param dwArg1 is first DWORD parameter for the exception * @param dwArg2 is last DWORD parameter for the exception * Use this constructor only if the exception requires only 2 DWORD parameters */ CExceptions::CExceptions(const char *szMsg, signed int nError, DWORD dwArg1, DWORD dwArg2) { m_nError = nError; m_caught = false; m_dwArg1 = dwArg1; m_dwArg2 = dwArg2; CheckArguments(nError, 2); showDebug(1, "%s -> throws (DWORD,DWORD): %d (%lu)(%lu)\n", szMsg, nError, dwArg1, dwArg2); m_szArg1 = NULL; } /** Constructor with two QWORD parameter for class CExceptions. * @param msg is a short text writen in debugfile for debugging * @param nError is the exception number (see errors.h for the list) * @param qwArg1 is first QWORD parameter for the exception * @param qwArg2 is last QWORD parameter for the exception * Use this constructor only if the exception requires only 2 DWORD parameters */ CExceptions::CExceptions(const char *szMsg, signed int nError, QWORD qwArg1, QWORD qwArg2) { m_nError = nError; m_caught = false; m_qwArg1 = qwArg1; m_qwArg2 = qwArg2; CheckArguments(nError, 2); showDebug(1, "%s -> throws (QWORD,QWORD): %d (%llu)(%llu)\n", szMsg, nError, qwArg1, qwArg2); m_szArg1 = NULL; } /** Constructor with a string parameter for class CExceptions. * @param msg is a short text writen in debugfile for debugging * @param nError is the exception number (see errors.h for the list) * @param szArg1 is the string parameter for the exception * Use this constructor only if the exception requires only a string parameter */ CExceptions::CExceptions(const char *szMsg, signed int nError, char * szArg1) { m_nError = nError; m_caught = false; m_szArg1 = strdup(szArg1); CheckArguments(nError, 1); showDebug(1, "%s -> throws (char *): %d (%s)\n", szMsg, nError, szArg1); m_dwArg1 = m_dwArg2 = 0L; } /** Constructor with a string and a DWORD parameter for class CExceptions. * @param szMsg is a short text writen in debugfile for debugging * @param nError is the exception number (see errors.h for the list) * @param szArg1 is the string parameter for the exception * @param dwArg1 is the DWORD parameter for the exception * Use this constructor only if the exception requires only a string and a * DWORD parameter */ CExceptions::CExceptions(const char *szMsg, signed int nError, char * szArg1, DWORD dwArg1 ) { m_nError = nError; m_caught = false; m_szArg1 = strdup(szArg1); m_dwArg1 = dwArg1; CheckArguments(nError, 2); showDebug(1, "%s -> throws (char *, DWORD): %d (%s)(%ld)\n", szMsg, nError, szArg1, dwArg1); m_dwArg2 = 0L; } /** Constructor for exception get from server * @param szMsg is a short text writen in debugfile for debugging * @param nError is the exception number (see errors.h for the list) * @param szArg1 is the string parameter for the exception * @param dwArg1 is the DWORD parameter for the exception * @param dwArg2 is the DWORD parameter for the exception */ CExceptions::CExceptions(const char *szMsg, signed int nError, char * szArg1, DWORD dwArg1, DWORD dwArg2 ) { m_nError = nError; m_caught = false; m_szArg1 = strdup(szArg1); m_dwArg1 = dwArg1; m_dwArg2 = dwArg2; showDebug(1, "{from net} %s -> throws: %d (%s)(%ld)\n", szMsg, nError, szArg1, dwArg1); } CExceptions::~CExceptions() { if (m_szArg1) free(m_szArg1); } const signed int CExceptions::GetExcept() { return m_nError; } partimage-0.6.8/src/shared/privs.h0000644000000000000000000000242511256743072015557 0ustar rootroot/*************************************************************************** privs.h - description ------------------- begin : Tue Jun 28 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _PRIVS_H_ #define _PRIVS_H_ #include class CPrivs { public: CPrivs(char * _user); void Root(); void User(); void ForceUser(); bool AsSwitched() { return switched; } private: uid_t user; gid_t group; bool switched; }; #endif // _PRIVS_H_ partimage-0.6.8/src/shared/errors.h0000644000000000000000000001206211252653176015727 0ustar rootroot/*************************************************************************** errors.h - list of exceptions ------------------- begin : Tue Mar 27 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _ERRORS_H_ #define _ERRORS_H_ // NB: exceptions have been renamed by category. // --------------------------------------------- // ERR_xxx which requires one or more arguments: // ERR_ERRNO: int errno // ERR_READ_BITMAP: int block // ERR_READING: int block, int errno // ERR_WRITING: int block, int errno // ERR_ZEROING: int errno // ERR_OPENING_DEVICE: int errno // ERR_CHECK_CRC: QWORD oldcrc, QWORD newcrc // ERR_CHECK_NUM: DWORD expected, DWORD got // ERR_VOLUMENUMBER: DWORD expected, DWORD got // ERR_LOCKED: char * partition/filename // ERR_VERSION_OLDER: char * wrong_release // ERR_VERSION_NEWER: char * wrong_release // ERR_NOTAPARTIMAGEFILE: char * filename // ERR_NOTAREGULARFILE: char * filename // don't use -1 // now useless exceptions // #define WARN_SPLITNEEDED // #define ERR_OTHER // #define ERR_PANIC // #define ERR_ZVERS // #define ERR_OPENING_PART //// general errors // not enough memory to continue #define ERR_NOMEM -10 // user canceled operation #define ERR_CANCELED -11 // wrong password #define ERR_PASSWD -12 #define ERR_ERRNO -13 // file was locked somewhere else #define ERR_LOCKED -14 // encrypt is not yet supported #define ERR_ENCRYPT -15 // no mbr were saved into imagefile, we can't restore one #define ERR_NOMBR -16 // current version is older than release which backuped imagefile #define ERR_VERSION_OLDER -17 // current version is newer than release which backuped imagefile #define ERR_VERSION_NEWER -18 #define ERR_PART_TOOSMALL -19 #define ERR_DESTROYSPACEFILE -20 #define ERR_CREATESPACEFILE -21 //// buffer errors #define ERR_BUFFERFULL -25 //// network errors #define ERR_HOST -29 #define ERR_SSL_CONNECT -30 #define ERR_SSL_CTX -31 #define ERR_SSL_LOADCERT -32 #define ERR_SSL_LOADKEY -33 #define ERR_SSL_PRIVKEY -34 #define ERR_TOOMANY -35 // connexion refused by partimaged (ssl or login configuration mismatch // from configuration of partimaged) #define ERR_REFUSED -36 // client and server versions mismatch #define ERR_VERSIONSMISMATCH -37 //// errors for image file // filename doesn't exist(restauring) or already exist(saving) #define ERR_EXIST -40 #define ERR_ACCESS -41 #define ERR_COMP -42 #define ERR_EOF -43 // the file can't be found #define ERR_NOTFOUND -44 #define ERR_OPENED -45 #define ERR_PATH -46 #define ERR_FULL -47 // cannot be repared #define ERR_INCOMPLETEFINISH -48 // file is a symlink or something like this. we can't work on it. #define ERR_NOTAREGULARFILE -49 //// corruption of imagefile // file isn't an imagefile or had been damaged #define ERR_NOTAPARTIMAGEFILE -60 // volume header can't be read. file isn't an imagefile or is damaged #define ERR_VOLUMEHEADER -61 // file isn't an imagefile because volumemagic isn't found or file damaged //#define ERR_PARTITIONVOLUME -62 // the volume number is not the expected one #define ERR_VOLUMENUMBER -63 // an unexpected magic had been read #define ERR_WRONGMAGIC -64 #define ERR_WRONGMAGICINVALIMGFILE -6 #define ERR_INCOMPLETE -66 // an (should be) uniq identificator is append to each imagefile // and volumes compared to this identificator. volumeid is raised when a // volumeid mismatches. #define ERR_VOLUMEID -67 #define ERR_CHECK_CRC -68 // some blocknumbers are added into imagefile. if they mismatch when restauring // check_num is raised // warning: avoid confusion with volumenumber #define ERR_CHECK_NUM -69 //// automount errors // cannot mount device with automount #define ERR_AUTOMOUNT -80 // cannot unmount device with automount #define ERR_AUTOUMOUNT -81 //// errors on partition (hardware failure ?) // can't extract mbr from disk #define ERR_SAVE_MBR -90 #define ERR_WRONG_FS -91 #define ERR_READ_SUPERBLOCK -92 #define ERR_ZEROING -93 #define ERR_OPENING_DEVICE -94 #define ERR_READ_BITMAP -95 #define ERR_READING -96 #define ERR_WRITING -97 // fs check failed #define ERR_FSCHK -98 #define ERR_FAT_MISMATCH -99 #define ERR_CREATESPACEFILENOSPC -100 #define ERR_CREATESPACEFILEDENIED -101 #define ERR_BLOCKSIZE -102 #define ERR_FILETOOLARGE -103 // not really an error -> only a message #define ERR_COMEBACK -1000 #define ERR_SPLITSIZE -1001 #endif partimage-0.6.8/src/shared/image_disk.h0000644000000000000000000000742311252653176016514 0ustar rootroot/*************************************************************************** image_disk.h - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef IMAGE_DISK_H #define IMAGE_DISK_H #include "image_base.h" #include "partimage.h" #include "errors.h" #include "exceptions.h" #include // gzip compression #include // bzip2 compression #include // ================================================ class CImageDisk : public CImageBase { public: CImageDisk(COptions * options); virtual ~CImageDisk(); private: QWORD m_qwTotal; QWORD m_qwVolSize; bool m_bIsOpened; char m_szPath[MAXPATHLEN+1]; char m_szOriginalFilename[MAXPATHLEN+1]; char m_szImageFilename[MAXPATHLEN+1]; char m_szSpaceFilename[MAXPATHLEN+1]; COptions m_options; int m_nImageFd; FILE *m_fImageFile; public: virtual bool get_bIsOpened() { return m_bIsOpened; } virtual char * get_szImageFilename() { return m_szImageFilename; } virtual char * get_szOriginalFilename() { return m_szOriginalFilename; } virtual char * get_szPath() { return m_szPath; } virtual void get_qwCurrentVolumeSize(QWORD *qwSize); virtual void set_bIsOpened(bool n) { m_bIsOpened = n; } virtual void set_szPath(char * str) { strcpy(m_szPath, str); } virtual void set_szImageFilename(char * str) { strcpy(m_szImageFilename,str); } virtual void set_szOriginalFilename(char * str) { strcpy(m_szOriginalFilename,str); } virtual void set_szImageFilename(char * str, int n) { printf("virtual szIF\n"); strncpy(m_szImageFilename,str, n); printf("fin szIF\n");} virtual void set_szOriginalFilename(char * str, int n) { strncpy(m_szOriginalFilename,str, n); } virtual void set_options(COptions * options) { memcpy(&m_options, options, sizeof(COptions)); showDebug(3, "->compression=%ld\n", options->dwCompression); } public: // read/write virtual void write(void *buf, DWORD dwLength, int *nRes); //virtual void write(void *buf, DWORD dwLength); // return 0 if error, or written bytes virtual DWORD read(void *buf, DWORD dwLength); // open/close virtual void openWriting(); virtual void openReading(); virtual void close(); virtual int lockImage(int flag, int nFd, char *szFilename); virtual int mountImageLocation(char *, char *, char *); virtual int umountImageLocation(char *); // misc bool doesFileExists(char *szPath); virtual void getFreeSpace(QWORD * qw_AvailDiskSpace); virtual void getDiskFreeSpaceForFile(QWORD *qwFreeSpace, char *szFilepath); virtual void getFileSize(QWORD *qwFileSpace, char *szFilepath); QWORD getPartitionSize(const char *); virtual void Connect(COptions *, char *, char *, char *, int) {}; //virtual void get_qwCurVolSize(QWORD *qwFileSize); virtual int getCompressionLevelForImage(char *szFilename); private: int destroySpaceFile(); int createSpaceFile(); void unlockImageFile(); }; #endif // IMAGE_DISK_H partimage-0.6.8/src/shared/pathnames.h0000644000000000000000000000161111256751413016366 0ustar rootroot#ifndef _PATHNAMES_H_ #define _PATHNAMES_H_ #define PARTIMAGE_LOG "/var/log/partimage-debug.log" #define PARTIMAGED_LOG "/var/log/partimaged.log" // partimaged will change euid to this user #define PARTIMAGED_USER "partimag" #ifdef DEVEL_SUPPORT // define if you want to append pid number to PARTIMAGE_LOG // ex: /var/log/partimage-debug.log_45121 instead of // /var/log/partimage-debug.log // this can be used when debugging with several running partimage #define APPEND_PID 1 #define DEFAULT_DEBUG_LEVEL 5 #else // DEVEL_SUPPORT #define DEFAULT_DEBUG_LEVEL 1 #endif // DEVEL_SUPPORT #define PARTIMAGED_USERS "/usr/local/etc/partimaged/partimagedusers" // used by SSL. #define CERTF "/usr/local/etc/partimaged/partimaged.cert" #define KEYF "/usr/local/etc/partimaged/partimaged.key" // you can use CInterfaceNewt #define PARTIMAGE_INTERFACE CInterfaceNewt #endif // _PATHNAMES_H_ partimage-0.6.8/src/Makefile.am0000644000000000000000000000017611252653177015034 0ustar rootroot## Process this file with automake to produce Makefile.in SUBDIRS = shared client server MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/src/client/0000777000000000000000000000000011256751522014253 5ustar rootrootpartimage-0.6.8/src/client/imginfo.cpp0000644000000000000000000001750611252653177016417 0ustar rootroot/*************************************************************************** imginfo.cpp - description ------------------- begin : lun mai 22 18:04:54 CEST 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "common.h" #include "imginfo.h" #include "misc.h" #include "mbr_backup.h" #include "imagefile.h" #include "interface_newt.h" #define __STDC_FORMAT_MACROS #include static char *asctime_portable (const struct portable_tm *__tp) { struct tm tms; tms.tm_sec=__tp->tm_sec; tms.tm_min=__tp->tm_min; tms.tm_hour=__tp->tm_hour; tms.tm_mday=__tp->tm_mday; tms.tm_mon=__tp->tm_mon; tms.tm_year=__tp->tm_year; tms.tm_wday=__tp->tm_wday; tms.tm_yday=__tp->tm_yday; tms.tm_isdst=__tp->tm_isdst; tms.tm_gmtoff=__tp->tm_gmtoff; tms.tm_zone="UTC"; return asctime (&tms); } // ======================================================= void imageInfoShowRegular(char *szText, int nMaxTextLen, CMainHeader *head, char *szImagefile, DWORD dwCompression) { char cTemp[512]; char szFlags[2048]; char szDescription[MAX_DESCRIPTION]; char szEncryption[512]; // format flags if (head->dwMainFlags) { /*if (head->dwMainFlags | FLAG_SPLITTED) printf("FLAG_SPLITTED ");*/ } else SNPRINTF(szFlags, i18n("No flag set")); // format description if (strlen(head->szPartDescription) > 0) SNPRINTF(szDescription, "\n------------------\n%s\n------------------", head->szPartDescription); else SNPRINTF(szDescription, "%s", i18n("No description")); // encryption algorithm switch ( head->dwEncryptAlgo) { case ENCRYPT_NONE: SNPRINTF(szEncryption, i18n("none")); break; default: SNPRINTF(szEncryption, i18n("unknown")); break; } snprintf(szText, nMaxTextLen, i18n("Filesystem:............%s\n" "Description:...........%s\n" "Original device:.......%s\n" "Original filepath:.... %s\n" "Flags:.................%d: %s\n" "Creation date:.........%s" "Partition size:........%s\n" "Hostname:..............%s\n" "Compatible Version:....%s\n" "Encryption algorithm:..%d -> %s\n" "MBR saved count:.......%u\n\n" "System of the backup:\n" "- machine:.............%s\n" "- operating system:....%s\n" "- release:.............%s\n" "\n\n"), head->szFileSystem, szDescription, head->szOriginalDevice, head->szFirstImageFilepath, head->dwMainFlags, szFlags, asctime_portable(&head->dateCreate), formatSize(head->qwPartSize, cTemp), head->szHostname, head->szVersion, head->dwEncryptAlgo, szEncryption, head->dwMbrCount, head->szUnameMachine, head->szUnameSysname, head->szUnameRelease); } // ======================================================= void imageInfoShowMBR(char *szText, int nMaxTextLen, int i, CMbr *mbr) { snprintf(szText, nMaxTextLen, i18n("-------------------- MBR %.3d -------------------\n" "Device:................%s\n" "Device blocks count:...%"PRIu64"\n" "Device model:..........%s\n\n"), i, mbr->szDevice, mbr->qwBlocksCount, mbr->szDescModel); } // ======================================================= void imageInfoShowVolume(char *szText, int nMaxTextLen, CVolumeHeader *head, char *szImagefile, DWORD dwCompression, QWORD qwImageSize) { //QWORD qwImageSize = 0LL; char cTemp[512]; char szCompression[512]; // volume size //qwImageSize = getFileSize(szImagefile); // compression level switch (dwCompression) { case COMPRESS_NONE: SNPRINTF(szCompression, i18n("none")); break; case COMPRESS_GZIP: SNPRINTF(szCompression, "gzip"); break; case COMPRESS_BZIP2: SNPRINTF(szCompression, "bzip2"); break; case COMPRESS_LZO: SNPRINTF(szCompression, "lzo"); break; default: SNPRINTF(szCompression, i18n("unknown")); break; } snprintf(szText, nMaxTextLen, i18n("Volume number:.........%u\n" "Volume size:...........%s\n" "Compression level: ....%d -> %s\n" "Identificator:.........%"PRIu64"=%"PRIX64"\n\n"), head->dwVolumeNumber, formatSize(qwImageSize, cTemp), dwCompression, szCompression, head->qwIdentificator, head->qwIdentificator); } // ======================================================= int showImgInfos(char *szImageFile, COptions *options) { char aux[MAXPATHLEN]; CMainHeader headMain; CVolumeHeader headVolume; QWORD qwFileSize; char szText[16384]; DWORD i; CMbr mbr; DWORD dwCompression; CImage image(options); memset(szText, 0, sizeof(szText)); if ((!*szImageFile) || (!image.getImageDisk()->doesFileExists(szImageFile))) { g_interface->msgBoxError(i18n("The image file \"%s\" cannot be found"), szImageFile); RETURN_int(-1); } // ----------- get the image compression level dwCompression = (DWORD) image.getCompressionLevelForImage(szImageFile); //debugWin("dwCompression=%lu",dwCompression); // image file path image.set_dwVolumeNumber(0L); extractFilenameFromFullPath(szImageFile, aux); // filename without path image.set_szOriginalFilename(aux); extractFilepathFromFullPath(szImageFile, aux); // filepath without filename image.set_szPath(aux); image.set_szImageFilename(szImageFile); // ----------- open the image file try { image.openReading(&headVolume); } catch ( CExceptions *excep ) { image.closeReading(true); g_interface->msgBoxError(i18n("Cannot read image file")); RETURN_int(-1); } // ---- show informations image.getImageDisk()->getFileSize(&qwFileSize, szImageFile); imageInfoShowVolume(szText+strlen(szText), (sizeof(szText)-strlen(szText)), &headVolume, szImageFile, dwCompression, qwFileSize); if (headVolume.dwVolumeNumber == 0) { // the read buffer thread can now start working //increaseSemaphore(&g_semDataToProcess); // ----------- read header try {image.read((char*)&headMain, sizeof(CMainHeader), true);} catch (CExceptions * excep) { image.closeReading(true); RETURN_int(-1); //throw excep; } // read CRC of CMainHeader image.readAndCheckCRC((char*)&headMain, sizeof(CMainHeader)); imageInfoShowRegular(szText+strlen(szText), (sizeof(szText)-strlen(szText)), &headMain, szImageFile, dwCompression); // 1. check the magic number try {image.readAndCheckMagic(MAGIC_BEGIN_MBRBACKUP); } catch (CExceptions * excep) { image.closeReading(true); RETURN_int(-1); //throw excep; } // 2. read data of the saved MBR for (i=0; i < headMain.dwMbrCount; i++) { try{image.read((char*)&mbr, sizeof(CMbr), true);} catch (CExceptions * excep) { image.closeReading(true); RETURN_int(-1); //throw excep; } imageInfoShowMBR(szText+strlen(szText), (sizeof(szText)-strlen(szText)), i, &mbr); } } // close image file image.closeReading(true); g_interface->msgBoxOk(i18n("Image informations"), szText); return 0; } partimage-0.6.8/src/client/mbr_backup.cpp0000644000000000000000000001650211252653177017067 0ustar rootroot/*************************************************************************** mbr_backup.cpp - description ------------------- begin : Thu Jun 29 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "partimage.h" #include "common.h" #include "imagefile.h" #include "misc.h" #include "mbr_backup.h" #include "interface_newt.h" #include #include // ============================================================================= // This function must return TRUE if we can read data from device. // It's not a good way to try to read data, because the kernel could print // an error message in the current terminal. bool isDriveReady(char *szDevice) { BEGIN; char cTempBuf[1024]; FILE *fTest; int nRes; //newtWinMessage("testing","ok", szDevice); fTest = fopen(szDevice, "rb"); if (!fTest) { //newtWinMessage("CANOOT READ DEVICE 1","ok", szDevice); // HERE RETURN_bool(false); } nRes = fread(cTempBuf, my_min(sizeof(cTempBuf), 512), 1, fTest); fclose(fTest); if (nRes == 1) // if possible to read data from device RETURN_bool(true) else { //newtWinMessage("CANOOT READ DEVICE 2","ok", szDevice); // HERE RETURN_bool(false); } } // ============================================================================= int mbrGetInfoDir(char *szDevice, char *szDir) { BEGIN; char szShort[256]; int i; // ---- get the short name (ex: "/dev/hda -> hda") memset(szDir, 0, MAXPATHLEN); memset(szShort, 0, 256); for (i=strlen(szDevice); i && (szDevice[i] != '/'); i--); strncpy(szShort, szDevice+i+1, 256); // ---- get the directory if ((szShort[0] == 'h') && (szShort[1] == 'd')) // if an IDE device { snprintf(szDir, MAXPATHLEN, "/proc/ide/%s", szShort); RETURN_int(0); } /*else if ((szShort[0] == 's') && (szShort[1] == 'd')) // if an SCSI device { snprintf(szDir, ...); return 0; }*/ else RETURN_int(-1) } // ============================================================================= // returns the number of physical hard disks (-1 on error) // if nPartNb == 0 -> returns the number of hard disks // if nPartNb != 0 -> get the name of the hard disk nb nPartNb int mbrParseProcPart(char *szHdList, int nMaxLen, int nWhatMajorMustBe, int nMinorOfPartToSave) { BEGIN; FILE *fPart; int nMajor, nMinor, nBlocks; char szDevice[128]; char cBuffer[32768]; char szTemp[1024]; char *cPtr; int nLines; int nSize; int i; int nPartNum; int nCount; memset(szHdList, 0, nMaxLen-1); errno = 0; fPart = fopen("/proc/partitions", "rb"); if (!fPart) { showDebug(1, "cannot read /proc/partition -> not MBR will be saved\n"); RETURN_int(0); // no MBR will be saved, and no error } nSize = 0; nLines = 0; memset(cBuffer, 0, 32767); while (!feof(fPart)) { cBuffer[nSize] = fgetc(fPart); if (cBuffer[nSize] == '\n') nLines++; nSize++; } cPtr = cBuffer; nCount = 0; // skip two first lines nLines -= 2; for (i=0; i < 2; i++) { while (*cPtr != '\n') cPtr++; cPtr++; } showDebug(3, "Major must be: %d\n", nWhatMajorMustBe); for (i=0; i < nLines; i++) { cPtr = decodePartitionEntry(cPtr, &nMajor, &nMinor, &nBlocks, &nPartNum, szDevice); showDebug(3, "PARTITION_ENTRY: device=[%s] and maj=%d and min=%d and num=%d\n", szDevice, nMajor, nMinor, nPartNum); if ((nWhatMajorMustBe == -1) || ((nMajor == nWhatMajorMustBe) && (nMinor <= nMinorOfPartToSave))) { if (nPartNum == 0) // if it is an hard drive (as hda, hdc) { showDebug(3, "PARTITION_ENTRY: OKAY device=[%s] and maj=%d and min=%d and num=%d\n", szDevice, nMajor, nMinor, nPartNum); // can we read the partition ? SNPRINTF(szTemp, "/dev/%s", szDevice); //debugWin("isDriveReady(%s)=%d",szTemp,isDriveReady(szTemp)); //if (isDriveReady(szTemp)) { nCount++; // number of hard disks SNPRINTF(szTemp, "/dev/%s#%u#",szDevice, (DWORD)nBlocks); if (szHdList) strncat(szHdList, szTemp, nMaxLen); } } } } fclose(fPart); RETURN_int(nCount); } // ============================================================================= int mbrCopyFileToString(char *cDest, char *szFilepath, int nMaxSize) { BEGIN; FILE *fInfo; int i; int c; // ---- open file fInfo = fopen(szFilepath, "rb"); if (!fInfo) { showDebug(1, "MBR (001): cannot open %s in rb mode\n", szFilepath); RETURN_int(-1); } // ---- copy data memset(cDest, 0, nMaxSize); for (i=0; (i < nMaxSize) && (!feof(fInfo)) && ((c = getc(fInfo)) != EOF); i++) cDest[i] = c; // ---- close file fclose(fInfo); return(0); } // ============================================================================= int mbrGetData(char *szDevice, CMbr *mbr, DWORD dwBlocksCount) { BEGIN; FILE *fPart; int nRes; char szInfoDir[MAXPATHLEN]; char szTemp[MAXPATHLEN]; int i; //debugWin("mbrGetData: seDev=[%s] and dwBlock=%lu", szDevice, dwBlocksCount); // ---- init memset(mbr, 0, sizeof(CMbr)); strncpy(mbr->szDevice, szDevice, MAX_DEVICENAMELEN); mbr->qwBlocksCount = (QWORD)dwBlocksCount; // ---- copy data fPart = fopen(szDevice, "rb"); if (!fPart) { showDebug(1, "MBR (001): cannot open %s in rb mode\n", szDevice); RETURN_int(-1); } nRes = fread(mbr->cData, MBR_SIZE_WHOLE, 1, fPart); fclose(fPart); if (nRes != 1) { showDebug(1, "MBR (002): cannot read MBR\n", szDevice); RETURN_int(-1); } // ---- CRC of the data mbr->dwDataCRC = 0; for (i=0; i < MBR_SIZE_WHOLE; i++) mbr->dwDataCRC += mbr->cData[i]; // ---- copy descriptions nRes = mbrGetInfoDir(szDevice, szInfoDir); if (nRes != -1) // for an IDE disk { // model SNPRINTF(szTemp, "%s/model", szInfoDir); nRes = mbrCopyFileToString(mbr->szDescModel, szTemp, MAX_DESC_MODEL); if (nRes == -1) { showDebug(1, "MBR (003): error in mbrCopyFileToString\n", szDevice); RETURN_int(-1); } } else { memset(mbr->szDescModel, 0, MAX_DESC_MODEL); } // geometry /* sprintf(szTemp, "%s/geometry", szInfoDir); mbrCopyFileToString(mbr->szDescGeometry, szTemp, MAX_DESC_GEOMETRY); if (nRes == -1) RETURN_int(-1); */ // geometry /* sprintf(szTemp, "%s/identify", szInfoDir); mbrCopyFileToString(mbr->szDescIdentify, szTemp, MAX_DESC_IDENTIFY); if (nRes == -1) RETURN_int(-1); */ RETURN_int(0); } partimage-0.6.8/src/client/interface_newt.h0000644000000000000000000000702511252653177017424 0ustar rootroot/*************************************************************************** interface_newt.h - description ------------------- begin : Wed Mar 14 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _INTERFACE_NEWT_H_ #define _INTERFACE_NEWT_H_ #include "partimage.h" #include "misc.h" #include "interface.h" // ======================================================= /** Shows an error dialog box, in a newt window. The title is ¨Error¨ and the * button is ¨Cancel¨. The parameters are the same as the printf function. * @param fmt format of the text to show (as printf) * @param ... parameters of the text to show (as printf) */ void debugWin(char *fmt, ...); // ======================================================= class CInterfaceNewt : public CInterface { public: CInterfaceNewt(bool bBatchMode); ~CInterfaceNewt(); void showErrorInternal(char *szText); virtual void msgBoxOk(char *szTitle, char *szText, ...); virtual int msgBoxYesNo(char *szTitle, char *szText, ...); virtual void msgBoxCancel(char *szTitle, char *szText, ...); virtual void msgBoxError(char *szText, ...); virtual int msgBoxContinueCancel(char *szTitle, char *szText, ...); void StatusLine(char * str); int guiInitMainWindow(char * szDevice, char * szImageFile, char *szNetworkIP, DWORD * dwServerPort, bool * bSsl); void askDescription(char * szDescription, DWORD dwMaxLen); int askText(char *szMessage, char *szTitle, char *szDestText, WORD size); int askLogin(char *szLogin, char *szPasswd, WORD size); WORD askNewPath(char * szOriginalFilename, DWORD dwVolume, char * szPath, char *szNewPath, WORD size); //int askText(char *szMessage, char *szTitle, char *szDestText); //WORD ErrorLogAsRoot(); //WORD WaitKeyPressed(char * szOld, char * szNewPath, char * szOriginalFilename, DWORD volume); //WORD askRestore(char * szDevice, char * szImageFilename); //WORD askIgnoreFSError(char * fsck); //void WarnFS(char *szFileSys); //void WarnSimulate(); //WORD WarnRestoreMBR(char * szCurrentDevice, QWORD qwCurrentSize,char * szOriginalDevice, QWORD qwOriginalSize); //WORD WarnRestoreOtherMBR(char *szCurrentDevice, char *szOriginalDevice); //void SuccessRestoringMBR(char * szDevice); //WORD Error(CExceptions *excep, char *szFilename, char *szDevice=NULL); WORD ErrorExist(char *szImagefile); void ErrorAccess(char *szImagefile); void ErrorCompressionLevel(char *szImagefile); void ErrorAlreadyOpened(char *szImagefile); void ErrorPartitionVolume(char *szImagefile); void ErrorVolumeID(); void ErrorPasswd(); void ErrorTooMany(); void ErrorBlockNumber(); void ErrorVolumeNumber(DWORD dwVol1, DWORD dwVol2); void ErrorCheckFS(); void ErrorRefused(); private: bool m_bPushDone; }; #endif partimage-0.6.8/src/client/interface.h0000644000000000000000000001267511252653177016376 0ustar rootroot/*************************************************************************** interface.h - description ------------------- begin : Wed Mar 14 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _INTERFACE_H_ #define _INTERFACE_H_ #include "partimage.h" #include "exceptions.h" #include "misc.h" #define MSGBOX_YES 1 #define MSGBOX_NO 2 #define MSGBOX_CONTINUE 3 #define MSGBOX_CANCEL 4 // ======================================================= class CInterface { public: CInterface(bool bBatchMode) {m_bBatchMode = bBatchMode;} virtual ~CInterface() {} bool getBatchMode() { return m_bBatchMode; } // defined in herited classes virtual void msgBoxOk(char *szTitle, char *szText, ...)=0; virtual void msgBoxCancel(char *szTitle, char *szText, ...)=0; virtual void msgBoxError(char *szText, ...)=0; virtual int msgBoxYesNo(char *szTitle, char *szText, ...)=0; virtual int msgBoxContinueCancel(char *szTitle, char *szText, ...)=0; virtual void showErrorInternal(char *szText)=0; // defined in the base class void showError(signed int nErr, char *szFormat, ...); void showAboutDialog(); void ErrorWriting(DWORD block, signed int err); /**/ void ErrorWritingHeader(char * header, signed int err); /**/ void ErrorWritingBitmap(DWORD block, signed int err); /**/ void ErrorWritingDisk(DWORD block, signed int err); /**/ void ErrorWritingSuperblock(signed int err); /**/ void ErrorWritingMBR(); /**/ void ErrorWritingMainHeader(); /**/ void ErrorWritingMainTail(); /**/ void ErrorWritingInfos(); void ErrorReading(DWORD block, signed int err); /**/ void ErrorReadingHeader(char * header, signed int err); void ErrorReadingBitmap(DWORD block, signed int err); /**/ void ErrorReadingDisk(DWORD block, signed int err); void ErrorReadingSuperblock(signed int err); /**/ void ErrorReadingDiskBitmap(DWORD block, signed int err); /**/ void ErrorReadingMBR(); /**/ void ErrorReadingMainTail(); /**/ void ErrorReadingMainHeader(); /**/ void ErrorReadingInfos(); /**/ void ErrorReadingMBRMagic(); /**/ void ErrorNewerRelease(); /**/ void ErrorFileSystem(char *); /**/ void ErrorDiskFull(); void ErrorZeroing(DWORD block, signed int err); /**/ void ErrorDetectingFS(char * szDevice, signed int err); void ErrorEncryption(); /**/ void ErrorAskFirstVolume(char * szVolume); /**/ void ErrorInvalidImagefile(char * szFilename); void ErrorTooSmall(QWORD qwOriginalSize, QWORD qwSize); void ErrorNoMemory(); void ErrorAccess(char * szImageFile); void ErrorNoMBR(); void ErrorCRC(); void ErrorCRC(QWORD qwOriginalCRC, QWORD qwCRC); void ErrorWrongVolumeNumber(DWORD dwExpectedVolume, DWORD dwVolume); /**/ void ErrorClosing(); void ErrorAlreadyLocked(char * szPartition, signed int err); void ErrorOpeningPartition(char * szDevice, signed int err); void ErrorSavingMBR(); /**/ void ErrorInvalidFS(char * szFs); /**/ void ErrorLocking(char * szFilename, signed int err); virtual void StatusLine(char * str)=0; virtual int askLogin(char * szLogin, char * szPasswd, WORD size)=0; virtual WORD askNewPath(char * szOriginalFilename, DWORD dwVolume, char * szPath, char *szNewPath, WORD size)=0; virtual int askText(char * szMessage, char * szTitle, char * szDestText, WORD size)=0; virtual void askDescription(char * szDescription, DWORD dwMaxLen)=0; virtual int guiInitMainWindow(char * szDevice, char * szImageFile, char * szNetworkIP, DWORD * dwServerPort, bool * bSsl)=0; /*virtual int askText(char * szMessage, char * szTitle, char * szDestText)=0; virtual void showAboutDialog()=0; virtual WORD windowRoot()=0; virtual WORD WaitKeyPressed(char * szOld, char * szNewPath, char * szOriginalFilename, DWORD volume)=0; virtual WORD askRestore(char * szDevice, char * szImageFilename)=0; virtual WORD askIgnoreFSError(char * fsck)=0;*/ // WORD Error(CExceptions * excep, char * szFilename); WORD ErrorLogAsRoot(); WORD ErrorBugBzip2(); WORD WaitKeyPressed(char *szOld, char *szNewPath, char *szOriginalFilename, DWORD dwVolume); WORD askRestore(char *szDevice, char *szImageFilename); WORD askIgnoreFSError(char *szFsck); WORD askIgnoreNoFschk(char *szFsck); WORD askIgnoreDeniedFschk(char *szFsck); void WarnFS(char *szFileSys); void WarnFsBeta(char *szFileSys); void WarnSimulate(); WORD WarnRestoreMBR(char * szCurrentDevice, QWORD qwCurrentSize, char * szOriginalDevice, QWORD qwOriginalSize); WORD WarnRestoreOtherMBR(char *szCurrentDevice, char *szOriginalDevice); void SuccessRestoringMBR(char *szDevice); WORD Error(CExceptions *excep, char *szFilename, char *szDevice=NULL); //void Error(); private: bool m_bBatchMode; }; #endif partimage-0.6.8/src/client/imagefile.cpp0000644000000000000000000010265411256743306016706 0ustar rootroot/*************************************************************************** imagefile.cpp - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_MOUNT_H #include #endif #include #include #include #include #include #include "partimage.h" #include "imagefile.h" #include "common.h" #include "gui_text.h" #include "errors.h" #include "exceptions.h" #include "interface.h" #include "interface_newt.h" #include // gzip compression #include // bzip2 compression CParam g_param; // ======================================================= CImage::CImage(COptions * options) { char * passwd = (char *) malloc (2048); char * login = (char *) malloc (2048); BEGIN; m_dwVolumeNumber = 0; memcpy(&m_options, options, sizeof(COptions)); if (!strlen(options -> szServerName)) //local m_cid = new CImageDisk(options); else { #ifdef MUST_LOGIN if (options->bMustLogin) { if (strlen(options -> szUserName) && strlen(options -> szPassWord)) { strncpy(login, options->szUserName, 2048); strncpy(passwd, options->szPassWord, 2048); *(login+2047) = '\0'; *(passwd+2047) = '\0'; } else { // we get login/pass from user int nRes; nRes = g_interface -> askLogin(login, passwd, 2048); if (nRes) { free(login); free(passwd); THROW( ERR_CANCELED); } } } else { #endif // fake login/passwd strcpy(login, "nologin"); strcpy(passwd, "nopass"); #ifdef MUST_LOGIN } #endif m_cid = new CImageNet(options, options->bUseSSL); try { m_cid -> Connect(options, login, passwd, options->szServerName, options->dwServerPort); } catch ( CExceptions * excep ) { free(login); free(passwd); throw excep; } free(login); free(passwd); } m_cid -> set_bIsOpened(false); m_qwCRC = 0LL; m_guiSave = NULL; m_guiRestore = NULL; // mount options m_bIsMounted = false; memset(m_szMountDevice, 0, MAXPATHLEN); memset(m_szMountPoint, 0, MAXPATHLEN); memset(m_szMountFS, 0, MAXPATHLEN); // parse mount options if (m_options.szAutoMount) { char *cBegin = m_options.szAutoMount; int i; for (i=0; (*cBegin != '#') && (*cBegin); i++,cBegin++) m_szMountDevice[i] = *cBegin; cBegin++; for (i=0; (*cBegin != '#') && (*cBegin); i++,cBegin++) m_szMountPoint[i] = *cBegin; cBegin++; for (i=0; (*cBegin != '#') && (*cBegin); i++,cBegin++) m_szMountFS[i] = *cBegin; } m_fImageFile = NULL; m_gzImageFile = NULL; m_bzImageFile = NULL; RETURN; } // ======================================================= CImage::~CImage() { BEGIN; // to close the image file if there was an error if (get_bIsOpened()) m_cid->close(); delete m_cid; RETURN; } // ======================================================= QWORD CImage::get_qwCurrentVolumeSize() { QWORD qwVolumeSize; m_cid->get_qwCurrentVolumeSize(&qwVolumeSize); return qwVolumeSize; } // ======================================================= DWORD CImage::get_dwVolumeNumber() { return m_dwVolumeNumber; } bool CImage::get_bIsOpened() { return m_cid -> get_bIsOpened(); } char * CImage::get_szImageFilename() { return m_cid -> get_szImageFilename(); } char * CImage::get_szOriginalFilename() { return m_cid -> get_szOriginalFilename(); } char * CImage::get_szPath() { return m_cid -> get_szPath(); } void CImage::set_dwVolumeNumber(DWORD n) { m_dwVolumeNumber = n; } void CImage::set_bIsOpened(bool n) { m_cid -> set_bIsOpened(n); } void CImage::set_szPath(char * str) { m_cid -> set_szPath(str); } void CImage::set_szImageFilename(char * str) { m_cid -> set_szImageFilename(str); } void CImage::set_szOriginalFilename(char * str) { m_cid -> set_szOriginalFilename(str); } void CImage::set_szImageFilename(char * str, int n) { m_cid -> set_szImageFilename(str, n); } void CImage::set_szOriginalFilename(char * str, int n) { m_cid -> set_szOriginalFilename(str, n); } void CImage::set_qwIdentificator(QWORD n) { showDebug(0, "Identificator in CMainHeader = %llu = %llX\n", n, n); m_qwIdentificator = n; } void CImage::set_options(COptions * options) { showDebug(1, "SETOPTIONS\n"); memcpy(&m_options, options, sizeof(COptions)); m_cid->set_options(options); } // ======================================================= void CImage::writeSplit() { BEGIN; char aux[MAXPATHLEN]; QWORD qwFreeSpace; int nRes; if (m_options.bBatchMode) // error { showDebug(1, "---> CI::write(): No space left to write the image " "file\n"); THROW( ERR_FULL); } qwFreeSpace = 0; do { nRes = g_interface -> askNewPath(get_szOriginalFilename(), get_dwVolumeNumber()+1, get_szPath(), aux, MAXPATHLEN); if (nRes == -1) THROW( ERR_CANCELED); while (aux[strlen(aux)-1] == '/') aux[strlen(aux)-1] = '\0'; set_szPath(aux); // get disk space on new path SNPRINTF(aux, "%s/%s.test", get_szPath(), get_szOriginalFilename()); //debugWin("NEWPATH=[%s]", aux); try { m_cid->getDiskFreeSpaceForFile(&qwFreeSpace, aux); } catch ( CExceptions * excep ) // exception = errno { showDebug(3, "exception caught: %d\n", excep->GetExcept()); qwFreeSpace = 0LL; } } while (qwFreeSpace < /*ENDVOL_MARGIN*/ SOME_SPACE); // while no space left try { splitChangeImageFileWrite(); } catch ( CExceptions * excep ) { showDebug(1, "exception caught : %d\n", excep->GetExcept()); throw excep; } /*try { m_cid->getFreeSpace(&qwFreeSpace); } catch ( CExceptions * excep ) // exception = errno { qwFreeSpace = 0LL; }*/ m_guiSave -> showImageFileInfo(get_szImageFilename(), qwFreeSpace, 0, m_options.szFullyBatchMode); showDebug(2, "imagefile split done\n"); RETURN; } // ======================================================= void CImage::write(void *vBuf, DWORD dwLength, bool bUpdateCRC) { static QWORD qwCount = 0LL; static QWORD qwTotalBytes = 0LL; QWORD qwFreeSpace; //, qwCurrentSize; char *cBuf; DWORD dwRes; BEGIN; showDebug(3, "begin of ci::write for %ld (bUpdateCRC = %d)\n", dwLength, bUpdateCRC); cBuf = (char*) vBuf; if (bUpdateCRC) { DWORD i; BYTE * cBuffer = (BYTE *) vBuf; for (i = 0; i < dwLength; i++) m_qwCRC += (cBuffer[i]); } // ---- SPLIT_SIZE need ? //if ( (m_options.dwSplitMode == SPLIT_SIZE) && (get_qwCurrentVolumeSize() + dwLength + ENDVOL_MARGIN > m_options.qwSplitSize)) if (g_nThreadError == ERR_SPLITSIZE) { g_nThreadError = 0; try { splitChangeImageFileWrite(); } catch ( CExceptions * excep ) // may catch canceled, opened, exist, errno, access, incomplete { showDebug(1, "write: error 1\n"); throw excep; } try { m_cid->getFreeSpace(&qwFreeSpace); } catch ( CExceptions * excep ) // exception = errno { qwFreeSpace = 0LL; } m_guiSave -> showImageFileInfo(get_szImageFilename(), qwFreeSpace, 0, m_options.szFullyBatchMode); qwTotalBytes = 0LL; showDebug(2, "imagefile split done\n"); } // ---- fatal error if (g_nThreadError) { showDebug(1, "Fatal error: %d\n", g_nThreadError); THROW(g_nThreadError); //THROW(ERR_ERRNO); } // ---- no space left ? if (g_bSpaceOnDisk == false) { writeSplit(); g_bSpaceOnDisk = true; } // ---- compress and copy data if (m_options.dwCompression == COMPRESS_NONE) dwRes = (DWORD) fwrite(cBuf, 1, dwLength, m_fImageFile); else if (m_options.dwCompression == COMPRESS_GZIP) dwRes = (DWORD) gzwrite(m_gzImageFile, cBuf, dwLength); else if (m_options.dwCompression == COMPRESS_BZIP2) dwRes = (DWORD) BZ2_bzwrite(m_bzImageFile, cBuf, dwLength); else THROW(ERR_COMP); if (dwRes != dwLength) showDebug(1, "ERROR: dwLen=%lu and dwRes=%lu\n", dwLength, dwRes); qwTotalBytes += (QWORD) dwLength; // ---- update the window ---- if (qwCount == 0) { try { m_cid->getFreeSpace(&qwFreeSpace); } catch ( CExceptions * excep ) { qwFreeSpace = 0LL; } if (m_guiSave) m_guiSave -> showImageFileInfo(get_szImageFilename(), qwFreeSpace, get_qwCurrentVolumeSize(), m_options.szFullyBatchMode); } qwCount += (QWORD) dwRes; if (qwCount > (1024 * 1024)) // update the window every 1 MB qwCount = 0LL; showDebug(3, "write end -> %ld\n", dwLength); RETURN; } // ======================================================= // may throw opened, eof (from cid) // may throw opened, errno, comp, canceled, volumeheader, // partitionvolume, volumenumber (from splitchangeimagefileread) // may throw eof void CImage::read(char *cBuf, DWORD dwLength, bool bUpdateCRC) { DWORD i; static QWORD qwTotalBytes = 0LL; static QWORD qwCount = 0LL; DWORD dwRes; int nRes; if (dwLength != 1) // avoid having BUFFER_BLOCK_SIZE messages with imginfo and restmbr showDebug(4, "begin of ci::read: size=%lu, pos=%lld\n", dwLength, qwTotalBytes); if (m_options.dwCompression == COMPRESS_NONE) nRes = fread(cBuf, 1, dwLength, m_fImageFile); else if (m_options.dwCompression == COMPRESS_GZIP) nRes = gzread(m_gzImageFile, cBuf, dwLength); else if (m_options.dwCompression == COMPRESS_BZIP2) nRes = BZ2_bzread(m_bzImageFile, cBuf, dwLength); else THROW(ERR_COMP); dwRes = (DWORD) nRes; // update the CRC control if the read operation is whole successful if ((bUpdateCRC) && (nRes > 0)) { BYTE *cBuffer = (BYTE *) cBuf; for (i=0; i < dwRes; i++) m_qwCRC += (cBuffer[i]); } if (dwRes != dwLength) { if (dwLength != 1) showDebug(1, "READ ERROR: dwLength=%lu and dwRes=%lu and g_nThreadState=%d\n", dwLength, dwRes, g_nThreadState); if (g_nThreadState == THREAD_EOF) { DWORD dwFirstRead = dwRes; try { splitChangeImageFileRead(); } catch ( CExceptions * excep ) // opened, errno, canceled, volumeheader // partition volume, volumenumber { showDebug(1, "ci::read: exception raised from splitChangeImageFileRead()\n"); throw excep; } qwTotalBytes = 0LL; read(cBuf+dwFirstRead, dwLength-dwFirstRead, bUpdateCRC); m_guiRestore -> showImageFileInfo(get_szImageFilename(), m_options.dwCompression, m_options.szFullyBatchMode); } else if ((g_nThreadState == THREAD_ASKEXIT) || (g_nThreadState == THREAD_FINISHED) ) { showDebug(1, "READ ERROR 2: dwLength=%lu and dwRes=%lu and g_nThreadState=%d\n", dwLength, dwRes, g_nThreadState); } else { showDebug(1, "READ ERROR 2: dwLength=%lu and dwRes=%lu and g_nThreadState=%d\n", dwLength, dwRes, g_nThreadState); THROW(ERR_READING); } } qwTotalBytes += (QWORD) dwLength; // ---- update the window ---- qwCount += (QWORD) dwLength; if (qwCount > (1024 * 1024)) // update the window every 1 MB { qwCount = 0LL; if (m_guiRestore) m_guiRestore -> showImageFileInfo(get_szImageFilename(), m_options.dwCompression, m_options.szFullyBatchMode); } if (dwLength != 1) showDebug(4, "end of ci::read: %lu/%lu\n", dwRes, dwLength); RETURN; } // ======================================================= // may throw errno (from close) // may throw canceled, opened, exist, errno, access (from openwritting) // may throw incomplete (from cid:write) // may throw canceled, incomplete void CImage::splitChangeImageFileWrite() { BEGIN; char aux [MAXPATHLEN]; int nRes; // close old imagefile try { closeWriting(); } catch ( CExceptions * excep ) // catch errno { throw excep; } //execute /tmp/partimage-shell if (m_options.bRunShell) { if (!fork()) // we're the child // no error check maid execl("/tmp/partimage-shell", get_szImageFilename(), get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber(),(char*)NULL); } // wait for a keyboard keypress if need if (m_options.bSplitWait) { nRes = g_interface -> WaitKeyPressed(get_szImageFilename(), get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()+1); if (nRes == MSGBOX_CANCEL) throw ERR_CANCELED; } set_dwVolumeNumber(get_dwVolumeNumber()+1); // increase the volume number SNPRINTF(aux, "%s/%s.%.3d", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); //*(aux+MAXPATHLEN-1) = '\0'; set_szImageFilename(aux); try { openWriting(); } catch ( CExceptions * excep ) // catch opened, exist, errno, comp, access, canceled { showDebug(2, "splitW: exception raised from openW\n"); throw excep; } RETURN; } // ======================================================= // may throw errno (from close) // may throw opened, comp, eof (from cid::read) // may throw canceled, opened, errno, comp (from openreading) // may throw volumeheader, partitionvolume, volumenumber void CImage::splitChangeImageFileRead() { BEGIN; char aux[MAXPATHLEN]; // increase volume number set_dwVolumeNumber(get_dwVolumeNumber()+1); SNPRINTF(aux, "%s/%s.%.3d", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); //*(aux+MAXPATHLEN-1) = '\0'; set_szImageFilename(aux); try { closeReading(); } catch ( CExceptions * excep ) { showDebug(1, "exception raised from close\n"); throw excep; } try { openReading(); } catch ( CExceptions * excep ) { showDebug(1, "exception %d caught from openReading\n", excep->GetExcept()); throw excep; } } // ======================================================= // may throw err (from cid) void CImage::closeReading(bool bForceExit /* = false */) { BEGIN; int nRes = 0; char c; showDebug(3, "TRACE_000\n"); // if not the end of the image file, avoid SIGPIPE if (bForceExit) { showDebug(1, "bForceExit: g_nThreadState = THREAD_ASKEXIT\n"); g_nThreadState = THREAD_ASKEXIT; // unlock the buffer thread, if it does not have seen // it must exit while (g_nThreadState != THREAD_FINISHED) read(&c, 1, false); //pthread_join(g_threadBuffer, NULL); } showDebug(3, "TRACE_001\n"); //pthread_join(g_threadBuffer, NULL); // MULTI-THREAD TERMISAISON if (m_options.dwCompression == COMPRESS_NONE) // No compression nRes = fclose(m_fImageFile); else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { char szTemp[2048]; nRes = gzclose(m_gzImageFile); showDebug(3, "GZCLOSE: result=%s\n", formatGzipError(nRes, szTemp, sizeof(szTemp))); } else if (m_options.dwCompression == COMPRESS_BZIP2) // Bzip2 compression BZ2_bzclose(m_bzImageFile); if (nRes) THROW(ERR_ERRNO, errno); showDebug(3, "TRACE_002\n"); try { m_cid -> close(); } catch ( CExceptions * excep) { showDebug(1, "exception raised\n"); throw excep; } // umount image file location umountImageLocation(); RETURN; } // ======================================================= // may throw err (from cid) void CImage::closeWriting() { BEGIN; int nRes = 0; if (m_options.dwCompression == COMPRESS_NONE) // No compression nRes = fclose(m_fImageFile); else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression nRes = gzclose(m_gzImageFile); else if (m_options.dwCompression == COMPRESS_BZIP2) // Bzip2 compression BZ2_bzclose(m_bzImageFile); if (nRes) THROW(ERR_ERRNO, errno); showDebug(1, "PTHREAD_JOIN: before\n"); pthread_join(g_threadBuffer, NULL); showDebug(1, "PTHREAD_JOIN: after\n"); try { m_cid -> close(); } catch ( CExceptions * excep) { showDebug(1, "ci::close: exception raised\n"); throw excep; } // umount image file location umountImageLocation(); RETURN; } // ======================================================= int CImage::mountImageLocation() { int nRes; BEGIN; if ((m_options.szAutoMount) && (strlen(m_options.szAutoMount)) && (!m_bIsMounted)) // if not already mounted { // warning g_interface->msgBoxOk(i18n("Automatic mount"), i18n("Please, press \"ok\" to mount [%s] on [%s]"), m_szMountDevice, m_szMountPoint); nRes = m_cid->mountImageLocation(m_szMountDevice, m_szMountPoint, m_szMountFS); if (nRes == -1) { //g_interface->msgBoxError(i18n("Cannot mount %s"), m_szMountDevice); THROW(ERR_AUTOMOUNT, m_szMountDevice); //RETURN_int(-1); } m_bIsMounted = true; } return 0; } // ======================================================= int CImage::umountImageLocation() { int nRes; if ((m_options.szAutoMount) && (strlen(m_options.szAutoMount)) && (m_bIsMounted)) // if mounted { // debugWin("umount[%s]",m_szMountPoint); showDebug(1, "umount[%s]",m_szMountPoint); nRes = m_cid->umountImageLocation(m_szMountPoint); if (nRes) THROW(ERR_AUTOUMOUNT, m_szMountDevice); m_bIsMounted = false; } return 0; } // ======================================================= int CImage::openWritingFdDisk() { BEGIN; int nRes; int nCont; char szAux[MAXPATHLEN], aux2[MAXPATHLEN]; showDebug(0,"TRY: path=[%s] and file=[%s] and vol=[%d] and fully=[%s]\n", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber(), get_szImageFilename()); try { m_cid -> openWriting(); } catch ( CExceptions * excep ) { // we can recover exist, locked or path exceptions if (excep->GetExcept() == ERR_EXIST || excep->GetExcept() == ERR_LOCKED) { if (excep->GetExcept() == ERR_EXIST) nCont = excep->windowAlreadyExist(get_szImageFilename(),get_szPath()); else nCont = excep->windowLocked(get_szImageFilename(),get_szPath()); switch (nCont) { case ERR_QUIT: THROW(ERR_CANCELED); case ERR_RETRY: strcpy(szAux, excep->getNewString()); // endding '/' were removed extractFilepathFromFullPath(szAux, aux2); // filepath without filename set_szPath(aux2); extractFilenameFromFullPath(szAux, aux2); // filename without path set_szOriginalFilename(aux2); SNPRINTF(szAux, "%s/%s.%.3d", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); set_szImageFilename(szAux); nRes = openWritingFdDisk(); RETURN_int(nRes); break; case ERR_CONT: if (excep->GetExcept() == ERR_EXIST) { m_options.bOverwrite = true; m_cid -> set_options(&m_options); } //openWriting(false); nRes = openWritingFdDisk(); RETURN_int(nRes); break; } } else if (excep->GetExcept() == ERR_PATH) { nCont = excep->windowWrongPath(get_szImageFilename()); switch (nCont) { case ERR_QUIT: THROW(ERR_CANCELED); case ERR_RETRY: strcpy(szAux, excep->getNewString()); // endding '/' were removed set_szPath(szAux); SNPRINTF(aux2, "%s/%s.%.3d", szAux, get_szOriginalFilename(), get_dwVolumeNumber()); set_szImageFilename(aux2); openWriting(/*false*/); RETURN_int(0); } } else // other exception -> raise throw excep; } RETURN_int(0); } // ======================================================= // may throw canceled // may throw opened, exist, errno, access (from cid) void CImage::openWriting() { BEGIN; int nRes; int nFd[2]; errno = 0; nRes = pipe(nFd); if (nRes == -1) { showDebug(1, "Cannot call pipe. Error=%d=%s\n",errno,strerror(errno)); THROW(ERR_ERRNO, errno); } m_nFdImage = nFd[1]; if (m_options.dwCompression == COMPRESS_NONE) // No compression { showDebug(1, "open std\n"); m_fImageFile = fdopen(m_nFdImage, "wb"); if (m_fImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } } else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { showDebug(1, "open gzip\n"); m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "wb"); //"wb1h"); if (m_gzImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } } else if (m_options.dwCompression == COMPRESS_BZIP2) // Bzip2 compression { showDebug(1, "open bzip2\n"); m_bzImageFile = BZ2_bzdopen(m_nFdImage, "wb"); if (m_bzImageFile == NULL) { showDebug(1, "error:%d %s\n", errno, strerror(errno)); THROW(ERR_ERRNO, errno); } } else THROW(ERR_COMP); showDebug(0,"INFO: path=[%s] and file=[%s] and vol=[%d] and fully=[%s]\n", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber(), get_szImageFilename()); // mount image file location //if (bInitThread) mountImageLocation(); openWritingFdDisk(); // MULTI-THREAD INITIALIZATION // Run the thread to save the buffer to the image file //if (bInitThread) { g_param.image = this; g_param.options = m_options; g_param.nFd = nFd[0]; g_bSpaceOnDisk = true; g_nThreadError = 0; showDebug(1, "PTHREAD_CREATE: before\n"); pthread_create(&g_threadBuffer, NULL, (void*(*)(void*))&procWriteBufferToImage, &g_param); showDebug(1, "PTHREAD_CREATE: after\n"); } /*showDebug(0,"TRY: path=[%s] and file=[%s] and vol=[%d] and fully=[%s]\n", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber(), get_szImageFilename()); try { m_cid -> openWriting(); } catch ( CExceptions * excep ) { // we can recover exist, locked or path exceptions if (excep->GetExcept() == ERR_EXIST || excep->GetExcept() == ERR_LOCKED) { if (excep->GetExcept() == ERR_EXIST) nCont = excep->windowAlreadyExist(get_szImageFilename(),get_szPath()); else nCont = excep->windowLocked(get_szImageFilename(),get_szPath()); switch (nCont) { case ERR_QUIT: THROW(ERR_CANCELED); case ERR_RETRY: strcpy(szAux, excep->getNewString()); // endding '/' were removed extractFilepathFromFullPath(szAux, aux2); // filepath without filename set_szPath(aux2); extractFilenameFromFullPath(szAux, aux2); // filename without path set_szOriginalFilename(aux2); SNPRINTF(szAux, "%s/%s.%.3ld", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); set_szImageFilename(szAux); openWriting(false); RETURN; break; case ERR_CONT: if (excep->GetExcept() == ERR_EXIST) { m_options.bOverwrite = true; m_cid -> set_options(&m_options); } openWriting(false); RETURN; break; } } else if (excep->GetExcept() == ERR_PATH) { nCont = excep->windowWrongPath(get_szImageFilename()); switch (nCont) { case ERR_QUIT: THROW(ERR_CANCELED); case ERR_RETRY: strcpy(szAux, excep->getNewString()); // endding '/' were removed set_szPath(szAux); SNPRINTF(aux2, "%s/%s.%.3ld", szAux, get_szOriginalFilename(), get_dwVolumeNumber()); set_szImageFilename(aux2); openWriting(false); RETURN; } } else // other exception -> raise throw excep; }*/ // Write volume header CVolumeHeader headVolume; memset(&headVolume, 0, sizeof(CVolumeHeader)); // create the identificator if this is the first volume if (get_dwVolumeNumber() == 0) set_qwIdentificator(generateIdentificator()); strcpy(headVolume.szMagicString, MAGIC_BEGIN_VOLUME); headVolume.dwVolumeNumber = get_dwVolumeNumber(); headVolume.qwIdentificator = get_qwIdentificator(); strcpy(headVolume.szVersion, CURRENT_IMAGE_FORMAT); write((void*)&headVolume, (DWORD)sizeof(CVolumeHeader), false); RETURN; } // ======================================================= void CImage::writeCRC(char *cData, DWORD dwDataLen) { DWORD dwCRC; DWORD i; // calculates the CRC32 dwCRC = 0; for (i=0; i < dwDataLen; i++) dwCRC += cData[i]; try { write(&dwCRC, sizeof(DWORD), true); } catch (CExceptions * execp) { throw execp; } } // ======================================================= void CImage::readAndCheckCRC(char *cData, DWORD dwDataLen) { DWORD dwCurCRC, dwFileCRC; DWORD i; // calculates the CRC32 dwCurCRC = 0; for (i=0; i < dwDataLen; i++) dwCurCRC += cData[i]; try { read((char*)&dwFileCRC, sizeof(DWORD), true); } catch (CExceptions * excep) { showDebug(1, "error in CImage::readAndCheckCRC()\n"); throw excep; } if (dwCurCRC != dwFileCRC) { showDebug(1, "Bad CRC in CImage::readAndCheckCRC(): %lu was read, instead of %lu\n", dwFileCRC, dwCurCRC); THROW(ERR_CHECK_CRC, dwFileCRC, dwCurCRC); } } // ======================================================= // may throw incomplete, errno, opened, exist, access, full, canceled void CImage::writeMagic(char *szMagicString) { try { write(szMagicString, strlen(szMagicString), true); } catch (CExceptions * execp) { throw execp; } } // ======================================================= // may throw wrongmagic // may throw opened, eof, errno, canceled, volumeheader, volumenumber, // partitionvolume void CImage::readAndCheckMagic(char *szMagicString) { char szAux [strlen(szMagicString)+1]; showDebug(2, "begin of ci::readAndCheckMagic\n"); try { read(szAux, strlen(szMagicString), true); } catch (CExceptions * excep) { showDebug(2, "end of ci::readAndCheckMagic: exceptions raised from ci::read\n"); throw excep; } if (memcmp(szMagicString, szAux, strlen(szMagicString))) { showDebug(2, "szMagicString=%d, %s\n", strlen(szMagicString), szMagicString); szAux[strlen(szMagicString)] = 0; showDebug(2, "szAux=[%s]\n", szAux); THROW(ERR_WRONGMAGICINVALIMGFILE); } showDebug(2, "end of ci::readAndCheckMagic: ok\n"); } // ======================================================= // may throw canceled // may throw opened, errno, comp (from cid) // may throw version_older, version_newer void CImage::openReading(CVolumeHeader *vh /* = NULL */) { int nRes; char szMess[2048]; char szAux[MAXPATHLEN], aux2[MAXPATHLEN]; int nFd[2]; int nCont; showDebug(1, "begin (%s)\n", m_cid->get_szImageFilename()); showDebug(3, "Initializing new buffer\n"); // mount image file location mountImageLocation(); // ---- ask for another path while the file is not found while (m_cid->doesFileExists(m_cid->get_szImageFilename()) == false) { if ((m_options.szAutoMount) && (strlen(m_options.szAutoMount))) { // Automount enabled -> wrong volume inserted, ask for the right // one but don't change location nRes = g_interface -> msgBoxContinueCancel( i18n("Wrong volume inserted"), i18n("You will be prompted to remove this media and insert the" " right one")); umountImageLocation(); mountImageLocation(); } else { SNPRINTF(szMess,i18n("Can't read the following volume file:\n%s\n%s"), get_szImageFilename(), i18n("Enter another full path (directory & name)")); nRes = g_interface -> askText(szMess, i18n("Volume not found"), szAux, MAXPATHLEN); if (nRes == -1) THROW(ERR_CANCELED); set_szImageFilename(szAux); extractFilepathFromFullPath(get_szImageFilename(), szAux); set_szPath(szAux); extractFilenameFromFullPath(get_szImageFilename(), szAux); set_szOriginalFilename(szAux); } } nRes = pipe(nFd); if (nRes == -1) { showDebug(1, "no more pipes\n"); exit(0); } m_nFdImage = nFd[0]; // get compress level m_options.dwCompression = getCompressionLevelForImage(m_cid->get_szImageFilename()); showDebug(1, "LEVEL [%s]=%d\n", m_cid->get_szImageFilename(), m_options.dwCompression); if (m_guiRestore) m_guiRestore -> showImageFileInfo(get_szImageFilename(), m_options.dwCompression, m_options.szFullyBatchMode); // ---- MULTI-THREAD INITIALIZATION // Run the thread which read the buffer from the image file g_param.image = this; g_param.options = m_options; g_param.nFd = nFd[1]; g_bSpaceOnDisk = true; g_nThreadError = 0; //g_bFinished = false; try{ m_cid -> openReading(); } catch (CExceptions * excep) { if (excep->GetExcept() != ERR_LOCKED) throw(excep); // note: don't use THROW witch create a new CExceptions nCont = excep -> windowLocked(get_szImageFilename(), get_szPath()); switch(nCont) { case ERR_QUIT: THROW(ERR_CANCELED); case ERR_CONT: umountImageLocation(); return openReading(vh); case ERR_RETRY: strcpy(szAux, excep->getNewString()); extractFilepathFromFullPath(szAux, aux2); set_szPath(aux2); extractFilenameFromFullPath(szAux, aux2); set_szOriginalFilename(aux2); SNPRINTF(szAux, "%s/%s.%.3d", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); set_szImageFilename(szAux); umountImageLocation(); return openReading(vh); } } showDebug(1, "PTHREAD_CREATE before\n"); pthread_create(&g_threadBuffer, NULL, (void*(*)(void*))&procReadBufferFromImage, &g_param); showDebug(1, "PTHREAD_CREATE after\n"); // open stream if (m_options.dwCompression == COMPRESS_NONE) // No compression { m_fImageFile = fdopen(m_nFdImage, "rb"); if (m_fImageFile == NULL) THROW(ERR_ERRNO, errno); else showDebug(1, "no comp open\n"); } else if (m_options.dwCompression == COMPRESS_GZIP) // Gzip compression { m_gzImageFile = (gzFile *) gzdopen(m_nFdImage, "rb"); if (m_gzImageFile == NULL) THROW(ERR_ERRNO, errno); else showDebug(1, "gzip open\n"); } else if (m_options.dwCompression == COMPRESS_BZIP2) // Bzip2 compression { m_bzImageFile = BZ2_bzdopen(m_nFdImage, "rb"); if (m_bzImageFile == NULL) THROW( errno); else showDebug(1, "bzip2 open\n"); } else THROW(ERR_COMP); // ---- Check volume header CVolumeHeader headVolume; memset(&headVolume, 0, sizeof(CVolumeHeader)); try { read((char*)&headVolume, sizeof(CVolumeHeader), false); } catch ( CExceptions * excep ) { showDebug(1, "exception caught from cid::read\n"); if (excep -> GetExcept() == ERR_EOF) THROW(ERR_VOLUMEHEADER); else { showDebug(2, "exception raised from cid::read\n"); throw excep; } } // if the CVolumeInfo struct is required if (vh) memcpy(vh, &headVolume, sizeof(CVolumeHeader)); if (strcmp(headVolume.szMagicString, MAGIC_BEGIN_VOLUME) != 0) { SNPRINTF(szAux, "%s/%s.%.3d", get_szPath(), get_szOriginalFilename(), get_dwVolumeNumber()); THROW(ERR_NOTAPARTIMAGEFILE, szAux); } // ----------- check image version showDebug(4, "ImageFile version: [%s] and CURRENT_IMAGE_FORMAT=[%s]\n", headVolume.szVersion, CURRENT_IMAGE_FORMAT); if (strcmp(headVolume.szVersion, CURRENT_IMAGE_FORMAT) > 0) THROW(ERR_VERSION_NEWER, headVolume.szVersion); else if ((strcmp(headVolume.szVersion, CURRENT_IMAGE_FORMAT) < 0) && (strcmp(headVolume.szVersion, "0.6.0") != 0)) THROW(ERR_VERSION_OLDER, headVolume.szVersion); if (vh) // not the first volume -> image info RETURN; // create the identificator if this is the first volume if (get_dwVolumeNumber() == 0) set_qwIdentificator(headVolume.qwIdentificator); // no error if zero, because this field was null in older versions formats // FIXME: error if only one is zero if ((get_dwVolumeNumber() > 0) && (headVolume.qwIdentificator != get_qwIdentificator())) { showDebug(4, "The current volume doesn't fit: currentId=%llu=%llX and" " mainId=%llu=%llX\n", headVolume.qwIdentificator, headVolume.qwIdentificator, get_qwIdentificator(), get_qwIdentificator()); THROW(ERR_VOLUMEID); } if (headVolume.dwVolumeNumber != get_dwVolumeNumber()) { THROW(ERR_VOLUMENUMBER, headVolume.dwVolumeNumber, get_dwVolumeNumber()); } RETURN; } // ======================================================= int CImage::getCompressionLevelForImage(char *szFilename) { return m_cid->getCompressionLevelForImage(szFilename); } // ======================================================= /*void CImage::setGuiSave(CSavingWindow *gui) { m_guiSave = gui; } // ======================================================= void CImage::setGuiRestore(CRestoringWindow *gui) { m_guiRestore = gui; }*/ partimage-0.6.8/src/client/fs/0000777000000000000000000000000011256751523014664 5ustar rootrootpartimage-0.6.8/src/client/fs/fs_hfs.cpp0000644000000000000000000001676011252653177016650 0ustar rootroot/*************************************************************************** fs_hfs.cpp - HFS/HFS+: MacOs, Hierarchical File System ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "fs_hfs.h" #include "partimage.h" #include "imagefile.h" #include "misc.h" #include "gui_text.h" #include #define __STDC_FORMAT_MACROS #include // ======================================================= CHfsPart::CHfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CHfsPart::~CHfsPart() { BEGIN; RETURN; } // ======================================================= void CHfsPart::fsck() { BEGIN; RETURN; } // ======================================================= void CHfsPart::readSuperBlock() { BEGIN; QWORD qwBlocksInRegularAlloc; hfsSuperBlock sb, sb2; int nRes; // read superblock nRes = readData(&sb, 1024, sizeof(sb)); if (nRes == -1) { showDebug(10, "ERROR 1\n"); g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } if (Be16ToCpu(GET_WORD(&sb.drSigWord)) != HFS_SUPER_MAGIC) { showDebug(10, "ERROR 2\n"); g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } // init memset(&m_info, 0, sizeof(CInfoHfsHeader)); m_info.qwAllocCount = BeToCpu(GET_WORD(&sb.drNmAlBlks)); m_info.dwAllocSize = BeToCpu(GET_DWORD(&sb.drAlBlkSize)); m_info.dwBlocksPerAlloc = m_info.dwAllocSize / 512; m_info.qwBitmapSectLocation = (QWORD)BeToCpu(GET_WORD(&sb.drVBMSt)); m_info.qwFirstAllocBlock = (QWORD)BeToCpu(GET_WORD(&sb.drAlBlSt)); m_info.qwFreeAllocs = (QWORD)BeToCpu(GET_WORD(&sb.drFreeBks)); // if not a 512 multiple if ((m_info.dwAllocSize % 512) != 0) THROW(ERR_READING, (DWORD)0, errno); // check the last but one block is a superblock qwBlocksInRegularAlloc = m_info.dwBlocksPerAlloc * m_info.qwAllocCount; nRes = readData(&sb2, (m_info.qwFirstAllocBlock+qwBlocksInRegularAlloc)*512LL, sizeof(sb2)); if (nRes == -1) { showDebug(10, "ERROR 3\n"); g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } if (Be16ToCpu(GET_WORD(&sb.drSigWord)) != HFS_SUPER_MAGIC) { showDebug(10, "ERROR 4\n"); g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } // show infos showDebug(10, "m_info.qwAllocCount=%llu\n", m_info.qwAllocCount); showDebug(10, "m_info.dwAllocSize=%lu=%lu sectors\n", m_info.dwAllocSize, m_info.dwBlocksPerAlloc); showDebug(10, "m_info.qwBitmapSectLocation=%llu\n", m_info.qwBitmapSectLocation); showDebug(10, "m_info.qwFirstAllocBlock=%llu\n", m_info.qwFirstAllocBlock); showDebug(10, "m_info.qwFreeAllocs=%llu\n", m_info.qwFreeAllocs); // label == pascal string memset(m_header.szLabel, 0, 64); memcpy(m_header.szLabel, ((char*)&sb.drVN)+1, my_min(((BYTE*)&sb.drVN)[0], 63)); showDebug(10, "label=[%s]\n", m_header.szLabel); // calculate sectors count m_header.qwBlocksCount = m_info.qwFirstAllocBlock // first reserved (2 boot blocks, 1 superblock, ...) + (m_info.dwBlocksPerAlloc * m_info.qwAllocCount) // allocation blocks + 1 // alternate superblock + 1; // last volume of sector showDebug(10, "m_header.qwBlocksCount = %llu\n", m_header.qwBlocksCount); m_header.qwBlockSize = 512; m_header.qwBitmapSize = (m_header.qwBlocksCount+7)/8; QWORD qwUsedBlocks = m_info.qwFirstAllocBlock + 2 + ((m_info.qwAllocCount-m_info.qwFreeAllocs) * m_info.dwBlocksPerAlloc); QWORD qwFreeBlocks = m_info.qwFreeAllocs * m_info.dwBlocksPerAlloc; setSuperBlockInfos(true, true, qwUsedBlocks*512, qwFreeBlocks*512); RETURN; } // ======================================================= void CHfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; char szTemp1[1024]; getStdInfos(szText, sizeof(szText), true); SNPRINTF(szFullText, i18n("%s" // standard infos "Allocation Group count:.......%"PRIu64"\n" "Blocks per Allocation Group...%u\n" "Allocation Group size:........%s\n" "First allocation block:.......%"PRIu64"\n"), szText, m_info.qwAllocCount, m_info.dwBlocksPerAlloc, formatSize(m_info.dwAllocSize,szTemp1), m_info.qwFirstAllocBlock); g_interface->msgBoxOk(i18n("HFS informations"), szFullText); } // ======================================================= void CHfsPart::readBitmap(COptions *options) { BEGIN; QWORD qwBlocksInRegularAlloc; QWORD i, j, k; BYTE *cTempData; DWORD *dwTempData; QWORD qwCurSector; QWORD qwLastAllocSector; DWORD dwBitmapData; int nRes; // init bitmap const DWORD dwHighBit= 1<<31; showDebug(10, "m_header.qwBitmapSize=%llu\n",m_header.qwBitmapSize); m_bitmap.init(m_header.qwBitmapSize+1024); // special sectors (begin and end of volume) are used qwBlocksInRegularAlloc = m_info.dwBlocksPerAlloc * m_info.qwAllocCount; qwLastAllocSector = m_info.qwFirstAllocBlock+qwBlocksInRegularAlloc; for (i=0; i < m_info.qwFirstAllocBlock; i++) { showDebug(10, "Block [%llu] is special\n", i); m_bitmap.setBit(i, true); } showDebug(10, "Blocks [%llu] and [%llu] are special\n", qwLastAllocSector, qwLastAllocSector+1); m_bitmap.setBit(qwLastAllocSector, true); // alternate superblock m_bitmap.setBit(qwLastAllocSector+1LL, true); // last volume of sector // regular allocation blocks cTempData = (BYTE*)malloc(m_header.qwBitmapSize+1024); if (!cTempData) THROW(ERR_NOMEM); nRes = readData(cTempData, (QWORD)(3*512), m_header.qwBitmapSize+512); if (nRes == -1) { showDebug(10, "ERROR 5\n"); g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } dwTempData = (DWORD*)cTempData; qwCurSector = m_info.qwFirstAllocBlock; for (i=0; i < m_info.qwAllocCount; i+=32) { dwBitmapData = Be32ToCpu(*dwTempData); dwTempData++; for (j=0; j < 32; j++) { if (dwBitmapData & dwHighBit) // block is free { for (k=0; k < m_info.dwBlocksPerAlloc; k++, qwCurSector++) { if (qwCurSector < qwLastAllocSector) { m_bitmap.setBit(qwCurSector, true); showDebug(10, "used -> %llu\n", qwCurSector); } } } else // block is used { for (k=0; k < m_info.dwBlocksPerAlloc; k++, qwCurSector++) { if (qwCurSector < qwLastAllocSector) { m_bitmap.setBit(qwCurSector, false); showDebug(10, "free -> %llu\n", qwCurSector); } } } dwBitmapData<<=1; } } free(cTempData); calculateSpaceFromBitmap(); RETURN; } partimage-0.6.8/src/client/fs/fs_xfs.h0000644000000000000000000003340011252653177016323 0ustar rootroot/*************************************************************************** cxfspart.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_XFS_H #define FS_XFS_H #include #include #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; #define MAX_XFSBLOCKSIZE 65536 // ================================================ // do we need conversion? /* #define ARCH_NOCONVERT 1 #if __BYTE_ORDER == __LITTLE_ENDIAN #define ARCH_CONVERT 0 #else #define ARCH_CONVERT ARCH_NOCONVERT #endif // swapping macros #define swab16(x) \ ((unsigned short)( \ (((unsigned short)(x) & (unsigned short)0x00ffU) << 8) | \ (((unsigned short)(x) & (unsigned short)0xff00U) >> 8) )) #define swab32(x) \ ((unsigned int)( \ (((unsigned int)(x) & (unsigned int)0x000000ffUL) << 24) | \ (((unsigned int)(x) & (unsigned int)0x0000ff00UL) << 8) | \ (((unsigned int)(x) & (unsigned int)0x00ff0000UL) >> 8) | \ (((unsigned int)(x) & (unsigned int)0xff000000UL) >> 24) )) #define swab64(x) \ ((unsigned long long)( \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00000000000000ffULL) << 56) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x000000000000ff00ULL) << 40) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x0000000000ff0000ULL) << 24) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00000000ff000000ULL) << 8) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x000000ff00000000ULL) >> 8) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x0000ff0000000000ULL) >> 24) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0x00ff000000000000ULL) >> 40) | \ (unsigned long long)(((unsigned long long)(x) & (unsigned long long)0xff00000000000000ULL) >> 56) )) #define INT_SWAP(type, var) \ ((sizeof(type) == 8) ? swab64(var) : \ ((sizeof(type) == 4) ? swab32(var) : \ ((sizeof(type) == 2) ? swab16(var) : \ (var)))) #define INT_GET(reference,arch) \ (((arch) == ARCH_NOCONVERT) \ ? \ (reference) \ : \ INT_SWAP((reference),(reference)) \ ) */ // ================================================ #define XFS_SUPER_MAGIC 0x58465342 typedef enum { XFS_BTNUM_BNOi, XFS_BTNUM_CNTi, XFS_BTNUM_BMAPi, XFS_BTNUM_INOi, XFS_BTNUM_MAX } xfs_btnum_t; #define XFS_BBSIZE 512 #define XFS_BTNUM_BNO ((xfs_btnum_t)XFS_BTNUM_BNOi) #define XFS_BTNUM_CNT ((xfs_btnum_t)XFS_BTNUM_CNTi) #define XFS_BTNUM_BMAP ((xfs_btnum_t)XFS_BTNUM_BMAPi) #define XFS_BTNUM_INO ((xfs_btnum_t)XFS_BTNUM_INOi) #define XFS_SB_MAGIC 0x58465342 // 'XFSB' typedef int8_t __int8_t; typedef uint8_t __uint8_t; typedef int16_t __int16_t; typedef uint16_t __uint16_t; typedef int32_t __int32_t; typedef uint32_t __uint32_t; typedef int64_t __int64_t; typedef uint64_t __uint64_t; // POSIX Extensions typedef unsigned char uchar_t; typedef unsigned short ushort_t; typedef unsigned int uint_t; typedef unsigned long ulong_t; typedef enum { B_FALSE, B_TRUE } boolean_t; typedef __uint32_t xfs_agblock_t; // blockno in alloc. group typedef __uint32_t xfs_extlen_t; // extent length in blocks typedef __uint32_t xfs_agnumber_t; // allocation group number typedef __int32_t xfs_extnum_t; // # of extents in a file typedef __int16_t xfs_aextnum_t; // # extents in an attribute fork typedef __int64_t xfs_fsize_t; // bytes in a file typedef __uint64_t xfs_ufsize_t; // unsigned bytes in a file typedef __int32_t xfs_suminfo_t; // type of bitmap summary info typedef __int32_t xfs_rtword_t; // word type for bitmap manipulations typedef __int64_t xfs_lsn_t; // log sequence number typedef __int32_t xfs_tid_t; // transaction identifier typedef __uint32_t xfs_dablk_t; // dir/attr block number (in file) typedef __uint32_t xfs_dahash_t; // dir/attr hash value typedef __uint16_t xfs_prid_t; // prid_t truncated to 16bits in XFS typedef struct { unsigned char __u_bits[16]; } uuid_t; // These types are 64 bits on disk but are either 32 or 64 bits in memory. // Disk based types: typedef __uint64_t xfs_dfsbno_t; // blockno in filesystem (agno|agbno) typedef __uint64_t xfs_drfsbno_t; // blockno in filesystem (raw) typedef __uint64_t xfs_drtbno_t; // extent (block) in realtime area typedef __uint64_t xfs_dfiloff_t; // block number in a file typedef __uint64_t xfs_dfilblks_t; // number of blocks in a file typedef uint64_t xfs__u64; typedef int64_t xfs__s64; typedef xfs__u64 xfs_off_t; //typedef __s32 xfs32_off_t; typedef xfs__u64 xfs_ino_t; // type typedef xfs__s64 xfs_daddr_t; // type typedef char * xfs_caddr_t; // type typedef off_t linux_off_t; //typedef __kernel_ino_t linux_ino_t; typedef __uint32_t xfs_dev_t; #define XFS_AGF_DADDR (1) #define XFS_AGFL_DADDR (3) #define XFS_AGFL_SIZE (XFS_BBSIZE / sizeof(xfs_agblock_t)) struct xfs_agfl { xfs_agblock_t agfl_bno[XFS_AGFL_SIZE]; }; struct xfs_superblock { DWORD sb_magicnum; // magic number == XFS_SB_MAGIC DWORD sb_blocksize; // logical block size, bytes xfs_drfsbno_t sb_dblocks; // number of data blocks xfs_drfsbno_t sb_rblocks; // number of realtime blocks xfs_drtbno_t sb_rextents; // number of realtime extents uuid_t sb_uuid; // file system unique id xfs_dfsbno_t sb_logstart; // starting block of log if internal xfs_ino_t sb_rootino; // root inode number xfs_ino_t sb_rbmino; // bitmap inode for realtime extents xfs_ino_t sb_rsumino; // summary inode for rt bitmap xfs_agblock_t sb_rextsize; // realtime extent size, blocks xfs_agblock_t sb_agblocks; // size of an allocation group xfs_agnumber_t sb_agcount; // number of allocation groups xfs_extlen_t sb_rbmblocks; // number of rt bitmap blocks xfs_extlen_t sb_logblocks; // number of log blocks WORD sb_versionnum; // header version == XFS_SB_VERSION WORD sb_sectsize; // volume sector size, bytes WORD sb_inodesize; // inode size, bytes WORD sb_inopblock; // inodes per block char sb_fname[12]; // file system name BYTE sb_blocklog; // log2 of sb_blocksize BYTE sb_sectlog; // log2 of sb_sectsize BYTE sb_inodelog; // log2 of sb_inodesize BYTE sb_inopblog; // log2 of sb_inopblock BYTE sb_agblklog; // log2 of sb_agblocks (rounded up) BYTE sb_rextslog; // log2 of sb_rextents BYTE sb_inprogress; // mkfs is in progress, don't mount BYTE sb_imax_pct; // max % of fs for inode space // statistics // These fields must remain contiguous. If you really // want to change their layout, make sure you fix the // code in xfs_trans_apply_sb_deltas(). QWORD sb_icount; // allocated inodes QWORD sb_ifree; // free inodes QWORD sb_fdblocks; // free data blocks QWORD sb_frextents; // free realtime extents // End contiguous fields. xfs_ino_t sb_uquotino; // user quota inode xfs_ino_t sb_gquotino; // group quota inode WORD sb_qflags; // quota flags BYTE sb_flags; // misc. flags BYTE sb_shared_vn; // shared version number xfs_extlen_t sb_inoalignmt; // inode chunk alignment, fsblocks DWORD sb_unit; // stripe or raid unit DWORD sb_width; // stripe or raid width BYTE sb_dirblklog; // log2 of dir block size (fsbs) BYTE sb_dummy[7]; // padding }; // Short form header: space allocation btrees. // =============== xfs_alloc_btree.h ========================== /* * There are two on-disk btrees, one sorted by blockno and one sorted * by blockcount and blockno. All blocks look the same to make the code * simpler; if we have time later, we'll make the optimizations. */ #define XFS_ABTB_MAGIC 0x41425442 // 'ABTB' for bno tree #define XFS_ABTC_MAGIC 0x41425443 // 'ABTC' for cnt tree // =============== xfs_btree.h ========================== // Short form header: space allocation btrees. #define NULLAGBLOCK ((xfs_agblock_t)-1) struct xfs_btree_sblock { __uint32_t bb_magic; // magic number for block type __uint16_t bb_level; // 0 is a leaf __uint16_t bb_numrecs; // current # of data records xfs_agblock_t bb_leftsib; // left sibling block or NULLAGBLOCK xfs_agblock_t bb_rightsib; // right sibling block or NULLAGBLOCK }; typedef xfs_btree_sblock xfs_alloc_block; // Long form header: bmap btrees. // Combined header and structure, used by common code. typedef struct xfs_btree_hdr { __uint32_t bb_magic; // magic number for block type __uint16_t bb_level; // 0 is a leaf __uint16_t bb_numrecs; // current # of data records } xfs_btree_hdr_t; typedef struct xfs_btree_block { xfs_btree_hdr_t bb_h; // header union { struct { xfs_agblock_t bb_leftsib; xfs_agblock_t bb_rightsib; }s; // short form pointers struct { xfs_dfsbno_t bb_leftsib; xfs_dfsbno_t bb_rightsib; } l; // long form pointers }bb_u; // rest } xfs_btree_block_t; typedef xfs_agblock_t xfs_alloc_ptr; // btree pointer type struct xfs_alloc_rec { xfs_agblock_t ar_startblock; // starting block number xfs_extlen_t ar_blockcount; // count of free blocks };// xfs_alloc_rec_t, xfs_alloc_key_t; typedef xfs_alloc_rec xfs_alloc_key; // There are two on-disk btrees, one sorted by blockno and one sorted // by blockcount and blockno. All blocks look the same to make the code // simpler; if we have time later, we'll make the optimizations. #define XFS_ABTB_MAGIC 0x41425442 // 'ABTB' for bno tree #define XFS_ABTC_MAGIC 0x41425443 // 'ABTC' for cnt tree // =============== xfs_ag.h ================================= #define XFS_AGF_MAGIC 0x58414746 /* 'XAGF' */ #define XFS_AGI_MAGIC 0x58414749 // 'XAGI' #define XFS_AGF_VERSION 1 #define XFS_AGI_VERSION 1 // Btree number 0 is bno, 1 is cnt. This value gives the size of the // arrays below. #define XFS_BTNUM_AGF ((int)XFS_BTNUM_CNTi + 1) // The second word of agf_levels in the first a.g. overlaps the EFS // superblock's magic number. Since the magic numbers valid for EFS // are > 64k, our value cannot be confused for an EFS superblock's. struct xfs_agf { // Common allocation group header information __uint32_t agf_magicnum; // magic number == XFS_AGF_MAGIC __uint32_t agf_versionnum; // header version == XFS_AGF_VERSION xfs_agnumber_t agf_seqno; // sequence # starting from 0 xfs_agblock_t agf_length; // size in blocks of a.g. // Freespace information xfs_agblock_t agf_roots[XFS_BTNUM_AGF]; // root blocks __uint32_t agf_spare0; // spare field __uint32_t agf_levels[XFS_BTNUM_AGF]; // btree levels __uint32_t agf_spare1; // spare field __uint32_t agf_flfirst; // first freelist block's index __uint32_t agf_fllast; // last freelist block's index __uint32_t agf_flcount; // count of blocks in freelist xfs_extlen_t agf_freeblks; // total free blocks xfs_extlen_t agf_longest; // longest free space }; #define XFS_AGF_MAGICNUM 0x00000001 #define XFS_AGF_VERSIONNUM 0x00000002 #define XFS_AGF_SEQNO 0x00000004 #define XFS_AGF_LENGTH 0x00000008 #define XFS_AGF_ROOTS 0x00000010 #define XFS_AGF_LEVELS 0x00000020 #define XFS_AGF_FLFIRST 0x00000040 #define XFS_AGF_FLLAST 0x00000080 #define XFS_AGF_FLCOUNT 0x00000100 #define XFS_AGF_FREEBLKS 0x00000200 #define XFS_AGF_LONGEST 0x00000400 #define XFS_AGF_NUM_BITS 11 #define XFS_AGF_ALL_BITS ((1 << XFS_AGF_NUM_BITS) - 1) // disk block (xfs_daddr_t) in the AG //#define XFS_AGF_DADDR ((xfs_daddr_t)1) #if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_AGF_BLOCK) xfs_agblock_t xfs_agf_block(struct xfs_mount *mp); #define XFS_AGF_BLOCK(mp) xfs_agf_block(mp) #else #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR) #endif // ================================================ #define XFS_BMAP_MAGIC 0x424d4150 // 'BMAP' // ================================================ struct CInfoXfsHeader // size must be 16384 (adjust the reserved data) { DWORD dwAgCount; DWORD dwAgBlocksCount; DWORD dwReserved; BYTE cReserved[16372]; // Adjust to fit with total header size }; // ================================================ class CXfsPart: public CFSBase { public: CXfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CXfsPart(); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} void scanFreelist(xfs_agf *agf); void scanSbtree(xfs_agf *agf, DWORD dwRoot, DWORD dwLevels); void scanfuncBno(char *cBlockData, DWORD dwLevel, xfs_agf *agf); void addToHist(DWORD dwAgNo, DWORD dwAgBlockNo, QWORD qwLen); QWORD convertAgbToDaddr(DWORD dwAgNo, DWORD dwAgBlockNo); QWORD convertAgToDaddr(DWORD dwAgNo, DWORD dwOffset); private: CInfoXfsHeader m_info; }; #endif // FS_XFS_H partimage-0.6.8/src/client/fs/fs_hpfs.h0000644000000000000000000001476111252653177016474 0ustar rootroot/*************************************************************************** chpfspart.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_HPFS_H #define FS_HPFS_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; // format version of the fat image #define CURRENT_HPFS_FORMAT "0.1" /* Notation */ typedef unsigned secno; /* sector number, partition relative */ typedef secno dnode_secno; /* sector number of a dnode */ typedef secno fnode_secno; /* sector number of an fnode */ typedef secno anode_secno; /* sector number of an anode */ /* sector 0 */ /* The boot block is very like a FAT boot block, except that the 29h signature byte is 28h instead, and the ID string is "HPFS". */ #define BB_MAGIC 0xaa55 struct hpfs_boot_block { unsigned char jmp[3]; unsigned char oem_id[8]; unsigned char bytes_per_sector[2]; /* 512 */ unsigned char sectors_per_cluster; unsigned char n_reserved_sectors[2]; unsigned char n_fats; unsigned char n_rootdir_entries[2]; unsigned char n_sectors_s[2]; unsigned char media_byte; unsigned short sectors_per_fat; unsigned short sectors_per_track; unsigned short heads_per_cyl; unsigned int n_hidden_sectors; unsigned int n_sectors_l; /* size of partition */ unsigned char drive_number; unsigned char mbz; unsigned char sig_28h; /* 28h */ unsigned char vol_serno[4]; unsigned char vol_label[11]; unsigned char sig_hpfs[8]; /* "HPFS " */ unsigned char pad[448]; unsigned short magic; /* aa55 */ }; /* sector 16 */ /* The super block has the pointer to the root directory. */ #define SB_MAGIC 0xf995e849 struct hpfs_super_block { unsigned long int magic; /* f995 e849 */ unsigned long int magic1; /* fa53 e9c5, more magic? */ //unsigned huh202; /* ?? 202 = N. of B. in 1.00390625 S.*/ char version; /* version of a filesystem usually 2 */ char funcversion; /* functional version - oldest version of filesystem that can understand this disk */ unsigned short int zero; /* 0 */ fnode_secno root; /* fnode of root directory */ secno n_sectors; /* size of filesystem */ unsigned n_badblocks; /* number of bad blocks */ secno bitmaps; /* pointers to free space bit maps */ unsigned zero1; /* 0 */ secno badblocks; /* bad block list */ unsigned zero3; /* 0 */ time_t last_chkdsk; /* date last checked, 0 if never */ /*unsigned zero4;*/ /* 0 */ time_t last_optimize; /* date last optimized, 0 if never */ secno n_dir_band; /* number of sectors in dir band */ secno dir_band_start; /* first sector in dir band */ secno dir_band_end; /* last sector in dir band */ secno dir_band_bitmap; /* free space map, 1 dnode per bit */ char volume_name[32]; /* not used */ secno user_id_table; /* 8 preallocated sectors - user id */ unsigned zero6[103]; /* 0 */ }; /* sector 17 */ /* The spare block has pointers to spare sectors. */ #define SP_MAGIC 0xf9911849 struct hpfs_spare_block { unsigned magic; /* f991 1849 */ unsigned magic1; /* fa52 29c5, more magic? */ unsigned dirty: 1; /* 0 clean, 1 "improperly stopped" */ /*unsigned flag1234: 4;*/ /* unknown flags */ unsigned sparedir_used: 1; /* spare dirblks used */ unsigned hotfixes_used: 1; /* hotfixes used */ unsigned bad_sector: 1; /* bad sector, corrupted disk (???) */ unsigned bad_bitmap: 1; /* bad bitmap */ unsigned fast: 1; /* partition was fast formatted */ unsigned old_wrote: 1; /* old version wrote to partion */ unsigned old_wrote_1: 1; /* old version wrote to partion (?) */ unsigned install_dasd_limits: 1; /* HPFS386 flags */ unsigned resynch_dasd_limits: 1; unsigned dasd_limits_operational: 1; unsigned multimedia_active: 1; unsigned dce_acls_active: 1; unsigned dasd_limits_dirty: 1; unsigned flag67: 2; unsigned char mm_contlgulty; unsigned char unused; secno hotfix_map; /* info about remapped bad sectors */ unsigned n_spares_used; /* number of hotfixes */ unsigned n_spares; /* number of spares in hotfix map */ unsigned n_dnode_spares_free; /* spare dnodes unused */ unsigned n_dnode_spares; /* length of spare_dnodes[] list, follows in this block*/ secno code_page_dir; /* code page directory block */ unsigned n_code_pages; /* number of code pages */ /*unsigned large_numbers[2];*/ /* ?? */ unsigned super_crc; /* on HPFS386 and LAN Server this is checksum of superblock, on normal OS/2 unused */ unsigned spare_crc; /* on HPFS386 checksum of spareblock */ unsigned zero1[15]; /* unused */ dnode_secno spare_dnodes[100]; /* emergency free dnode list */ unsigned zero2[1]; /* room for more? */ }; // ================================================ struct CInfoHpfsHeader // size must be 16384 (adjust the reserved data) { DWORD dwBitmapPointer; DWORD dwBitmapQuadBlocksCount; char cHpfsVersion; BYTE cReserved1[7]; BYTE cReserved[16368]; // Adjust to fit with total header size }; // ================================================ class CHpfsPart : public CFSBase { public: CHpfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CHpfsPart(); static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: int getBitmapQuadBlocksCount(DWORD *dwBitmapQuadBlocksCount); private: CInfoHpfsHeader m_info; }; #endif // FS_HPFS_H partimage-0.6.8/src/client/fs/fs_ufs.cpp0000644000000000000000000002122011252653177016650 0ustar rootroot/*************************************************************************** fs_ufs.cpp - UFS (Unix File System) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ /* + Be aware: (the block for partimage) == (a frag for FFS) For example, (FFS blocks are 8192 bytes) while (FFS frags == pi blocks == 1024 bytes) + Mounting FFS under Linux: mount -t ufs -o ro,ufstype=44bsd /dev/xxx /mnt/point */ #include #include #include #define __STDC_FORMAT_MACROS #include #include "fs_ufs.h" #include "partimage.h" // ======================================================= CUfsPart::CUfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CUfsPart::~CUfsPart() { BEGIN; RETURN; } // ======================================================= void CUfsPart::fsck() { BEGIN; RETURN; } // ======================================================= void CUfsPart::readSuperBlock() { BEGIN; ufsSuperBlock sb; int nRes; // init memset(&m_info, 0, sizeof(CInfoUfsHeader)); // 0. read super block nRes = readData(&sb, SBOFF, sizeof(sb)); if (nRes == -1) THROW(ERR_ERRNO, errno); showDebug(10, "sizeof(sb)=%d\n", sizeof(sb)); showDebug(10, "sb.fs_sblkno=%llu\n",(QWORD)sb.fs_sblkno); showDebug(10, "sb.fs_cblkno=%llu // offset of cyl-block in filesys\n", (QWORD)sb.fs_cblkno); showDebug(10, "sb.fs_iblkno=%llu // offset of inode-blocks in filesys\n", (QWORD)sb.fs_iblkno); showDebug(10, "sb.fs_dblkno=%llu // offset of first data after cg\n", (QWORD)sb.fs_dblkno); showDebug(10, "sb.fs_cgoffset=%llu // cylinder group offset in cylinder\n", (QWORD)sb.fs_cgoffset); showDebug(10, "sb.fs_size=%llu // number of blocks (frag ?) in fs\n", (QWORD)sb.fs_size); showDebug(10, "sb.fs_dsize=%llu // number of data blocks (frag ?) in fs\n", (QWORD)sb.fs_dsize); showDebug(10, "sb.fs_ncg=%llu // number of cylinder groups\n", (QWORD)sb.fs_ncg); showDebug(10, "sb.fs_bsize=%llu // size of basic blocks in fs\n", (QWORD)sb.fs_bsize); showDebug(10, "sb.fs_fsize=%llu // size of frag blocks in fs\n", (QWORD)sb.fs_fsize); showDebug(10, "sb.fs_frag=%llu // number of frags in a block in fs\n", (QWORD)sb.fs_frag); showDebug(10, "sb.fs_cssize=%llu\n", (QWORD)sb.fs_cssize); showDebug(10, "sb.fs_fshift=%llu\n", (QWORD)sb.fs_fshift); showDebug(10, "sb.fs_csaddr=%llu // blk addr of cyl grp summary area\n", (QWORD)sb.fs_csaddr); showDebug(10, "sb.fs_maxbpg=%llu // max number of blks per cyl group\n", (QWORD)sb.fs_maxbpg); showDebug(10, "sb.fs_cgsize=%llu // cylinder group size (in basic blocks)\n", (QWORD)sb.fs_cgsize); showDebug(10, "\n"); //showDebug(10, "sb.=%llu\n", (QWORD)sb.); //showDebug(10, "sb.=%llu\n", (QWORD)sb.); m_header.qwBlockSize = sb.fs_fsize; m_header.qwBlocksCount = sb.fs_size; m_header.qwBitmapSize = (m_header.qwBlocksCount+7)/8; m_info.dwCylinderGroupsCount = sb.fs_ncg; m_info.fs_fpg = sb.fs_fpg; m_info.fs_cgoffset = sb.fs_cgoffset; m_info.fs_cgmask = sb.fs_cgmask; m_info.fs_cblkno = sb.fs_cblkno; m_info.dwFragsPerBlock = sb.fs_frag; m_info.dwCylinderGroupSize = sb.fs_cgsize; m_info.dwBasicBlockSize = sb.fs_bsize; m_info.qwDataFrags = sb.fs_dsize; RETURN; } // ======================================================= void CUfsPart::readBitmap(COptions *options) { BEGIN; cylinderGroupHeader *cgp; BYTE cBuffer[65536]; QWORD qwStatsFreeFrags; QWORD qwStatsUsedFrags; DWORD dwCurBmpSize; DWORD dwCgBmpSize; QWORD qwUgcMin; DWORD i, j; int nRes; // init bitmap -> all blocks marked as used (1) m_bitmap.init(m_header.qwBitmapSize+1024); for (i=0; i < m_header.qwBlocksCount; i++) m_bitmap.setBit(i, true); cgp = new cylinderGroupHeader[m_info.dwCylinderGroupsCount]; if (!cgp) THROW(ERR_NOMEM); dwCurBmpSize = 0; QWORD qwCurStart = 0; qwStatsFreeFrags = 0; // process all cylinder groups for (i=0; i < m_info.dwCylinderGroupsCount; i++) { qwUgcMin = ufs_cgcmin(m_info.fs_fpg,m_info.fs_cgoffset,m_info.fs_cgmask,m_info.fs_cblkno,i); showDebug(10, "\nCGC[%d] stored in block (frag ?) %llu\n", i, qwUgcMin); nRes = readData(&(cgp[i]), qwUgcMin*m_header.qwBlockSize, sizeof(cylinderGroupHeader)); if (nRes == -1) THROW(ERR_ERRNO, errno); if ((DWORD)cgp[i].cg_magic != (DWORD)CG_MAGIC) { showDebug(10, "ERROR: %d not a cylinder group header\n", i); THROW(ERR_ERRNO, errno); } showDebug(10, " from %llu to %llu\n", (QWORD)qwCurStart, (QWORD)qwCurStart+cgp[i].cg_ndblk); //showDebug(10, "cgh[%d].cg_magic=%.8x (CG_MAGIC=%.8x)\n",i,(DWORD)cgp[i].cg_magic, (DWORD)CG_MAGIC); //showDebug(10, "cgh[%d].cg_cgx=%lu // CG number\n",i,(DWORD)cgp[i].cg_cgx); showDebug(10, "cgh[%d].cg_ndblk=%lu // blocks (frag) in this CG\n",i,(DWORD)cgp[i].cg_ndblk); showDebug(10, "cgh[%d].cg_freeoff=%lu // free block map\n",i,(DWORD)cgp[i].cg_freeoff); showDebug(10, "cgh[%d].cg_cs.cs_ndir=%lu // stats: number of directories\n",i,(DWORD)cgp[i].cg_cs.cs_ndir); showDebug(10, "cgh[%d].cg_cs.cs_nbfree=%lu // stats: number of free blocks\n",i,(DWORD)cgp[i].cg_cs.cs_nbfree); showDebug(10, "cgh[%d].cg_cs.cs_nifree=%lu // stats: number of free inodes\n",i,(DWORD)cgp[i].cg_cs.cs_nifree); showDebug(10, "cgh[%d].cs_cs.cs_nffree=%lu // stats: number of free frags\n",i,(DWORD)cgp[i].cg_cs.cs_nffree); showDebug(10, "cgh[%d].cg_rotor=%lu // position of last used block\n",i,(DWORD)cgp[i].cg_rotor); showDebug(10, "cgh[%d].cg_frotor=%lu // position of last used frag\n",i,(DWORD)cgp[i].cg_frotor); showDebug(10, "cgh[%d].cg_irotor=%lu // position of last used inode \n",i,(DWORD)cgp[i].cg_irotor); showDebug(10, "cgh[%d].cg_nclusterblks=%lu // number of clusters this cg\n",i,(DWORD)cgp[i].cg_nclusterblks); //showDebug(10, "cgh[%d].=%lu // \n",i,(DWORD)cgp[i].); //showDebug(10, "cgh[%d].=%lu // \n",i,(DWORD)cgp[i].); qwStatsFreeFrags += (m_info.dwFragsPerBlock * cgp[i].cg_cs.cs_nbfree) + cgp[i].cg_cs.cs_nffree; dwCgBmpSize = (((DWORD)cgp[i].cg_ndblk)+7)/8; if (dwCgBmpSize > sizeof(cBuffer)) { showDebug(1, "UFS: buffer too small: have %lu, need %lu\n", sizeof(cBuffer), dwCgBmpSize); delete []cgp; THROW(ERR_ERRNO); } showDebug(10, "dwCgBmpSize=%lu\n",(DWORD)dwCgBmpSize); // copy and convert bitmap nRes = readData(cBuffer, ((qwUgcMin*m_header.qwBlockSize) + (DWORD)cgp[i].cg_freeoff), dwCgBmpSize); for (j=0; j < dwCgBmpSize; j++) cBuffer[j] = ~cBuffer[j]; memcpy(m_bitmap.data()+dwCurBmpSize, cBuffer, dwCgBmpSize); dwCurBmpSize += dwCgBmpSize; qwCurStart += (QWORD)cgp[i].cg_ndblk; } qwStatsUsedFrags = m_header.qwBlocksCount - qwStatsFreeFrags; setSuperBlockInfos(true, true, qwStatsUsedFrags*m_header.qwBlockSize, qwStatsFreeFrags*m_header.qwBlockSize); delete []cgp; // fill informations about free/used clusters count calculateSpaceFromBitmap(); RETURN; } // ======================================================= void CUfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; char szTemp1[1024]; getStdInfos(szText, sizeof(szText), true); SNPRINTF(szFullText, i18n("%s" // standard infos "Cylinder groups count:........%u\n" "Cylinder group size:..........%s\n" "Basic blocks per CG:..........%u\n" "Basic block size:.............%u\n" "Data frags count:.............%"PRIu64"\n"), szText, m_info.dwCylinderGroupsCount, formatSize(m_info.dwCylinderGroupSize*m_info.dwBasicBlockSize,szTemp1), m_info.dwCylinderGroupSize, m_info.dwBasicBlockSize, m_info.qwDataFrags); g_interface->msgBoxOk(i18n("UFS informations"), szFullText); } partimage-0.6.8/src/client/fs/fs_afs.cpp0000644000000000000000000002215311252653177016632 0ustar rootroot/*************************************************************************** fs_afs.cpp - AtheOS File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "fs_afs.h" #include "partimage.h" #include "imagefile.h" // ======================================================= CAfsPart::CAfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CAfsPart::~CAfsPart() { BEGIN; RETURN; } // ======================================================= void CAfsPart::fsck() { BEGIN; RETURN; } // ======================================================= void CAfsPart::readBitmap(COptions *options) { BEGIN; //DWORD i, j, k; int nRes; //char cBuffer[8192]; DWORD dwWordsPerBlock; DWORD dwBlocksPerGroup; QWORD qwCurBlock; // init dwWordsPerBlock = m_header.qwBlockSize/4; qwCurBlock = 0LL; dwBlocksPerGroup = m_info.dwBlockPerGroup / (m_header.qwBlockSize * 8); // init bitmap size nRes = m_bitmap.init(m_header.qwBitmapSize); if (nRes == -1) goto error_readBitmap; // init to false: because real code not implemented //for (i=0; i < m_header.qwBlocksCount; i++) // m_bitmap.setBit(i, true); // ****************************************************************************** /*for (i=0; i < m_header.qwBlocksCount; ++i) { int nGroup = nBlock / psVolume->av_psSuperBlock->as_nBlockPerGroup; int nStart = nBlock % psVolume->av_psSuperBlock->as_nBlockPerGroup; bool bFree; panBlock = afs_alloc_block_buffer( psVolume ); if ( panBlock == NULL ) { printk( "Error: afs_is_block_free() no memory for bitmap block\n" ); return( false ); } if ( afs_logged_read( psVolume, panBlock, psVolume->av_nBitmapStart + nGroup ) < 0 ) { printk( "Panic: afs_is_block_free() failed to load bitmap block\n" ); return( false ); } if ( panBlock[ nStart / 32 ] & (1 << (nStart % 32)) ) { bFree = false; } else { bFree = true; } }*/ // ****************************************************************************** /*for ( i = 0 ; i < m_info.dwAllocGroupCount * dwBlocksPerGroup ; ++i ) { nRes = readData(cBuffer, (m_info.qwBitmapStart+i)*m_header.qwBlockSize, m_header.qwBlockSize); memcpy(m_bitmap.data()+(i*m_header.qwBlockSize), cBuffer, m_header.qwBlockSize); for ( j = 0 ; j < dwWordsPerBlock ; ++j ) { for ( k = 0 ; k < 32 ; ++k ) { if ( (cBuffer[j] & (1L << k)) != 0 ) { //nCount++; m_bitmap.setBit(qwCurBlock++, true); } else m_bitmap.setBit(qwCurBlock++, false); } } }*/ // ****************************************************************************** nRes = readData(m_bitmap.data(), m_info.qwBitmapStart, m_header.qwBitmapSize); if (nRes == -1) goto error_readBitmap; calculateSpaceFromBitmap(); showDebug(1, "end success\n"); RETURN; // auccess error_readBitmap: showDebug(1, "end error\n"); g_interface->msgBoxError(i18n("There was an error while reading the bitmap")); THROW(ERR_READ_BITMAP); } /* // ======================================================= bool afs_is_block_free(QWORD nBlock) { uint32* panBlock; int nGroup = nBlock / psVolume->av_psSuperBlock->as_nBlockPerGroup; int nStart = nBlock % psVolume->av_psSuperBlock->as_nBlockPerGroup; bool bFree; panBlock = afs_alloc_block_buffer( psVolume ); if ( panBlock == NULL ) { printk( "Error: afs_is_block_free() no memory for bitmap block\n" ); return( false ); } if ( afs_logged_read( psVolume, panBlock, psVolume->av_nBitmapStart + nGroup ) < 0 ) { printk( "Panic: afs_is_block_free() failed to load bitmap block\n" ); return( false ); } if ( panBlock[ nStart / 32 ] & (1 << (nStart % 32)) ) { bFree = false; } else { bFree = true; } afs_free_block_buffer( psVolume, panBlock ); return( bFree ); }*/ // ======================================================= /*off_t afs_count_used_blocks( AfsVolume_s* psVolume ) // code from AFS kernel { AfsSuperBlock_s* psSuperBlock = psVolume->av_psSuperBlock; const int nBlockSize = psSuperBlock->as_nBlockSize; const int nBlocksPerGroup = psSuperBlock->as_nBlockPerGroup / (nBlockSize * 8); const int nWordsPerBlock = nBlockSize / 4; uint32* panBlock; off_t nCount = 0; int i; panBlock = afs_alloc_block_buffer( psVolume ); for ( i = 0 ; i < psSuperBlock->as_nAllocGroupCount * nBlocksPerGroup ; ++i ) { int j; int nError; nError = afs_logged_read( psVolume, panBlock, psVolume->av_nBitmapStart + i ); for ( j = 0 ; j < nWordsPerBlock ; ++j ) { int k; if ( panBlock[j] == 0 ) { continue; } if ( panBlock[j] == ~0 && i * nWordsPerBlock * 32 + j*32 + 32 < psSuperBlock->as_nNumBlocks ) { nCount += 32; continue; } for ( k = 0 ; k < 32 ; ++k ) { if ( i * nWordsPerBlock * 32 + j*32 + k >= psSuperBlock->as_nNumBlocks ) { if ( (panBlock[j] & (1L << k)) == 0 ) { printk( "Panic: afs_count_used_blocks() block past the partition-end are marked as free\n" ); } // break; } else { if ( (panBlock[j] & (1L << k)) != 0 ) { nCount++; } } } } } afs_free_block_buffer( psVolume, panBlock ); return( nCount ); }*/ // ======================================================= void CAfsPart::readSuperBlock() { BEGIN; QWORD qwFreeBlocks; CAfsSuper sb; int nRes; // init memset(&m_info, 0, sizeof(CInfoAfsHeader)); // 0. go to the beginning of the super block nRes = readData(&sb, AFS_SUPERBLOCK_OFFSET, sizeof(sb)); if (nRes == -1) goto error_readSuperBlock; if (CpuToLe32(sb.as_nMagic1) != SUPER_BLOCK_MAGIC1) goto error_readSuperBlock; if (CpuToLe32(sb.as_nMagic2) != SUPER_BLOCK_MAGIC2) goto error_readSuperBlock; // take infos from superblock m_info.dwByteOrder = sb.as_nByteOrder; m_info.dwBlockShift = sb.as_nBlockShift; m_info.dwBlockPerGroup = sb.as_nBlockPerGroup; m_info.dwAllocGrpShift = sb.as_nAllocGrpShift; m_info.dwAllocGroupCount = sb.as_nAllocGroupCount; m_info.dwFlags = sb.as_nFlags; m_info.dwBootLoaderSize = sb.as_nBootLoaderSize; // virtual blocks used in the abstract CFSBase m_header.qwBlocksCount = (DWORD)sb.as_nNumBlocks; showDebug(1, "qwBlocksCount=%llu\n", m_header.qwBlocksCount); m_header.qwBlockSize = (DWORD)sb.as_nBlockSize; showDebug(1, "qwBlockSize=%llu\n", m_header.qwBlockSize); m_header.qwBitmapSize = ((m_header.qwBlocksCount+7)/ 8)+1024; m_header.qwUsedBlocks = sb.as_nUsedBlocks; showDebug(1, "qwUsedBlocks%llu\n", m_header.qwUsedBlocks); // get bitmap position /*DWORD a, b, c; a = (m_info.dwBootLoaderSize*m_header.qwBlockSize + AFS_SUPERBLOCK_SIZE + 1024 + m_header.qwBlockSize - 1) / m_header.qwBlockSize; b = (m_info.dwBootLoaderSize*m_header.qwBlockSize + AFS_SUPERBLOCK_SIZE + 1024 + m_header.qwBlockSize) / m_header.qwBlockSize; c = (m_info.dwBootLoaderSize*m_header.qwBlockSize + AFS_SUPERBLOCK_SIZE + 1024 + m_header.qwBlockSize + 1) / m_header.qwBlockSize; showDebug(1, "a=%lu\n", a); showDebug(1, "b=%lu\n", b); showDebug(1, "c=%lu\n", c); */ m_info.qwBitmapStart = (m_info.dwBootLoaderSize*m_header.qwBlockSize + AFS_SUPERBLOCK_SIZE + 1024 + m_header.qwBlockSize - 1) / m_header.qwBlockSize; qwFreeBlocks = m_header.qwBlocksCount-m_header.qwUsedBlocks; setSuperBlockInfos(false, false, m_header.qwUsedBlocks*m_header.qwBlockSize, qwFreeBlocks * m_header.qwBlockSize); showDebug(1, "end success\n"); RETURN; error_readSuperBlock: g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_WRONG_FS); } // ======================================================= void CAfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; *(szText) = '\0'; getStdInfos(szText, sizeof(szText), false); SNPRINTF(szFullText, i18n("%s" // standard infos "Allocation groups count:......%u\n" "Byte order:...................%u\n" "Blocks per group:.............%u\n" "Boot loader size:.............%u blocks\n"), szText, m_info.dwAllocGroupCount, m_info.dwByteOrder, m_info.dwBlockPerGroup, m_info.dwBootLoaderSize); g_interface->msgBoxOk(i18n("AFS informations"), szFullText); } partimage-0.6.8/src/client/fs/fs_reiser.cpp0000644000000000000000000001232511252653177017352 0ustar rootroot/*************************************************************************** creiserpart.cpp - Reiser (Journalized) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "fs_reiser.h" #include "partimage.h" #include "imagefile.h" #include "misc.h" #include "gui_text.h" // ======================================================= CReiserPart::CReiserPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CReiserPart::~CReiserPart() { BEGIN; RETURN; } // ======================================================= void CReiserPart::fsck() { BEGIN; RETURN; } // ======================================================= void CReiserPart::readBitmap(COptions *options) { BEGIN; DWORD i; DWORD dwBlock; BYTE cBuffer[MAX_REISER_BLOCK_SIZE+1]; int nRes; DWORD dwOffset; // init bitmap size m_bitmap.init(m_header.qwBitmapSize); //printf ("\nBitmap blocks are: "); // copy bitmap blocks to bitmap in memory for (i = 0; i < m_info.dwBitmapBlocksCount; i ++) { // We don't use fssek(dwCurrentBlock, SEEK_SET) after bitmap block 1, because fseek is // limited to 2 GB (because offset is long int). Then, we try to use an ossfet which can // fit in this long int. Then we only seek from the last bitmap block if (i == 0) { dwBlock = (REISERFS_DISK_OFFSET_IN_BYTES / m_header.qwBlockSize) + 1; // Skipped blocks + super block nRes = fseek(m_fDeviceFile, (long) (dwBlock * m_header.qwBlockSize), SEEK_SET); showDebug(9, "REISER_BITMAP #0: %lld\n", (dwBlock*m_header.qwBlockSize)); } else if (i == 1) { dwBlock = i * m_header.qwBlockSize * 8; nRes = fseek(m_fDeviceFile, (long) (dwBlock * m_header.qwBlockSize), SEEK_SET); showDebug(9, "REISER_BITMAP #1: %lld\n", (dwBlock*m_header.qwBlockSize)); } else // (i > 1) { dwBlock = i * m_header.qwBlockSize * 8; dwOffset = ((m_header.qwBlockSize * 8) - 1) * m_header.qwBlockSize; nRes = fseek(m_fDeviceFile, (long) dwOffset, SEEK_CUR); showDebug(9, "REISER_BITMAP #%ld: previous+%lld\n", i, (long) dwOffset); } // go to the beginning of the block if (nRes == -1) // result of the fseek() THROW(ERR_ERRNO, errno); // read bitmap from disk errno = 0; nRes = fread(cBuffer, m_header.qwBlockSize, 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_READ_BITMAP, i); // write bitmap in memory memcpy(m_bitmap.data()+(i*m_header.qwBlockSize), cBuffer, m_header.qwBlockSize); } calculateSpaceFromBitmap(); RETURN; } // ======================================================= void CReiserPart::printfInformations() { char szText[8192]; getStdInfos(szText, sizeof(szText), true); g_interface->msgBoxOk(i18n("ReiserFS informations"), szText); } // ======================================================= void CReiserPart::readSuperBlock() { BEGIN; reiserfs_super_block sb; int nRes; // init memset(&m_info, 0, sizeof(CInfoReiserHeader)); // 0. go to the beginning of the super block nRes = readData(&sb, REISERFS_DISK_OFFSET_IN_BYTES, sizeof(sb)); if (nRes == -1) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD) 0, errno); } // check the magic number is good if (strncmp(sb.s_magic, REISERFS_SUPER_MAGIC_STRING, strlen(REISERFS_SUPER_MAGIC_STRING)) == 0) m_info.dwVersion = VER_3_5; else if (strncmp(sb.s_magic, REISER2FS_SUPER_MAGIC_STRING, strlen(REISER2FS_SUPER_MAGIC_STRING)) == 0) m_info.dwVersion = VER_3_6; else THROW(ERR_WRONG_FS); // 2. calculate infos m_info.dwBitmapBlocksCount = LeToCpu(sb.s_bmap_nr); m_header.qwBlockSize = LeToCpu(sb.s_blocksize); m_header.qwUsedBlocks = LeToCpu(sb.s_block_count) - LeToCpu(sb.s_free_blocks); m_header.qwBlocksCount = LeToCpu(sb.s_block_count); m_header.qwBitmapSize = LeToCpu(sb.s_bmap_nr) * m_header.qwBlockSize; memset(m_header.szLabel, 0, 64); // check data if ((m_header.qwBlockSize % 512 != 0) || (m_header.qwBlockSize < 512)) THROW(ERR_WRONG_FS); if (m_header.qwUsedBlocks > m_header.qwBlocksCount) THROW(ERR_WRONG_FS); setSuperBlockInfos(true, true, m_header.qwUsedBlocks * m_header.qwBlockSize, (m_header.qwBlocksCount - m_header.qwUsedBlocks) * m_header.qwBlockSize); RETURN; } partimage-0.6.8/src/client/fs/fs_afs.h0000644000000000000000000000653011252653177016300 0ustar rootroot/*************************************************************************** fs_afs.h - AtheOS File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_AFS_H #define FS_AFS_H #include "partimage.h" #include "fs_base.h" #include // ================================================ #define AFS_SUPERBLOCK_SIZE 1024 #define AFS_SUPERBLOCK_OFFSET 1024 #define SUPER_BLOCK_MAGIC1 0x41465331 /* AFS1 */ #define SUPER_BLOCK_MAGIC2 0xdd121031 #define SUPER_BLOCK_MAGIC3 0x15b6830e // ================================================ #define afsint32 long #define afsuint32 DWORD #define BlockRun_s DWORD // ================================================ struct CAfsSuper { char as_zName[32]; afsint32 as_nMagic1; // @32 afsint32 as_nByteOrder; afsuint32 as_nBlockSize; afsuint32 as_nBlockShift; off_t as_nNumBlocks; off_t as_nUsedBlocks; afsint32 as_nInodeSize; afsint32 as_nMagic2; // @68 afsint32 as_nBlockPerGroup; // Number of blocks per allocation group (Max 65536) afsint32 as_nAllocGrpShift; // Number of bits to shift a group number to get a byte address. afsint32 as_nAllocGroupCount; afsint32 as_nFlags; BlockRun_s as_sLogBlock; off_t as_nLogStart; int as_nValidLogBlocks; int as_nLogSize; afsint32 as_nMagic3; BlockRun_s as_sRootDir; // Root dir inode. BlockRun_s as_sDeletedFiles; // Directory containing files scheduled for deletion. BlockRun_s as_sIndexDir; // Directory of index files. int as_nBootLoaderSize; afsint32 as_anPad[7]; }; // ================================================ struct CInfoAfsHeader // size must be 16384 (adjust the reserved data) { DWORD dwByteOrder; DWORD dwBlockShift; DWORD dwBlockPerGroup; // Number of blocks per allocation group (Max 65536) DWORD dwAllocGrpShift; // Number of bits to shift a group number to get a byte address. DWORD dwAllocGroupCount; DWORD dwFlags; DWORD dwBootLoaderSize; QWORD qwBitmapStart; BYTE cReserved[16384]; // Adjust to fit with total header size }; // ================================================ class CAfsPart : public CFSBase { public: CAfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CAfsPart(); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: int testRoot(int a, int b); bool doesGroupHasSuper(int nGroupDescNb); private: CInfoAfsHeader m_info; }; #endif // FS_AFS_H partimage-0.6.8/src/client/fs/fs_jfs.cpp0000644000000000000000000005327411252653177016653 0ustar rootroot/*************************************************************************** cjfspart.cpp - JFS (IBM XIA Journalized) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include #include "fs_jfs.h" #include "partimage.h" #include "imagefile.h" #include "misc.h" #include "gui_text.h" void showInodeInfos(CJfsDiskInode ino); void showBmapInfos(dbmap_t cntl_page); void printLocation(DWORD dwAdress, DWORD dwBlockSize, char *szObject); // ======================================================= CJfsPart::CJfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CJfsPart::~CJfsPart() { BEGIN; RETURN; } // ======================================================= void CJfsPart::fsck() { BEGIN; RETURN; // TODO: check for bad blocks // SUCCESS } // ======================================================= /* NAME: ujfs_rwdaddr * FUNCTION: read/write offset from/to an inode * lbno - logical block number */ int CJfsPart::ujfs_rwdaddr(s64 *offset, xtpage_t *page, s64 lbno) { BEGIN; s32 lim, base, index; s32 cmp, rc; char buffer[PSIZE]; s64 offset64; descend: // Binary search for(base = XTENTRYSTART, lim = page->header.nextindex - XTENTRYSTART; lim; lim >>=1) { //showDebug(10, " lim = %ld\n", lim); index = base + (lim >> 1); offset64 = offsetXAD(&(page->xad[index])); cmp = (lbno >= offset64 + lengthXAD(&(page->xad[index]))) ? 1 : (lbno < offset64) ? -1 : 0; if (cmp == 0) { // HIT! if (page->header.flag & BT_LEAF) { *offset = (addressXAD(&(page->xad[index])) + (lbno - offsetXAD(&(page->xad[index])))) * m_header.qwBlockSize; //fs_block_size; RETURN_int(0); } else { rc = readData(buffer, addressXAD(&(page->xad[index])) * m_header.qwBlockSize, PSIZE); if (rc) RETURN_int(-1); page = (xtpage_t *)buffer; goto descend; } } else if (cmp > 0) { base = index + 1; --lim; } } if (page->header.flag & BT_INTERNAL) { /* Traverse internal page, it might hit down there * If base is non-zero, decrement base by one to get the parent * entry of the child page to search. */ index = base ? base - 1 : base; //rc = ujfs_rw_diskblocks(addressXAD(&(page->xad[index])) * m_header.qwBlockSize, PSIZE, buffer); rc = readData(buffer, addressXAD(&(page->xad[index])) * m_header.qwBlockSize, PSIZE); if (rc) { //fprintf(stderr, "Internal error: %s(%d): Error reading btree node\n", __FILE__, __LINE__); RETURN_int(rc); } page = (xtpage_t *)buffer; goto descend; } /* Not found! */ //fprintf(stderr, "Internal error: %s(%d): Block %lld not found!\n", __FILE__, __LINE__, lbno); RETURN_int(EINVAL); } // ======================================================= int CJfsPart::find_iag(u32 iagnum, s64 *address, DWORD dwType) { BEGIN; s32 base; char buffer[PSIZE]; s32 cmp; CJfsDiskInode fileset_inode; s64 fileset_inode_address; s64 iagblock; s32 index; s32 lim; xtpage_t *page; s32 rc; //int l2bsize = log2(m_header.qwBlockSize); //#define IAGTOLBLK(iagno,l2nbperpg) (((iagno) + 1) << (l2nbperpg)) //iagblock = (((iagnum) + 1) << (L2PSIZE-l2bsize)) //IAGTOLBLK(iagnum, L2PSIZE-l2bsize); //iagblock = IAGTOLBLK(iagnum, L2PSIZE-l2bsize); // vraie definition iagblock = (((iagnum) + 1) * (PSIZE/m_header.qwBlockSize)); // def sans log2 /*if ( which_table == AGGREGATE_2ND_I ) { fileset_inode_address = AIT_2nd_offset + sizeof(dinode_t); } else*/ fileset_inode_address = AGGR_INODE_TABLE_START + (/*which_table*/ /*FILESYSTEM_I*/ /* AGGREGATE_I*/ dwType * sizeof(CJfsDiskInode)); //showDebug(10, "fileset_inode_address=%lld\n",fileset_inode_address); //showDebug(10, "AGGR_INODE_TABLE_START=%ld\n",(long)AGGR_INODE_TABLE_START); //showDebug(10, "FILESYSTEM_I=%ld\n",(long)FILESYSTEM_I); //showDebug(10, "sizeof(CJfsDiskInode)=%ld\n",(long)sizeof(CJfsDiskInode)); //OLDCALL: rc = xRead(fileset_inode_address, sizeof(CJfsDiskInode), (char *)&fileset_inode); rc = readData((char *)&fileset_inode, fileset_inode_address, sizeof(CJfsDiskInode)); if (rc) RETURN_int(-1); showDebug(10, "----------Fileset inode infos (offset: %lld)-----------\n", fileset_inode_address); showInodeInfos(fileset_inode); page = (xtpage_t *)&(fileset_inode.di_btroot); descend: // Binary search for (base = XTENTRYSTART, lim = __le16_to_cpu(page->header.nextindex) - XTENTRYSTART; lim; lim >>=1) { showDebug(10, "lim=%ld\n",lim); index = base + (lim >> 1); XT_CMP(cmp, iagblock, &(page->xad[index])); if (cmp == 0) { // HIT! if (page->header.flag & BT_LEAF) { *address = (addressXAD(&(page->xad[index])) + (iagblock - offsetXAD(&(page->xad[index])))) * m_header.qwBlockSize; //<< l2bsize; RETURN_int(0); // success } else { //OLDCALL: rc = xRead( addressXAD(&(page->xad[index])) * m_header.qwBlockSize /*<< l2bsize*/, PSIZE, buffer); rc = readData(buffer, addressXAD(&(page->xad[index])) * m_header.qwBlockSize /*<< l2bsize*/, PSIZE); if (rc) RETURN_int(-1); page = (xtpage_t *)buffer; goto descend; } } else if (cmp > 0) { base = index + 1; --lim; } } if (page->header.flag & BT_INTERNAL) { // Traverse internal page, it might hit down there // If base is non-zero, decrement base by one to get the parent // entry of the child page to search. index = base ? base - 1 : base; //OLDCALL: rc = xRead(addressXAD(&(page->xad[index])) * m_header.qwBlockSize /*<< l2bsize*/, PSIZE, buffer); rc = readData(buffer, addressXAD(&(page->xad[index])) * m_header.qwBlockSize /*<< l2bsize*/, PSIZE); if (rc) RETURN_int(-1); page = (xtpage_t *)buffer; goto descend; } // Not found! RETURN_int(-1); } // ======================================================= int CJfsPart::find_inode(u32 inum, QWORD *qwAddress, DWORD dwType) { BEGIN; showDebug(10, "findInode(%lu, %llu)\n", inum, qwAddress); s32 extnum; iag_t iag; s32 iagnum; s64 map_address; s32 rc; iagnum = INOTOIAG(inum); extnum = (inum & (INOSPERIAG -1)) >> L2INOSPEREXT; if (find_iag(iagnum, &map_address, dwType) == -1) RETURN_int(-1); // error showDebug(10, "extnum=%ld and map_address=%lld\n", extnum, map_address); //rc = ujfs_rw_diskblocks(fd, map_address, sizeof(iag_t), &iag, GET); rc = readData(&iag, map_address, sizeof(iag_t)); if (rc) RETURN_int(-1); // error if (iag.inoext[extnum].len == 0) RETURN_int(-1); // error *qwAddress = (addressPXD(&iag.inoext[extnum]) * m_header.qwBlockSize /*<< l2bsize*/) + ((inum & (INOSPEREXT-1)) * sizeof(CJfsDiskInode/*dinode_t*/)); RETURN_int(0); // success } // ======================================================= int CJfsPart::readDmap(QWORD *qwPage, xtpage_t *page, QWORD qwBlocksToProcess) { BEGIN; dmap_t dmap; int nRes; s64 addr; static DWORD dwCurPos = 0; QWORD qwTemp; while (qwBlocksToProcess > 0) { nRes = ujfs_rwdaddr(&addr, page, (s64)(*qwPage)); if (nRes != 0) RETURN_int(-1); //OLDCALL: nRes = xRead(addr, sizeof(dmap), (char *)&dmap); nRes = readData((char *)&dmap, addr, sizeof(dmap)); if (nRes != 0) RETURN_int(-1); qwTemp = my_min(qwBlocksToProcess, (QWORD)8192LL); showDebug(10, "--- Dmap page %lu - *qwPage=%llu and qwProcess=%llu\n",(DWORD)(dwCurPos/1024), *qwPage, qwTemp); showDebug(10, "nblocks=%lu\n",(DWORD)dmap.nblocks); showDebug(10, "nfree=%lu\n",(DWORD)dmap.nfree); if (dmap.nblocks != dmap.nfree) showDebug(10, "nused=%lu\n",(DWORD)(dmap.nblocks-dmap.nfree)); showDebug(10, "start=%llu\n",(QWORD)dmap.start); // write bitmap in memory copyAndTransformDword((DWORD*)(m_bitmap.data()+dwCurPos), (DWORD*)dmap.wmap, 256); dwCurPos += 1024; (*qwPage)++; qwBlocksToProcess -= qwTemp; } RETURN_int(0); // success } // ======================================================= int CJfsPart::browseBitmap(QWORD *qwPage, xtpage_t *page, DWORD dwLevel, QWORD qwBlocksToProcess) { BEGIN; dmapctl_t cntl_page; s64 cntl_addr; int nRes; DWORD i; QWORD qwTemp; QWORD qwHandledBlocksSubLevel; // calculate blocks count handled by the sublevel qwHandledBlocksSubLevel = 8192; // handled blocks by level 0 for (i=0; i < dwLevel; i++) qwHandledBlocksSubLevel <<= 10; // dwHandledBlocks *= 1024; showDebug(10, "\n----\nEnter in level %lu and qwPage=%llu and qwHandledBlocksSubLevel=%llu and qwBlocksToProcess=%llu\n", dwLevel, *qwPage, qwHandledBlocksSubLevel, qwBlocksToProcess); //while (qwBlocksToProcess > 0) // { // Read first child nRes = ujfs_rwdaddr(&cntl_addr, page, (s64)(*qwPage)); if (nRes != 0) RETURN_int(0); printLocation(cntl_addr, m_header.qwBlockSize, "control_page"); //OLDCALL: nRes = xRead(cntl_addr, sizeof(cntl_page), (char *)&cntl_page); nRes = readData((char *)&cntl_page, cntl_addr, sizeof(cntl_page)); if (nRes != 0) RETURN_int(0); (*qwPage)++; showDebug(10, "\n-----\n"); showDebug(10, "nleafs=%ld\n", cntl_page.nleafs); showDebug(10, "l2nleafs=%ld\n", cntl_page.l2nleafs); showDebug(10, "leafidx=%ld\n", cntl_page.leafidx); showDebug(10, "height=%ld\n", cntl_page.height); showDebug(10, "budmin=%d\n", cntl_page.budmin); showDebug(10, "stree[0]=%d\n", cntl_page.stree[0]); showDebug(10, "-----\n\n"); /*for (j=341; j < (1024+341); j++) { if (cntl_page.stree[j]>0) { showDebug(10, "stree[%lu]=%d\n", j, cntl_page.stree[j]); } } */ while (qwBlocksToProcess > 0) { if (dwLevel == 0) // current level is a control 0 level { nRes = readDmap(qwPage, page, qwBlocksToProcess); qwBlocksToProcess = 0; if (nRes == -1) RETURN_int(-1); } else // current level is a control (1 or 2) level { qwTemp = my_min(qwBlocksToProcess, qwHandledBlocksSubLevel); nRes = browseBitmap(qwPage, page, dwLevel-1, qwTemp); qwBlocksToProcess -= qwTemp; if (nRes == -1) RETURN_int(-1); } } RETURN_int(0); // success } // ======================================================= void CJfsPart::readBitmap(COptions *options) { BEGIN; CJfsDiskInode ino; QWORD address; xtpage_t *page; s64 cntl_addr; dbmap_t cntl_page; QWORD i; int nRes; // Read block allocation map Inode //OLDCALL: if (find_inode(BMAP_I, &address, AGGREGATE_I) || xRead(address, sizeof(CJfsDiskInode), (char *)&ino)) if (find_inode(BMAP_I, &address, AGGREGATE_I) || readData((char *)&ino, address, sizeof(CJfsDiskInode))) { showDebug(1, "JFS Error in find_inode(BMAP_I, &address, AGGREGATE_I) or readData((char *)&ino, address, sizeof(CJfsDiskInode))\n"); THROW(ERR_READ_BITMAP); } showDebug(10, "ADRESS of Inode2 = %llu\n", address); showDebug(10, "----------Bitmap inode infos-----------\n"); showInodeInfos(ino); page = (xtpage_t *)&(ino.di_btroot); // Read overall control page for the map //OLDCALL: if (ujfs_rwdaddr(&cntl_addr, page, (s64)0) || xRead(cntl_addr, sizeof(dbmap_t), (char *)&cntl_page)) if (ujfs_rwdaddr(&cntl_addr, page, (s64)0) || readData((char *)&cntl_page, cntl_addr, sizeof(dbmap_t))) { showDebug(1, "JFS Error in ujfs_rwdaddr(&cntl_addr, page, (s64)0) || readData((char *)&cntl_page, %lld, sizeof(dbmap_t))\n", cntl_addr); THROW(ERR_READ_BITMAP); } showDebug(10, "\nOverall block allocation map control page at block %llu\n\n", cntl_addr / m_header.qwBlockSize /*>> l2bsize*/); readData(&cntl_page, cntl_addr, sizeof(cntl_page)); showBmapInfos(cntl_page); m_info.qwMappedBlocksByBitmap = cntl_page.dn_mapsize; // init bitmap m_bitmap.init(m_header.qwBitmapSize+1024); //m_info.qwOfficialBlocksCount = (sb.s_size * sb.s_pbsize) / sb.s_bsize; //m_info.qwOfficialBitmapSize = (m_info.qwOfficialBlocksCount+7)/8; // round up m_info.dwAllocTreeMaxLevel = cntl_page.dn_maxlevel; //cntl_page.dn_aglevel; showDebug(10, "m_info.dwAllocTreeMaxLevel=%lu\n", m_info.dwAllocTreeMaxLevel); QWORD qwRootCtrlPagePos = 1+(2 - m_info.dwAllocTreeMaxLevel); // page 0 = bmap, page 1 = Level2Root, page 2 = Level1Root, page 3 = Lavel0Root showDebug(10, "qwRootCtrlPagePos=%llu\n", qwRootCtrlPagePos); nRes = browseBitmap(&qwRootCtrlPagePos, //1 /* tree root = 1 node only */, page, m_info.dwAllocTreeMaxLevel /* level */, m_info.qwMappedBlocksByBitmap); if (nRes) { showDebug(1, "JFS Error in browseBitmap(&qwRootCtrlPagePos, page, %lu, %llu\n", m_info.dwAllocTreeMaxLevel, m_info.qwMappedBlocksByBitmap); THROW(ERR_READ_BITMAP); } // copy data at the end of the partition (unofficial blocks) for (i=m_info.qwMappedBlocksByBitmap; i < m_header.qwBlocksCount; i++) m_bitmap.setBit(i, true); // fill informations about free/used clusters count calculateSpaceFromBitmap(); RETURN; } // ======================================================= void CJfsPart::readSuperBlock() { BEGIN; jfs_superblock sb; int nRes; // init memset(&m_info, 0, sizeof(CInfoJfsHeader)); // 0. go to the beginning of the super block nRes = fseek(m_fDeviceFile, SUPER1_OFF, SEEK_SET); if (nRes == -1) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD) 0L, errno); } // 1. read and print important informations nRes = fread(&sb, sizeof(jfs_superblock), 1, m_fDeviceFile); if (nRes != 1) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD) 0L, errno); } // check the magic number is good if (strncmp(sb.s_magic, JFS_MAGIC_STRING, strlen(JFS_MAGIC_STRING)) != 0) THROW(ERR_WRONG_FS); // check for block size if (sb.s_bsize != 4096) { showDebug(1, "Only 4096 bytes per block volumes are supported. Current one is %lu bytes/block", (DWORD)sb.s_bsize); //g_interface -> msgBoxError(szTemp); THROW(ERR_BLOCKSIZE, "JFS", (DWORD)sb.s_bsize); } // Label memcpy(m_header.szLabel, sb.s_fpack, 11); // block informations m_header.qwBlockSize = sb.s_bsize; m_info.qwOfficialBlocksCount = (sb.s_size * sb.s_pbsize) / sb.s_bsize; m_header.qwBlocksCount = (m_qwPartSize) / m_header.qwBlockSize; m_header.qwBitmapSize = (m_header.qwBlocksCount+7)/8; // round up showDebug(10, "JFS Hardware blocks count: [%llu]\n", m_header.qwBlocksCount); //showDebug(10, "JFS Official blocks count: [%llu]\n", m_info.qwOfficialBlocksCount); showDebug(10, "JFS Block size: [%llu]\n", m_header.qwBlockSize); showDebug(10, "JFS Label:[%s]\n", m_header.szLabel); //m_info.qwHardwareBlocksCount = (m_qwPartSize) / m_header.qwBlockSize; //showDebug(10, "JFS Hardware blocks count: [%llu]\n", (m_qwPartSize) / m_header.qwBlockSize); //m_info.qwHardwareBlocksCount); showDebug(10, "JFS Official blocks count: [%llu]\n", m_info.qwOfficialBlocksCount); //showDebug(10, "JFS Block size: [%llu]\n", m_header.qwBlockSize); showDebug(10, "\n=========== SUPER BLOCK =========\n"); showDebug(10, "totalUsable.....%llu\n",(QWORD)sb.totalUsable); showDebug(10, "minFree.........%llu\n", (QWORD)sb.minFree); showDebug(10, "realFree........%llu\n", (QWORD)sb.realFree); setSuperBlockInfos(false, false, 0, (QWORD)(sb.totalUsable*((QWORD)1024))); RETURN; } // ======================================================= void showInodeInfos(CJfsDiskInode ino) { showDebug(10, "di_inostamp:........0x%.8x\n",(DWORD)ino.di_inostamp); showDebug(10, "di_fileset:.........%ld\n",ino.di_fileset); showDebug(10, "di_number:..........%lu\n",(DWORD)ino.di_number); showDebug(10, "di_gen:.............%lu\n",(DWORD)ino.di_gen); showDebug(10, "di_ixpxd.len:.......%lu\n",(DWORD)ino.di_ixpxd.len); showDebug(10, "di_ixpxd.addr1:.....0x%.2x\n",(BYTE)ino.di_ixpxd.addr1); showDebug(10, "di_ixpxd.addr1:.....0x%.8x\n",(DWORD)ino.di_ixpxd.addr2); showDebug(10, "di_ixpxd.address:...%llu\n",(QWORD)addressXAD2(ino.di_ixpxd)); showDebug(10, "di_size:............0x%.16x\n",(QWORD)ino.di_size); showDebug(10, "di_nblocks:.........0x%.16x\n",(QWORD)ino.di_nblocks); showDebug(10, "di_nlink::..........%lu\n",(DWORD)ino.di_nlink); showDebug(10, "di_uid:.............%lu\n",(QWORD)ino.di_uid); showDebug(10, "di_gid:.............%lu\n",(QWORD)ino.di_gid); showDebug(10, "di_mode:............0x%.8x\n",(DWORD)ino.di_mode); } // ======================================================= void showBmapInfos(dbmap_t cntl_page) { showDebug(10, "[1] dn_mapsize:\t\t0x%011llx = %llu\t", cntl_page.dn_mapsize, cntl_page.dn_mapsize); showDebug(10, "[9] dn_agheigth:\t%d\n", cntl_page.dn_agheigth); showDebug(10, "[2] dn_nfree:\t\t0x%011llx\t", cntl_page.dn_nfree); showDebug(10, "[10] dn_agwidth:\t%d\n", cntl_page.dn_agwidth); showDebug(10, "[3] dn_l2nbperpage:\t%d\t\t", cntl_page.dn_l2nbperpage); showDebug(10, "[11] dn_agstart:\t%d\n", cntl_page.dn_agstart); showDebug(10, "[4] dn_numag:\t\t%d\t\t", cntl_page.dn_numag); showDebug(10, "[12] dn_agl2size:\t%d\n", cntl_page.dn_agl2size); showDebug(10, "[5] dn_maxlevel:\t%d\t\t", cntl_page.dn_maxlevel); showDebug(10, "[13] dn_agfree:\t\ttype 'f'\n"); showDebug(10, "[6] dn_maxag:\t\t%d\t\t", cntl_page.dn_maxag); showDebug(10, "[14] dn_agsize:\t\t%lld\n", cntl_page.dn_agsize); showDebug(10, "[7] dn_agpref:\t\t%d\t\t", cntl_page.dn_agpref); showDebug(10, "[15] pad:\t\tNot Displayed\n"); showDebug(10, "[8] dn_aglevel:\t\t%d\n", cntl_page.dn_aglevel); } // ======================================================= void CJfsPart::printfInformations() { BEGIN; char szText[8192]; getStdInfos(szText, sizeof(szText), true); g_interface->msgBoxOk(i18n("JFS informations"), szText); RETURN; } // ======================================================= void printLocation(DWORD dwAdress, DWORD dwBlockSize, char *szObject) { DWORD dwBlock, dwOff; dwOff = dwAdress % dwBlockSize; dwBlock = (dwAdress - dwOff) / dwBlockSize; showDebug(10, "adress of %s is %lu = block %lu + offset %lu\n", szObject, dwAdress, dwBlock, dwOff); } // ======================================================= void copyAndTransformDword(DWORD *dwDest, DWORD *dwSource, DWORD dwElemCount) { BEGIN; DWORD i, j; DWORD dwTmp, dwTmp2; for (i=0; i < dwElemCount; i++) { dwTmp2 = 0; dwTmp = dwSource[i]; for (j=0; j < 32; j++) { dwTmp2 <<= 1; if (dwTmp & 1) dwTmp2 |= 1; dwTmp >>= 1; } dwDest[i] = dwTmp2; //showDebug(10, "tansf %.8X to %.8X\n", dwSource[i], dwDest[i]); } RETURN; } // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // ======================================================= void CJfsPart::printInodeWhoseOwnerIs(DWORD dwOwner) // FOR DEBUG ONLY { BEGIN; DWORD i; CJfsDiskInode ino; QWORD address; xtpage_t *page; s64 cntl_addr; for (i=0; i < 512; i++) { // Read block allocation map Inode //OLDCALL: if (find_inode(i, &address, FILESYSTEM_I) || xRead(address, sizeof(CJfsDiskInode), (char *)&ino)) if (find_inode(i, &address, FILESYSTEM_I) || readData((char *)&ino, address, sizeof(CJfsDiskInode))) { debugWin("Error 1"); RETURN; } if (ino.di_uid == dwOwner) { showDebug(10, "ADRESS of Inode = %llu\n", address); showDebug(10, "----------Debug: inode infos-----------\n"); showInodeInfos(ino); page = (xtpage_t *)&(ino.di_btroot); for (i=0; i < 1000; i++) { if (ujfs_rwdaddr(&cntl_addr, page, (s64)i) == 0) showDebug(10, "BLOCK_ADRESS[%lu]: offset %lld = block %lu\n",(DWORD)i, cntl_addr, (cntl_addr / m_header.qwBlockSize)); } RETURN; } } RETURN; } // ======================================================= void CJfsPart::printFileBlocks(DWORD dwInode) // FOR DEBUG ONLY { BEGIN; CJfsDiskInode ino; QWORD address; xtpage_t *page; s64 cntl_addr; DWORD i; // Read block allocation map Inode //OLDCALL: if (find_inode(dwInode, &address, FILESYSTEM_I) || xRead(address, sizeof(CJfsDiskInode), (char *)&ino)) if (find_inode(dwInode, &address, FILESYSTEM_I) || readData((char *)&ino, address, sizeof(CJfsDiskInode))) { debugWin("Error 1"); RETURN; } showDebug(10, "ADRESS of Inode = %llu\n", address); showDebug(10, "----------Debug: inode infos-----------\n"); showInodeInfos(ino); page = (xtpage_t *)&(ino.di_btroot); for (i=0; i < 1000; i++) { if (ujfs_rwdaddr(&cntl_addr, page, (s64)i) == 0) showDebug(10, "BLOCK_ADRESS[%lu]: offset %lld = block %lu\n",(DWORD)i, cntl_addr, (cntl_addr / m_header.qwBlockSize)); } RETURN; } partimage-0.6.8/src/client/fs/fs_xfs.cpp0000644000000000000000000002430111252653177016656 0ustar rootroot/*************************************************************************** cxfspart.cpp - XFS (SGI IRIX) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include #include "fs_xfs.h" #include "partimage.h" #include "imagefile.h" #include "misc.h" #include "gui_text.h" // ======================================================= CXfsPart::CXfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CXfsPart::~CXfsPart() { BEGIN; RETURN; } // ======================================================= void CXfsPart::fsck() { BEGIN; RETURN; } // ======================================================= QWORD CXfsPart::convertAgToDaddr(DWORD dwAgNo, DWORD dwOffset) { return (convertAgbToDaddr(dwAgNo, 0)+((QWORD)dwOffset)*((QWORD)XFS_BBSIZE)); } // ======================================================= QWORD CXfsPart::convertAgbToDaddr(DWORD dwAgNo, DWORD dwAgBlockNo) { QWORD qwFSBlock; qwFSBlock = (((QWORD)dwAgNo)*((QWORD)m_info.dwAgBlocksCount))+((QWORD)dwAgBlockNo); return (qwFSBlock * m_header.qwBlockSize); } // ======================================================= void CXfsPart::readBitmap(COptions *options) { BEGIN; int nRes; DWORD i; QWORD j; xfs_agf agf; // init bitmap -> all blocks marked as used (1) m_bitmap.init(m_header.qwBitmapSize+1024); for (j=0; j < m_header.qwBlocksCount; j++) m_bitmap.setBit(j, true); // ---- process allocation groups // 1. go to the beginning of the disk nRes = fseek(m_fDeviceFile, 0, SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); // 2. loop for each AG of the file system for (i=0; i < m_info.dwAgCount; i++) { nRes = readData(&agf, convertAgToDaddr(i, XFS_AGF_DADDR), sizeof(xfs_agf)); if (nRes == -1) THROW(ERR_ERRNO, errno); if (((DWORD)BeToCpu(agf.agf_magicnum)) != XFS_AGF_MAGIC) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } showDebug(3, "\n\n== ALLOCATION GROUP %lu ===\nagf_flfirst=%lu\nagf_fllast=%lu\nagf_flcount=%lu\nagf_freeblks=%lu\nagf_longest=%lu\n" "agf_roots[0]=%lu and agf_roots[1]=%lu\nagf_levels[0]=%lu and agf_levels[1]=%lu\n", (DWORD)i, (DWORD)BeToCpu(agf.agf_flfirst), (DWORD)BeToCpu(agf.agf_fllast), (DWORD)BeToCpu(agf.agf_flcount), (DWORD)BeToCpu(agf.agf_freeblks), (DWORD)BeToCpu(agf.agf_longest), (DWORD)BeToCpu(agf.agf_roots[0]), (DWORD)BeToCpu(agf.agf_roots[1]), (DWORD)BeToCpu(agf.agf_levels[0]), (DWORD)BeToCpu(agf.agf_levels[1])); scanFreelist(&agf); scanSbtree(&agf, BeToCpu(agf.agf_roots[XFS_BTNUM_BNO]), BeToCpu(agf.agf_levels[XFS_BTNUM_BNO])); } // fill informations about free/used clusters count calculateSpaceFromBitmap(); RETURN; } // ======================================================= void CXfsPart::scanFreelist(xfs_agf *agf) { DWORD dwAgNo = BeToCpu(agf->agf_seqno); xfs_agfl agfl; DWORD dwBlockNo; DWORD i; if (BeToCpu(agf->agf_flcount) == 0) return; readData(&agfl, convertAgToDaddr(dwAgNo, XFS_AGFL_DADDR), sizeof(agfl)); // process list i = BeToCpu(agf->agf_flfirst); for (;;) { dwBlockNo = BeToCpu(agfl.agfl_bno[i]); addToHist(dwAgNo, dwBlockNo, 1); if (i == BeToCpu(agf->agf_fllast)) break; if (++i == XFS_AGFL_SIZE) i = 0; } } // ======================================================= void CXfsPart::scanSbtree(xfs_agf *agf, DWORD dwRoot, DWORD dwLevels) { char cBuffer[MAX_XFSBLOCKSIZE]; readData(cBuffer, convertAgbToDaddr(BeToCpu(agf->agf_seqno), dwRoot), m_header.qwBlockSize); scanfuncBno(cBuffer, dwLevels - 1, agf); } // ======================================================= void CXfsPart::scanfuncBno(char *cBlockData, DWORD dwLevel, xfs_agf *agf) { xfs_alloc_block *block = (xfs_alloc_block *)cBlockData; //ablock; xfs_alloc_ptr *pp; xfs_alloc_rec *rp; DWORD i; //showDebug(10, "scanfuncBno(cBlockData, dwLevel=%lu);\n", dwLevel); if (dwLevel == 0) { //rp = XFS_BTREE_REC_ADDR(mp->m_sb.sb_blocksize, xfs_alloc, block, 1, mp->m_alloc_mxr[0]); rp = (xfs_alloc_rec*) (cBlockData+sizeof(xfs_alloc_block)); for (i = 0; i < BeToCpu(block->bb_numrecs); i++) addToHist(BeToCpu(agf->agf_seqno), BeToCpu(rp[i].ar_startblock), BeToCpu(rp[i].ar_blockcount)); } else { //pp = XFS_BTREE_PTR_ADDR(mp->m_sb.sb_blocksize, xfs_alloc, block, 1, mp->m_alloc_mxr[1]); showDebug(1, "TREE: multilevel: dwLevel=%lu\n",dwLevel); showDebug(10, "TREE: multilevel: dwLevel=%lu\n",dwLevel); int nVal = (int)((m_header.qwBlockSize - (uint)sizeof(xfs_alloc_block)) / ((uint)sizeof(xfs_alloc_key) + (uint)sizeof(xfs_alloc_ptr))); pp = (xfs_alloc_ptr*) (cBlockData+sizeof(xfs_alloc_block)+(nVal*sizeof(xfs_alloc_key))); // /*mp->m_alloc_mxr[1]*/ showDebug(1, "offset=%lu\n",sizeof(xfs_alloc_block)+(nVal*sizeof(xfs_alloc_key))); showDebug(10, "offset=%lu\n",sizeof(xfs_alloc_block)+(nVal*sizeof(xfs_alloc_key))); for (i = 0; i < BeToCpu(block->bb_numrecs); i++) { showDebug(10, "LEVELRECUR: i=%lu, pp=%lu\n", i, (DWORD)pp[i]); scanSbtree(agf, BeToCpu(pp[i]), dwLevel); } } } // ======================================================= void CXfsPart::addToHist(DWORD dwAgNo, DWORD dwAgBlockNo, QWORD qwLen) { BEGIN; QWORD i; QWORD qwBase; showDebug(3, "%8d %8d %8llu\n", dwAgNo, dwAgBlockNo, qwLen); qwBase = (((QWORD)dwAgNo) * ((QWORD)m_info.dwAgBlocksCount)) + ((QWORD)dwAgBlockNo); for (i=0; i < qwLen; i++) m_bitmap.setBit(qwBase+i, false); RETURN; } // ======================================================= void CXfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; char szTemp1[1024]; getStdInfos(szText, sizeof(szText), true); SNPRINTF(szFullText, i18n("%s" // standard infos "Allocation Group count:.......%u\n" "Blocks per Allocation Group...%u\n" "Allocation Group size:........%s\n"), szText, m_info.dwAgCount, m_info.dwAgBlocksCount, formatSize(m_info.dwAgBlocksCount*m_header.qwBlockSize,szTemp1)); g_interface->msgBoxOk(i18n("XFS informations"), szFullText); } // ======================================================= void CXfsPart::readSuperBlock() { BEGIN; xfs_superblock sb; int nRes; char szTemp1[4096], szTemp2[4096], szTemp3[4096]; QWORD qwFreeSpace, qwUsedSpace; // init memset(&m_info, 0, sizeof(CInfoXfsHeader)); // 0. go to the beginning of the super block nRes = fseek(m_fDeviceFile, 0, SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); // 1. read and print important informations nRes = fread(&sb, sizeof(xfs_superblock), 1, m_fDeviceFile); if (nRes != 1) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } // 2. check it's an XFS file system if (BeToCpu(sb.sb_magicnum) != XFS_SUPER_MAGIC) { g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_READING, (DWORD)0, errno); } // ---- blocks m_header.qwBlockSize = (QWORD)BeToCpu(sb.sb_blocksize); showDebug(3, "SUPER: sb_blocksize=m_header.qwBlockSize=%llu\n", m_header.qwBlockSize); // check for block size if (m_header.qwBlockSize != ((QWORD)4096)) { showDebug(1, "Only 4096 bytes per block volumes are supported. Current one is %lu bytes/block", (DWORD)m_header.qwBlockSize); //g_interface -> msgBoxError(szTemp); THROW(ERR_BLOCKSIZE, "XFS", (DWORD)m_header.qwBlockSize); } m_header.qwBlocksCount = (QWORD)BeToCpu(sb.sb_dblocks); showDebug(3, "SUPER: sb_dblocks=m_header.qwBlocksCount=%llu\n", m_header.qwBlocksCount); m_header.qwUsedBlocks = m_header.qwBlocksCount - (QWORD)BeToCpu(sb.sb_fdblocks); //swapNb((QWORD)sb.sb_fdblocks); showDebug(3, "SUPER: m_header.qwUsedBlocks=%llu\n", m_header.qwUsedBlocks); m_info.dwAgCount = (DWORD)BeToCpu(sb.sb_agcount); showDebug(3, "SUPER: sb_agcount=m_info.dwAgCount=%lu\n", m_info.dwAgCount); m_info.dwAgBlocksCount = (DWORD)BeToCpu(sb.sb_agblocks); showDebug(3, "SUPER: m_info.dwAgBlocksCount=%lu\n", m_info.dwAgBlocksCount); showDebug(3, "SUPER: Allocation group size: %lu blocks = %s\n", m_info.dwAgBlocksCount, formatSize(m_info.dwAgBlocksCount*m_header.qwBlockSize,szTemp1)); // ---- space informations qwFreeSpace = (m_header.qwBlocksCount - m_header.qwUsedBlocks) * m_header.qwBlockSize; qwUsedSpace = m_header.qwUsedBlocks * m_header.qwBlockSize; showDebug(3, "SUPER: total: %s\nused: %s\nfree: %s\n", formatSize(m_header.qwBlockSize * m_header.qwBlocksCount, szTemp1), formatSize(qwUsedSpace, szTemp2), formatSize(qwFreeSpace, szTemp3)); showDebug(3, "SUPER: sb_rbmblocks=%lu\n",(DWORD)BeToCpu(sb.sb_rbmblocks)); // ---- calculate infos //m_header.qwBlockSize = (QWORD)m_info.dwBlockSize; //m_header.qwUsedBlocks = m_info.qwBlocksCount - m_info.qwFreeBlocksCount; //swapNb((QWORD)sb.sb_fdblocks); //m_header.qwBlocksCount = m_info.qwBlocksCount; m_header.qwBitmapSize = (m_header.qwBlocksCount+7)/8; //sb.s_bmap_nr * m_header.qwBlockSize; memset(m_header.szLabel, 0, 64); setSuperBlockInfos(true, true, qwUsedSpace, qwFreeSpace); RETURN; } // ======================================================= char* blocknum(char *szBuffer, DWORD dwBn) { if (dwBn != NULLAGBLOCK) sprintf(szBuffer, "%u", dwBn); else sprintf(szBuffer, "NULLAGBLOCK"); return szBuffer; } partimage-0.6.8/src/client/fs/fs_reiser.h0000644000000000000000000001031011252653177017007 0ustar rootroot/*************************************************************************** creiserpart.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_REISER_H #define FS_REISER_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; #define REISERFS_SUPER_MAGIC_STRING "ReIsErFs" #define REISER2FS_SUPER_MAGIC_STRING "ReIsEr2Fs" #define REISER4FS_SUPER_MAGIC_STRING "ReIsEr4" #define REISERFS_DISK_OFFSET_IN_BYTES (64 * 1024) #define REISER4FS_DISK_OFFSET_IN_BYTES (64 * 1024) #define MAX_REISER_BLOCK_SIZE 8192 #define VER_3_5 1 #define VER_3_6 2 #define VER_4_0 3 // ================================================ struct reiserfs_super_block { /*__uu32*/ DWORD s_block_count; /* blocks count */ /*__uu32*/ DWORD s_free_blocks; /* free blocks count */ /*__uu32*/ DWORD s_root_block; /* root block number */ /*__uu32*/ DWORD s_journal_block; /* journal block number */ /*__uu32*/ DWORD s_journal_dev; /* journal device number */ /*__uu32*/ DWORD s_orig_journal_size; /* size of the journal on FS creation. used to make sure they don't overflow it */ /*__uu32*/ DWORD s_journal_trans_max ; /* max number of blocks in a transaction. */ /*__uu32*/ DWORD s_journal_block_count ; /* total size of the journal. can change over time */ /*__uu32*/ DWORD s_journal_max_batch ; /* max number of blocks to batch into a trans */ /*__uu32*/ DWORD s_journal_max_commit_age ; /* in seconds, how old can an async commit be */ /*__uu32*/ DWORD s_journal_max_trans_age ; /* in seconds, how old can a transaction be */ /*__uu16*/ WORD s_blocksize; /* block size */ /*__uu16*/ WORD s_oid_maxsize; /* max size of object id array, see get_objectid() commentary */ /*__uu16*/ WORD s_oid_cursize; /* current size of object id array */ /*__uu16*/ WORD s_state; /* valid or error */ char s_magic[12]; /* reiserfs magic string indicates that file system is reiserfs */ /*__uu32*/ DWORD s_hash_function_code; /* indicate, what hash fuction is being use to sort names in a directory*/ /*__uu16*/ WORD s_tree_height; /* height of disk tree */ /*__uu16*/ WORD s_bmap_nr; /* amount of bitmap blocks needed to address each block of file system */ /*__uu16*/ WORD s_reserved; }; #define SB_SIZE (sizeof(struct reiserfs_super_block)) // ================================================ struct CInfoReiserHeader // size must be 16384 (adjust the reserved data) { DWORD dwVersion; DWORD dwBitmapBlocksCount; BYTE cReserved[16376]; // Adjust to fit with total header size }; // ================================================ class CReiserPart: public CFSBase { public: CReiserPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CReiserPart(); static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: CInfoReiserHeader m_info; }; #endif // FS_REISER_H partimage-0.6.8/src/client/fs/fs_fat.cpp0000644000000000000000000003002311252653177016626 0ustar rootroot/*************************************************************************** cfatpart.cpp - FAT (File Allocation Table DOS) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "fs_fat.h" #include "partimage.h" #include // ======================================================= CFatPart::CFatPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CFatPart::~CFatPart() { BEGIN; RETURN; } // ======================================================= void CFatPart::fsck() { BEGIN; try { compareFatCopies(); } catch ( CExceptions * excep ) { throw excep; } RETURN; } // ======================================================= // -1: error // false: no differences between FATs // true: differences between FATs void CFatPart::compareFatCopies() { BEGIN; int nResult; int nRes; DWORD dwReservedBytes; const DWORD dwBufSize = 256*1024; char cCompBuf1[dwBufSize]; char cCompBuf2[dwBufSize]; QWORD qwFatSize; QWORD qwPtr1, qwPtr2; DWORD dwTemp; QWORD qwToDo; if (m_info.cNumberOfFATs < 2) RETURN; // init nResult = 0; dwReservedBytes = m_info.wReservedSectorsCount * m_info.wBytesPerSector; if (m_info.dwFileSystem == FS_FAT16) // if FAT16 qwFatSize = (QWORD)m_info.dwClustersCount*2LL; else if (m_info.dwFileSystem == FS_FAT32) // if FAT32 qwFatSize = (QWORD)m_info.dwClustersCount*4LL; else THROW(ERR_WRONG_FS); qwPtr1 = (QWORD)dwReservedBytes; qwPtr2 = (QWORD)dwReservedBytes+(m_info.dwSectorsPerFAT*m_info.wBytesPerSector); qwToDo = qwFatSize; while (qwToDo > 0) { dwTemp = (DWORD)my_min((QWORD)dwBufSize, qwToDo); nRes = readData(cCompBuf1, qwPtr1, dwTemp); if (nRes == -1) THROW(ERR_READING, (DWORD)qwPtr1, errno); nRes = readData(cCompBuf2, qwPtr2, dwTemp); if (nRes == -1) THROW(ERR_READING, (DWORD)qwPtr2, errno); if (memcmp(cCompBuf1, cCompBuf2, dwTemp) != 0) { showDebug(1, "FAT_COMPARE: differences found\n"); THROW(ERR_FAT_MISMATCH); } qwPtr1 += (QWORD)dwTemp; qwPtr2 += (QWORD)dwTemp; qwToDo -= (QWORD)dwTemp; } showDebug(1, "FAT_COMPARE: no differences found\n"); RETURN; } // ======================================================= void CFatPart::printfInformations() { char szText[8192]; char szFullText[8192]; getStdInfos(szText, sizeof(szText), false); SNPRINTF(szFullText, i18n("%s" // standard infos "Sector Size...................%u\n" "Sectors per cluster...........%u\n" "Reserved Sectors count........%u\n" "Root directory sectors........%u\n" "FAT tables count..............%u\n" "Total Sectors Count...........%u\n" "Sectors per FAT...............%u\n" "Clusters count:...............%u\n" "Used clusters.................%u\n" "Free clusters.................%u\n" "Damaged clusters..............%u\n"), szText, m_info.wBytesPerSector, m_info.cSectorsPerCluster, m_info.wReservedSectorsCount, m_info.dwRootDirSectors, m_info.cNumberOfFATs,m_info.dwTotalSectorsCount, m_info.dwSectorsPerFAT, m_info.dwClustersCount, m_info.dwUsedClusters, m_info.dwFreeClusters, m_info.dwDamagedClusters); g_interface->msgBoxOk(i18n("FAT informations"), szFullText); } // ======================================================= void CFatPart::readBitmap(COptions *options) { BEGIN; DWORD i, j; DWORD dwCurSect; int nRes; DWORD dwReservedBytes; WORD wFat16Entry; DWORD dwFat32Entry; // init m_bitmap.init(/*m_info.dwTotalSectorsCount*/m_header.qwBitmapSize+1024); dwCurSect = 0; m_info.dwUsedClusters = 0; m_info.dwFreeClusters = 0; // ---- A) the reserved sectors are used for (i=0; i < m_info.wReservedSectorsCount; i++,dwCurSect++) m_bitmap.setBit(dwCurSect, true); // ---- B) the FAT tables are on used sectors for (j=0; j < m_info.cNumberOfFATs; j++) for (i=0; i < m_info.dwSectorsPerFAT; i++,dwCurSect++) m_bitmap.setBit(dwCurSect, true); // ---- C) The rootdirectory is on used sectors if (m_info.dwRootDirSectors > 0) // no rootdir sectors on FAT32 for (i=0; i < m_info.dwRootDirSectors; i++,dwCurSect++) m_bitmap.setBit(dwCurSect, true); // ---- D) The clusters // init dwReservedBytes = m_info.wReservedSectorsCount * m_info.wBytesPerSector; m_info.dwDamagedClusters = 0L; // skip reserved data and two first FAT entries if (m_info.dwFileSystem == FS_FAT16) fseek(m_fDeviceFile, dwReservedBytes+(2*2), SEEK_SET); else if (m_info.dwFileSystem == FS_FAT32) fseek(m_fDeviceFile, dwReservedBytes+(2*4), SEEK_SET); else THROW(ERR_WRONG_FS); // for each FAT entry... for (i=0; i < m_info.dwClustersCount; i++) { // If FAT16 if (m_info.dwFileSystem == FS_FAT16) { nRes = fread(&wFat16Entry, sizeof(WORD), 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_READING, i, errno); wFat16Entry = Le16ToCpu(wFat16Entry); if (wFat16Entry == 0xFFF7) // bad FAT16 cluster { m_info.dwDamagedClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, false); } else if (wFat16Entry == 0x0000) // free { m_info.dwFreeClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, false); } else // used { m_info.dwUsedClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, true); } } // If FAT32 else if (m_info.dwFileSystem == FS_FAT32) { nRes = fread(&dwFat32Entry, sizeof(DWORD), 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_READING, (DWORD) 0, errno); dwFat32Entry = Le32ToCpu(dwFat32Entry); if (fat32to28(dwFat32Entry) == 0x0FFFFFF7) // bad FAT32 cluster { m_info.dwDamagedClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, false); } else if (fat32to28(dwFat32Entry) == 0x00000000) // free { m_info.dwFreeClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, false); } else // used { m_info.dwUsedClusters++; for (j=0; j < m_info.cSectorsPerCluster; j++,dwCurSect++) m_bitmap.setBit(dwCurSect, true); } } // If other file system else THROW(ERR_WRONG_FS); } // mark final sectors as used while (dwCurSect < m_info.dwTotalSectorsCount) { m_bitmap.setBit(dwCurSect, true); dwCurSect++; } // ---- end calculateSpaceFromBitmap(); RETURN; } // ======================================================= void CFatPart::readSuperBlock() { BEGIN; BYTE cBoot[MAX_BOOT_SIZE]; WORD wTemp; DWORD dwTemp; BYTE cTemp; int nRes; // init memset(&m_info, 0, sizeof(CInfoFatHeader)); // 1. read and print important informations nRes = readData(&cBoot, 0, MAX_BOOT_SIZE); if (nRes == -1) { g_interface->msgBoxError(i18n("Can't read boot sector")); THROW(ERR_READING, (DWORD) 0, errno); } // 2. calculate infos memcpy(&m_info.wBytesPerSector, cBoot+11, 2); m_info.wBytesPerSector = Le16ToCpu(m_info.wBytesPerSector); memcpy(&m_info.cSectorsPerCluster, cBoot+13, 1); memcpy(&m_info.wReservedSectorsCount, cBoot+14, 2); m_info.wReservedSectorsCount = Le16ToCpu(m_info.wReservedSectorsCount); memcpy(&m_info.cNumberOfFATs, cBoot+16, 1); memcpy(&m_info.wRootEntriesCount, cBoot+17, 2); m_info.wRootEntriesCount = Le16ToCpu(m_info.wRootEntriesCount); memcpy(&m_info.wFsInfoSector, cBoot+48, 2); m_info.wFsInfoSector = Le16ToCpu(m_info.wFsInfoSector); // check data if ((m_info.wBytesPerSector % 512 != 0) || (m_info.wBytesPerSector < 512)) THROW(ERR_WRONG_FS, errno); if (m_info.cSectorsPerCluster == 0) THROW(ERR_WRONG_FS, errno); if (m_info.wReservedSectorsCount ==0) THROW(ERR_WRONG_FS, errno); if (m_info.cNumberOfFATs == 0) THROW(ERR_WRONG_FS, errno); // Label memcpy(&cTemp, cBoot+38, 1); if (cTemp == 0x29) // there is a label memcpy(m_header.szLabel, cBoot+43, 11); else memset(m_header.szLabel, 0, 11); // Total number of sectors memcpy(&wTemp, cBoot+19, 2); wTemp = Le16ToCpu(wTemp); memcpy(&dwTemp, cBoot+32, 4); dwTemp = Le32ToCpu(dwTemp); if (wTemp) m_info.dwTotalSectorsCount = (DWORD)wTemp; else m_info.dwTotalSectorsCount = dwTemp; // avoid bug: cannot read last sector m_info.dwTotalSectorsCount--; // Count of sectors occupied by one FAT memcpy(&wTemp, cBoot+22, 2); wTemp = Le16ToCpu(wTemp); memcpy(&dwTemp, cBoot+36, 4); dwTemp = Le32ToCpu(dwTemp); if (wTemp) m_info.dwSectorsPerFAT = (DWORD)wTemp; else m_info.dwSectorsPerFAT = dwTemp; // calculate the FAT Type with the cluster count (FAT12 or FAT16 or FAT32) m_info.dwRootDirSectors = ((m_info.wRootEntriesCount * 32) + (m_info.wBytesPerSector-1)) / m_info.wBytesPerSector; m_info.dwDataSectors = m_info.dwTotalSectorsCount - (m_info.wReservedSectorsCount + (m_info.cNumberOfFATs * m_info.dwSectorsPerFAT) + m_info.dwRootDirSectors); if (m_info.cSectorsPerCluster == 0) { g_interface->msgBoxError(i18n("m_cSectorsPerCluster can't be null. Check the partition to save is a FAT one.") ); THROW(ERR_WRONG_FS); } m_info.dwClustersCount = m_info.dwDataSectors / m_info.cSectorsPerCluster; setSuperBlockInfos(false, false, 0, 0); if (m_info.dwClustersCount < 4085) m_info.dwFileSystem = FS_FAT12; else if (m_info.dwClustersCount < 65525) { m_info.dwBytesPerFatEntry = 2; m_info.dwFileSystem = FS_FAT16; } else { m_info.dwBytesPerFatEntry = 4; m_info.dwFileSystem = FS_FAT32; } // data for the abstract file system m_header.qwBlockSize = m_info.wBytesPerSector; m_header.qwBitmapSize = (m_info.dwTotalSectorsCount+7)/8; m_header.qwBlocksCount = m_info.dwTotalSectorsCount; // FS info sector showDebug(1, "FSInfo=%u\n", m_info.wFsInfoSector); if (m_info.wFsInfoSector) nRes = readFSInfo(m_info.wFsInfoSector); else nRes = -1; if ((nRes == -1) && (m_info.dwFileSystem == FS_FAT32)) { showDebug(1, "Can't read FSInfo sector\n"); g_interface->msgBoxError(i18n("Can't read FSInfo sector")); setSuperBlockInfos(false, false, 0, 0); } RETURN; } // ======================================================= int CFatPart::readFSInfo(WORD wFsInfoSector) { BEGIN; QWORD qwFreeSectors; QWORD qwUsedSectors; CFatFsInfoSector sectFsInfo; int nRes; nRes = readData(§FsInfo, m_info.wFsInfoSector*m_info.wBytesPerSector, sizeof(sectFsInfo)); if (nRes == -1) { showDebug(1, "Can't read FSInfo sector\n"); return -1; } if (sectFsInfo.dwMagic != CpuToLe32(0x41615252)) { showDebug(1, "FSInfo sector: bad magic\n"); return -1; } qwFreeSectors = m_info.cSectorsPerCluster * Le32ToCpu(sectFsInfo.dwFreeClusters); qwUsedSectors = m_info.dwTotalSectorsCount - qwFreeSectors; setSuperBlockInfos(false, false, qwUsedSectors * ((QWORD)m_info.wBytesPerSector), qwFreeSectors * ((QWORD)m_info.wBytesPerSector), true); RETURN_int(0); } partimage-0.6.8/src/client/fs/fs_ext2.cpp0000644000000000000000000002634411252653177016751 0ustar rootroot/*************************************************************************** fs_ext2.cpp - EXT2FS (Linux standard) File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #ifdef HAVE_SYS_STAT_H #include #endif #include "fs_ext2.h" #include "partimage.h" #include "imagefile.h" // ======================================================= CExt2Part::CExt2Part(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CExt2Part::~CExt2Part() { BEGIN; RETURN; } // ======================================================= void CExt2Part::fsck() { BEGIN; char szCommand[1024]; int nRes; struct stat fStat; // check if /sbin/e2fsck can be executed nRes = stat("/sbin/e2fsck", &fStat); if (nRes == -1) { nRes = g_interface -> askIgnoreNoFschk("/sbin/e2fsck"); if (nRes == MSGBOX_CANCEL) THROW(ERR_CANCELED); else RETURN; } if ( !S_ISREG(fStat.st_mode) || !(fStat.st_mode & S_IXOTH) && ( getgid() != fStat.st_gid || !(fStat.st_mode & S_IXGRP) ) && ( getuid() != fStat.st_uid || !(fStat.st_mode & S_IXUSR) ) ) { nRes = g_interface -> askIgnoreDeniedFschk("/sbin/e2fsck"); if (nRes == MSGBOX_CANCEL) THROW(ERR_CANCELED); else RETURN; } SNPRINTF(szCommand, "/sbin/e2fsck -nf -C 0 %s > /dev/null 2>/dev/null", m_szDevice); showDebug(1, "FSCK: [%s]\n", szCommand); nRes = system(szCommand); showDebug(1, "FSCK: return is %d\n", nRes); if (nRes != 0) { nRes = g_interface -> askIgnoreFSError("e2fsck"); if (nRes == MSGBOX_CANCEL) THROW(ERR_FSCHK); } RETURN; } // ======================================================= void CExt2Part::printfInformations() { char szFullText[8192]; char szText[8192]; *(szText) = '\0'; getStdInfos(szText, sizeof(szText), false); SNPRINTF(szFullText, i18n("%s" // standard infos "Number of groups..............%u\n" "First block...................%u\n" "Ext3fs journalization.........%s\n" "Sparse super block............%s\n" "Large files support...........%s\n" "File system revision..........%u\n"), szText, m_info.dwGroupsCount, m_info.dwFirstBlock, (m_info.dwFeatureCompat & EXT3_FEATURE_COMPAT_HAS_JOURNAL) ? i18n("yes") : i18n("no"), (m_info.dwFeatureRoCompat & EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER) ? i18n("yes") : i18n("no"), (m_info.dwFeatureRoCompat & EXT2_FEATURE_RO_COMPAT_LARGE_FILE) ? i18n("yes") : i18n("no"), m_info.dwRevLevel); if (ISEXT3FS) g_interface->msgBoxOk(i18n("Ext3fs informations"), szFullText); else g_interface->msgBoxOk(i18n("Ext2fs informations"), szFullText); } // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%% begin of CODE WITHOUT LIBEXT2FS %%%%%%%%%%%%%%%%%%%% // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // ======================================================= void CExt2Part::readSuperBlock() { BEGIN; CExt2Super sb; int nRes; // init memset(&m_info, 0, sizeof(CInfoExt2Header)); // 0. go to the beginning of the super block nRes = fseek(m_fDeviceFile, 1024, SEEK_SET); if (nRes == -1) goto error_readSuperBlock; // 1. read and print important informations nRes = fread(&sb, sizeof(sb), 1, m_fDeviceFile); if (nRes != 1) goto error_readSuperBlock; // check partition has an ext2 file system if (sb.s_magic != Le16ToCpu(EXT2_SUPER_MAGIC)) goto error_readSuperBlock; // read and print important informations m_info.dwBlockSize = (EXT2_MIN_BLOCK_SIZE << Le32ToCpu(sb.s_log_block_size)); //sb.s_blocksize; //EXT2_BLOCK_SIZE(m_fs->super); showDebug(1, "blksize=%lu\n", m_info.dwBlockSize); m_info.dwFirstBlock = Le32ToCpu(sb.s_first_data_block); showDebug(1, "first=%lu\n", m_info.dwFirstBlock); m_info.dwTotalBlocksCount = Le32ToCpu(sb.s_blocks_count); showDebug(1, "total blocks=%lu\n", m_info.dwTotalBlocksCount); m_info.dwBlocksPerGroup = Le32ToCpu(sb.s_blocks_per_group); showDebug(1, "BlocksPerGroup=%lu\n", m_info.dwBlocksPerGroup); m_info.dwGroupsCount = (m_info.dwTotalBlocksCount - m_info.dwFirstBlock + m_info.dwBlocksPerGroup - 1) / Le32ToCpu(sb.s_blocks_per_group); showDebug(1, "groups=%lu\n", m_info.dwGroupsCount); m_info.dwLogicalBlocksPerExt2Block = m_info.dwBlockSize / LOGICAL_EXT2_BLKSIZE; showDebug(1, "m_info.dwLogicalBlocksPerExt2Block=%lu\n",m_info.dwLogicalBlocksPerExt2Block); showDebug(1, "logperblok=%lu\n", m_info.dwLogicalBlocksPerExt2Block); m_info.dwDescPerBlock = m_info.dwBlockSize / sizeof(CExt2GroupDesc); m_info.dwDescBlocks = (m_info.dwGroupsCount + m_info.dwDescPerBlock - 1) / m_info.dwDescPerBlock; //debugWin("m_info.dwDescBlocks=%lu",(DWORD)m_info.dwDescBlocks); // virtual blocks used in the abstract CFSBase m_header.qwBlocksCount = m_info.dwTotalBlocksCount * m_info.dwLogicalBlocksPerExt2Block; m_header.qwBlockSize = LOGICAL_EXT2_BLKSIZE; m_header.qwBitmapSize = ((m_header.qwBlocksCount+7) / 8)+16; m_header.qwUsedBlocks = (m_info.dwTotalBlocksCount - Le32ToCpu(sb.s_free_blocks_count)) * m_info.dwLogicalBlocksPerExt2Block; //debugWin("freeblks=%lu", sb.s_free_blocks_count); strncpy(m_header.szLabel, sb.s_volume_name, 64); // features m_info.dwFeatureCompat = Le32ToCpu(sb.s_feature_compat); m_info.dwFeatureIncompat = Le32ToCpu(sb.s_feature_incompat); m_info.dwFeatureRoCompat = Le32ToCpu(sb.s_feature_ro_compat); // misc infos m_info.dwRevLevel = Le32ToCpu(sb.s_rev_level); // Revision level memcpy(m_info.cUuid, sb.s_uuid, 16); // 128-bit uuid for volume //success_readSuperBlock: setSuperBlockInfos(true, true, m_header.qwUsedBlocks*m_header.qwBlockSize, ((QWORD)Le32ToCpu(sb.s_free_blocks_count)) * ((QWORD)m_info.dwBlockSize)); showDebug(1, "end success\n"); RETURN; error_readSuperBlock: g_interface -> ErrorReadingSuperblock(errno); THROW(ERR_WRONG_FS); } // ======================================================= void CExt2Part::readBitmap(COptions *options) // FULLY WORKING { BEGIN; DWORD i, j; CExt2GroupDesc *desc; int nRes; DWORD dwBlocksInThisGroup; DWORD dwBootBlocks; char *cTempBitmap; DWORD dwBit, dwByte; DWORD dwExt2DataBlock; char *cPtr; int group = 0; // debug DWORD dwUsed; DWORD dwFree; dwBootBlocks = m_info.dwFirstBlock / m_info.dwLogicalBlocksPerExt2Block; //debugWin("dwBootBlocks=%lu and m_info.dwLogicalBlocksPerExt2Block=%lu",dwBootBlocks,m_info.dwLogicalBlocksPerExt2Block); cTempBitmap = new char[((m_info.dwTotalBlocksCount+7)/8)+4096]; if (!cTempBitmap) { showDebug(1, "CExt2Part::readBitmap(): Error 001\n"); goto error_readBitmap; } // init bitmap size nRes = m_bitmap.init(m_header.qwBitmapSize); showDebug(1, "m_bitmap.init(m_header.qwBitmapSize = %lu)\n", m_header.qwBitmapSize); if (nRes == -1) { showDebug(1, "CExt2Part::readBitmap(): Error 002\n"); goto error_readBitmap; } // load group descriptors desc = new CExt2GroupDesc[m_info.dwGroupsCount+m_info.dwDescPerBlock]; showDebug(1, "dwGroupsCount = %lu, m_info.dwDescPerBlock = %lu\n",m_info.dwGroupsCount, m_info.dwDescPerBlock); if (!desc) { showDebug(1, "CExt2Part::readBitmap(): Error 003\n"); goto error_readBitmap; } // for each descriptor BLOCK (not group descriptor!) showDebug(1, "readData m_info.dwBlockSize = %lu\n", m_info.dwBlockSize); for (cPtr=(char*)desc, i=0; i < m_info.dwDescBlocks; i++,cPtr+=m_info.dwBlockSize) { nRes = readData(cPtr, ((QWORD)m_info.dwBlockSize) * ((QWORD)(m_info.dwFirstBlock+1+i)), m_info.dwBlockSize); if (nRes == -1) { showDebug(1, "CExt2Part::readBitmap(): Error 004\n"); goto error_readBitmap; } } dwUsed=0; dwFree=0; showDebug(1, "m_info.dwBlocksPerGroup = %lu\n", m_info.dwBlocksPerGroup); for (i = 0; i < m_info.dwGroupsCount; i++) { if (m_info.dwFirstBlock+((i+1)*m_info.dwBlocksPerGroup) > m_info.dwTotalBlocksCount) dwBlocksInThisGroup = (m_info.dwTotalBlocksCount-m_info.dwFirstBlock) - (i*m_info.dwBlocksPerGroup); else dwBlocksInThisGroup = m_info.dwBlocksPerGroup; if (Le32ToCpu(desc[i].bg_block_bitmap)) { // -- read the bitmap block errno = 0; nRes = readData(cTempBitmap+(i*(m_info.dwBlocksPerGroup/8)), ((QWORD)m_info.dwBlockSize) * ((QWORD)Le32ToCpu(desc[i].bg_block_bitmap)), (m_info.dwBlocksPerGroup/8)); if (nRes == -1) { showDebug(1, "CExt2Part::readBitmap(): Error 005\n"); showDebug(1, "CExt2Part::readBitmap(): err=%d=%d\n", errno, strerror(errno)); goto error_readBitmap; } } else { memset(cTempBitmap+(i*(m_info.dwBlocksPerGroup/8)), 0, (m_info.dwBlocksPerGroup/8)); } } // convert bitmap to little endian DWORD *dwPtr; DWORD dwLen; dwLen = sizeof(cTempBitmap) / sizeof(DWORD); dwPtr = (DWORD *)cTempBitmap; for (i=0; i < dwLen; i++, dwPtr++) *dwPtr = CpuToLe32(*dwPtr); // bitmap is full of 0 at init, then we just have to // write 1 for used blocks // the boot block of 1024 bytes = used for (i=0; i < dwBootBlocks; i++) m_bitmap.setBit(i, true); dwUsed=0; dwFree=0; for (i=dwBootBlocks, dwExt2DataBlock=0; dwExt2DataBlock < ( m_info.dwTotalBlocksCount- m_info.dwFirstBlock); dwExt2DataBlock++) { dwBit = dwExt2DataBlock % 8; dwByte = (dwExt2DataBlock - dwBit) / 8; group = (dwExt2DataBlock/m_info.dwBlocksPerGroup); if ((cTempBitmap[dwByte] & (1 << dwBit)) != 0) { for (j=0; j < m_info.dwLogicalBlocksPerExt2Block; j++, i++) m_bitmap.setBit(i, true); showDebug(3, "m_bitmap.setBit(%1u, true), g = %i\n", (i/4), group); dwUsed++; } else { for (j=0; j < m_info.dwLogicalBlocksPerExt2Block; j++, i++) m_bitmap.setBit(i, false); showDebug(3, "m_bitmap.setBit(%1u, false), g = %i\n", (i/4), group); dwFree++; } } showDebug(1,"used=%lu\nfree=%lu\ntotal=%lu\n",dwUsed,dwFree,dwUsed+dwFree); calculateSpaceFromBitmap(); //success_readBitmap: delete []cTempBitmap; showDebug(1, "end success\n"); RETURN; // auccess error_readBitmap: delete []cTempBitmap; showDebug(1, "end error\n"); g_interface->msgBoxError(i18n("There was an error while reading the bitmap")); THROW(ERR_READ_BITMAP); } partimage-0.6.8/src/client/fs/fs_ntfs.cpp0000644000000000000000000006715311252653177017044 0ustar rootroot/*************************************************************************** cntfspart.cpp - NTFS (Windows NT) File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "partimage.h" #include "imagefile.h" #include "fs_ntfs.h" #define __STDC_FORMAT_MACROS #include // ======================================================= CNtfsPart::CNtfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { BEGIN; RETURN; } // ======================================================= CNtfsPart::~CNtfsPart() { BEGIN; RETURN; } // ======================================================= void CNtfsPart::fsck() { // SUCCESS } // ======================================================= void CNtfsPart::readSuperBlock() { BEGIN; int nRes; const int nMaxBootSectSize = 16384; BYTE cBoot[nMaxBootSectSize+1]; // init memset(&m_info, 0, sizeof(CInfoNtfsHeader)); nRes = fread(cBoot, nMaxBootSectSize, 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_ERRNO, errno); // 1. check partition has an ntfs file system if (memcmp(cBoot+3, "NTFS", 4) != 0) { g_interface->msgBoxError(i18n("%s is not an NTFS file system partition"), m_szDevice); THROW(ERR_ERRNO, errno); } showDebug(1, "\n======== begin NTFS BOOT INFOS ========\n"); char cClustersPerMftRecord; m_info.nBytesPerSector = NTFS_GETU16(cBoot+0xB); m_info.cSectorsPerCluster = NTFS_GETU8(cBoot+0xD); m_info.qwTotalSectorsCount = NTFS_GETU64(cBoot+0x28); m_info.qwLCNOfMftDataAttrib = NTFS_GETU64(cBoot+0x30); cClustersPerMftRecord = NTFS_GETS8(cBoot+0x40); // check informations validity if (m_info.nBytesPerSector % 512 != 0) THROW(ERR_ERRNO, errno); // Calculate clusters and misc informations m_info.dwClusterSize = (DWORD) (m_info.nBytesPerSector * m_info.cSectorsPerCluster); //m_dwFileRecordSize *= m_dwClusterSize; //m_qwTotalClustersCount = (QWORD) (m_qwTotalSectorsCount / m_cSectorsPerCluster); if (cClustersPerMftRecord > 0) m_info.dwFileRecordSize = cClustersPerMftRecord * m_info.dwClusterSize; else m_info.dwFileRecordSize = 1 << (-cClustersPerMftRecord); showDebug(1, "m_nBytesPerSector = %d\n", m_info.nBytesPerSector); showDebug(1, "m_cSectorsPerCluster = %d\n", m_info.cSectorsPerCluster); showDebug(1, "m_qwTotalSectorsCount = %llu\n", m_info.qwTotalSectorsCount); showDebug(1, "m_qwLCNOfMftDataAttrib = %llu\n", m_info.qwLCNOfMftDataAttrib); showDebug(1, "cClustersPerMftRecord = %d\n", cClustersPerMftRecord); showDebug(1, "Calculated m_dwFileRecordSize = %lu\n", m_info.dwFileRecordSize); showDebug(1, "======== end NTFS BOOT INFOS ========\n\n"); // read label showDebug(1, "begin of readVolumeLabel()\n"); nRes = readVolumeLabel(); showDebug(1, "end of readVolumeLabel(), return = %d\n", nRes); // set abstract informations m_header.qwBlockSize = (DWORD) m_info.dwClusterSize; // 1 cluster m_header.qwBlocksCount = (QWORD) (m_info.qwTotalSectorsCount / m_info.cSectorsPerCluster); setSuperBlockInfos(false, false, 0 , 0); RETURN; } // ======================================================= void CNtfsPart::readBitmap(COptions *options) { BEGIN; int nRes; BYTE *cFileRecord; // 1024 in most cases CNtfsRunList runlistBitmap, runlistMft; QWORD qwBitmapSize; QWORD qwAllocatedSize; QWORD qwOffset; QWORD i; // used in experimental search char cBitmapNameUnicode[] = {0x24, 0, 0x42, 0, 0x69, 0, 0x74, 0, 0x6d, 0, 0x61, 0, 0x70, 0}; // len = 14 // allocate memory cFileRecord = new BYTE[m_info.dwFileRecordSize+1]; if (!cFileRecord) { showDebug(1, "Out of memory: need %lu bytes to read file record in readBitmap()\n", m_info.dwFileRecordSize); g_interface->msgBoxError(i18n("Out of memory: need %lu bytes to read file record in readBitmap()"), m_info.dwFileRecordSize); THROW(ERR_ERRNO, errno); } // 0. MFT Record: find $Bitmap file record /*qwOffset = ((QWORD) m_qwLCNOfMftDataAttrib * m_dwClusterSize); nRes = fseek(m_fDeviceFile, (long)qwOffset, SEEK_SET); if (nRes == -1) throw neew CExceptions("ntfs::readBitmap", ERR_ERRNO, errno); nRes = fread(cFileRecord, m_dwFileRecordSize, 1, m_fDeviceFile); if (nRes != 1) throw neew CExceptions("ntfs::readBitmap", ERR_ERRNO, errno); nRes = readFileRecord(cFileRecord, m_dwFileRecordSize, &runlistMft, &qwBitmapSize, &qwAllocatedSize);*/ //runlistBitmap.show(); // read bitmap file record of the MFT (record number 6 // TODO: bug if the begin of the data attrib of the MFT begins after 2 GB // TODO: bug if the MFT is fragmented, the $Bitmap record (6 th) may be in another location of the disk // then we must read the MFT runlist, to know where the MFT is written. But we need to read the // "attribute list" to do it... ==> very difficult // 1. read $Bitmap record qwOffset = ((QWORD) m_info.qwLCNOfMftDataAttrib * m_info.dwClusterSize) + ((QWORD) (6 * m_info.dwFileRecordSize)); showDebug(1, "qwOffset = %llu\n", qwOffset); /*nRes = fseek(m_fDeviceFile, (long)qwOffset, SEEK_SET); if (nRes == -1) { showDebug(1, "failed: cannot run fseek(to bitmap record)\n"); delete []cFileRecord; THROW(ERR_ERRNO, errno); } nRes = fread(cFileRecord, m_info.dwFileRecordSize, 1, m_fDeviceFile);*/ nRes = readData(cFileRecord, qwOffset, m_info.dwFileRecordSize); if (nRes == -1) { showDebug(1, "failed: cannot run readData(bitmap record)\n"); delete []cFileRecord; THROW(ERR_ERRNO, errno); } // check we read the $bitmap file record showDebug(1, "begin of checkFilenameForRecordIs()\n"); nRes = checkFilenameForRecordIs(cFileRecord, "$bitmap"); showDebug(1, "end of checkFilenameForRecordIs(), return = %d\n", nRes); if (nRes == -1) // The file record we read was not the $bitmap one... { nRes = g_interface->msgBoxYesNo(i18n("Error"), i18n("Unable to read the $Bitmap MFT record. " "Do you want to make an experimental search for it ? (it can take a long time)")); if (nRes == MSGBOX_NO) { showDebug(1, "readBitmap(): user doesn't want to search for $bitmap MFT record\n"); delete []cFileRecord; THROW(ERR_ERRNO, errno); } showDebug(1, "begin of searchForRecordFilename()\n"); nRes = searchForRecordFilename(cFileRecord, "$bitmap", cBitmapNameUnicode, 14); showDebug(1, "end of searchForRecordFilename(), result = %d\n", nRes); if (nRes == -1) // if found { showDebug(1, "readBitmap(): failed: Cannot find the $bitmap with experimental search\n"); g_interface->msgBoxError(i18n("Cannot find the $bitmap with experimental search")); delete []cFileRecord; THROW(ERR_ERRNO, errno); } } // -------- decode the MFT File record showDebug(1, "begin of readFileRecord()\n"); nRes = readFileRecord(cFileRecord, &runlistBitmap, &qwBitmapSize, &qwAllocatedSize); showDebug(1, "end of readFileRecord(), return = %d\n", nRes); if (nRes == -1) { g_interface->msgBoxError(i18n("Cannot use $bitmap file record")); showDebug(1, "readBitmap(): failed: Cannot use $bitmap file record\n"); } //runlistBitmap.show(); // If the bitmap returned cannot map all clusters of the partition (because bitmap too small) if ((runlistBitmap.clustersCount() * m_info.dwClusterSize * 8) < m_header.qwBlocksCount) { g_interface->msgBoxError(i18n("NTFS $Bitmap is to small")); showDebug(1, "readBitmap(): NTFS $Bitmap is to small\n"); delete []cFileRecord; THROW(ERR_ERRNO, errno); } // -------- read bitmap file from runlist m_header.qwBitmapSize = (DWORD) qwAllocatedSize; //fprintf(stderr,"m_dwBitmapSize=%lu\n", m_dwBitmapSize); //fprintf(stderr,"m_dwallocated=%llu\n", qwAllocatedSize); // allocate memory for bitmap nRes = m_bitmap.init(m_header.qwBitmapSize); if (nRes == -1) { showDebug(1, "readBitmap(): failed: Out of memory in bitmap.init()\n"); g_interface->msgBoxError(i18n("Out of memory")); delete []cFileRecord; THROW(ERR_ERRNO, errno); } // debug log file showDebug(1, "readBitmap(): =========== begin of decoded run list ===============\n"); for (i=0L; i < runlistBitmap.clustersCount(); i++) showDebug(1, "i=%llu, cluster=%llu, offset=%llu\n", i, (runlistBitmap.offset(i)), (QWORD)(runlistBitmap.offset(i) * (QWORD)m_info.dwClusterSize)); showDebug(1, "readBitmap(): =========== end of decoded run list ===============\n"); // read bitmap for (i=0L; i < runlistBitmap.clustersCount(); i++) { errno = 0; /*showDebug(1, "begin of big_fseek()\n"); nRes = bigFseek(m_fDeviceFile, (QWORD)(runlistBitmap.offset(i) * ((QWORD)m_info.dwClusterSize))); showDebug(1, "end of big_fseek() (%s) (error %d)\n", strerror(errno), errno); if (nRes == -1) { showDebug(1, "readBitmap(): failed: error in fseek() (%s) (error %d)\n", strerror(errno), errno); delete []cFileRecord; THROW(ERR_ERRNO, errno); } errno = 0; nRes = fread(m_bitmap.data()+(i*m_info.dwClusterSize), m_info.dwClusterSize, 1, m_fDeviceFile); if (nRes != 1) { showDebug(1, "readBitmap(): failed: error in fread() (%s) (error %d)\n", strerror(errno), errno); delete []cFileRecord; THROW(ERR_ERRNO, errno); }*/ nRes = readData(m_bitmap.data()+(i*m_info.dwClusterSize), (QWORD)(runlistBitmap.offset(i) * ((QWORD)m_info.dwClusterSize)), m_info.dwClusterSize); if (nRes == -1) { showDebug(1, "ERROR: error in readData() (%s) (error %d)\n", strerror(errno), errno); delete []cFileRecord; THROW(ERR_ERRNO, errno); } } // fill informations about free/used clusters count calculateSpaceFromBitmap(); /*QWORD qwUsedClustersCount = 0L; QWORD qwFreeClustersCount = 0L; for (i=0; i < m_header.qwBlocksCount; i++) { if (m_bitmap.isBitSet(i)) qwUsedClustersCount++; else qwFreeClustersCount++; } m_header.qwUsedBlocks = qwUsedClustersCount;*/ delete []cFileRecord; showDebug(9, "end\n"); } // ======================================================= void CNtfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; getStdInfos(szText, sizeof(szText), true); SNPRINTF(szFullText, i18n("%s" // standard infos "Bytes per sector..............%u\n" "Sectors per cluster...........%u\n" "File record size..............%u\n" "LCN of MFT Data attrib........%"PRIu64"\n"), szText, m_info.nBytesPerSector, m_info.cSectorsPerCluster, m_info.dwFileRecordSize, m_info.qwLCNOfMftDataAttrib); g_interface->msgBoxOk(i18n("NTFS informations"), szFullText); } // ======================================================= int CNtfsPart::readVolumeLabel() { int nRes; BYTE *cFileRecord; // 1024 in most cases QWORD qwOffset; WORD nOffsetSequenceAttribute; BYTE *cData; DWORD dwAttribType; DWORD dwAttribLen; bool bAttribResident; BYTE *cDataResident; WORD nAttrSize; QWORD i; // init memset(m_header.szLabel, 0, 127); // allocate memory cFileRecord = new BYTE[m_info.dwFileRecordSize+1]; if (!cFileRecord) { g_interface->msgBoxError(i18n("Out of memory: need %lu bytes to read file record in readVolumeLabel()"), m_info.dwFileRecordSize); RETURN_int(-1); } // TODO: read the MFT to have the $volume record location // 1. read $Volume record qwOffset = ((QWORD) m_info.qwLCNOfMftDataAttrib * m_info.dwClusterSize) + ((QWORD) (3 * m_info.dwFileRecordSize)); /*nRes = fseek(m_fDeviceFile, (long)qwOffset, SEEK_SET); if (nRes == -1) { showDebug(1, "readVolumeLabel(): fseek() failed\n"); delete []cFileRecord; RETURN_int(-1); } nRes = fread(cFileRecord, m_info.dwFileRecordSize, 1, m_fDeviceFile); if (nRes != 1) { showDebug(1, "readVolumeLabel(): fread() failed\n"); delete []cFileRecord; RETURN_int(-1); }*/ nRes = readData(cFileRecord, qwOffset, m_info.dwFileRecordSize); if (nRes == -1) { showDebug(1, "readVolumeLabel(): failed in readData()\n"); delete []cFileRecord; RETURN_int(-1); } // -------- decode the MFT File record nOffsetSequenceAttribute = NTFS_GETU16(cFileRecord+0x14); cData = cFileRecord + nOffsetSequenceAttribute; do { // szData points to the beginning of an attribute dwAttribType = NTFS_GETU32(cData); dwAttribLen = NTFS_GETU32(cData+4); bAttribResident = (NTFS_GETU8(cData+8)==0); if(dwAttribType == 0x60) // "volume_name" { if (bAttribResident == false) { showDebug(1, "readVolumeLabel(): failed: $volume_name attribute is not resident\n"); delete []cFileRecord; RETURN_int(-1); } nAttrSize = NTFS_GETU16(cData+0x10); cDataResident = cData+NTFS_GETU16(cData+0x14); for (i=0; i < (DWORD)(nAttrSize/2); i++) m_header.szLabel[i] = cDataResident[2*i]; } if(dwAttribType == 0x70) // "volume_information" { m_info.nNtfsVersion = 0; if (bAttribResident == true) { nAttrSize = NTFS_GETU16(cData+0x10); cDataResident = cData+NTFS_GETU16(cData+0x14); m_info.nNtfsVersion = (((BYTE) cDataResident[8]) << 8) | ((BYTE) cDataResident[9]); showDebug(1, "readVolumeLabel(): version is %d.%d\n", cDataResident[8], cDataResident[9]); } } cData += dwAttribLen; } while(dwAttribType != (DWORD)-1); // attribute list ends with type -1 delete []cFileRecord; return 0; } // ======================================================= int CNtfsPart::readFileRecord(BYTE *cRecordData, CNtfsRunList *runlist, QWORD *qwBitmapSize, QWORD *qwAllocatedSize) { BYTE *cData; WORD nOffsetSequenceAttribute; DWORD dwAttribType; DWORD dwAttribLen; bool bAttribResident; int nRes; nOffsetSequenceAttribute = NTFS_GETU16(cRecordData+0x14); cData = cRecordData + nOffsetSequenceAttribute; showDebug(1, "\n\n=============== begin FILE RECORD ================\n"); fwrite(cRecordData, m_info.dwFileRecordSize, 1, g_fDebug); showDebug(1, "\n=============== end FILE RECORD ================\n\n\n"); do { // szData points to the beginning of an attribute dwAttribType = NTFS_GETU32(cData); dwAttribLen = NTFS_GETU32(cData+4); bAttribResident = (NTFS_GETU8(cData+8)==0); if(dwAttribType == 0x20) // "attribute list" { g_interface->msgBoxError(i18n("NTFS: \"Attribute List\" attribute is not yet supported.")); showDebug(1, "readFileRecord(): NTFS: \"Attribute List\" attribute is not yet supported.\n"); RETURN_int(-1); } else if(dwAttribType == 0x80) // "data" { showDebug(1, "begin of readDataAttribute()\n"); nRes = readDataAttribute(cData, runlist, qwBitmapSize, qwAllocatedSize); showDebug(1, "end of readDataAttribute(), return = %d\n", nRes); if (nRes == -1) RETURN_int(-1); } cData += dwAttribLen; } while(dwAttribType != (DWORD)-1); // attribute list ends with type -1 return 0; } // ======================================================= int CNtfsPart::readDataAttribute(BYTE *cAttribData, CNtfsRunList *runlist, QWORD *qwBitmapSize, QWORD *qwAllocatedSize) { bool bAttribResident; WORD nCompressed; int nRes; // Resident flag bAttribResident = NTFS_GETU8(cAttribData+8)==0; // Misc nCompressed = NTFS_GETU16(cAttribData+0xC); //fprintf(stderr,"Comp=%ld=%X with type=data\n", nCompressed, nCompressed); if (nCompressed) { g_interface->msgBoxError(i18n("NTFS: Compression flag for DATA attribute not null: %ld"), nCompressed); showDebug(1, "readDataAttribute(): NTFS: Compression flag for DATA attribute not null: %u\n", nCompressed); RETURN_int(-1); } if(bAttribResident) { // TODO: decode resident data WORD nAttrSize; BYTE *cDataResident; nAttrSize = NTFS_GETU16(cAttribData+0x10); cDataResident = cAttribData+NTFS_GETU16(cAttribData+0x14); /*WORD nOffsetOfStream; nOffsetOfStream=NTFS_GETU16(cAttribData+0x14); qwDataSize = (QWORD) NTFS_GETU16(cAttribData+0x10);*/ g_interface->msgBoxError(i18n("NTFS: Resident data attribute not supported")); showDebug(1, "readDataAttribute(): NTFS: Resident data attribute not supported\n"); RETURN_int(-1); } else { //*qwAllocatedSize = NTFS_GETU32(cAttribData+0x28); //*qwBitmapSize = NTFS_GETU32(cAttribData+0x30); showDebug(1, "begin of processRunList()\n"); nRes = processRunList(cAttribData, runlist, qwAllocatedSize, qwBitmapSize); showDebug(1, "end of processRunList(), return = %d\n", nRes); if (nRes == -1) g_interface->msgBoxError(i18n("NTFS: processRunList() returned -1")); return nRes; } RETURN_int(-1); } // ======================================================= int CNtfsPart::readFilenameAttribute(BYTE *cAttribData, char *szFilename) { bool bAttribResident; char szTemp[4096]; WORD nAttrSize; BYTE *cDataResident; int i; // Resident flag bAttribResident = NTFS_GETU8(cAttribData+8)==0; if (bAttribResident == false) { g_interface->msgBoxCancel(i18n("Error in readFilenameAttribute"), i18n("The \"filename\" attribute must be resident !")); showDebug(1, "readFilenameAttribute(): NTFS: The \"filename\" attribute must be resident !\n"); RETURN_int(-1); } nAttrSize = NTFS_GETU16(cAttribData+0x10)-0x42; cDataResident = cAttribData+NTFS_GETU16(cAttribData+0x14)+0x42; // decode the unicode filename memset(szTemp, 0, 4095); for (i=0; i < nAttrSize/2; i++) szTemp[i] = cDataResident[2*i]; /*fprintf(stderr,"==============> Encoded file name: ("); printBuf(stderr, (char*)cDataResident, 2*nAttrSize); fprintf(stderr,")\n==============> Decoded file name: (%s)\n", szTemp);*/ // szFilename must be equal to szTemp now if (strcasecmp(szTemp, szFilename) != 0) { showDebug(1, "readFilenameAttribute(): Cannot check filename is \"%s\" (%s)\n", szFilename, szTemp); RETURN_int(-1); } else { showDebug(1, "readFilenameAttribute(): success (%s)\n", szFilename); } return 0; // success } // ======================================================= int CNtfsPart::processRunList(BYTE *cAttribData, CNtfsRunList *runlist, QWORD *qwAllocatedSize, QWORD *qwRealSize) { //QWORD qwAllocatedSize; //QWORD qwRealSize; QWORD qwCompressedSize; WORD nCompressionEngine; WORD nOffsetRunList; BYTE *cRunList; QWORD qwStartVcn; QWORD qwEndVcn; QWORD qwLastClusterOffset; QWORD qwClusterNumber; showDebug(1, "\n\n\n================== begin processRunList =============\n"); qwStartVcn = NTFS_GETU64(cAttribData+0x10); qwEndVcn = NTFS_GETU64(cAttribData+0x18); *qwAllocatedSize = NTFS_GETU64(cAttribData+0x28); *qwRealSize = NTFS_GETU64(cAttribData+0x30); qwCompressedSize = NTFS_GETU64(cAttribData+0x38); nCompressionEngine = NTFS_GETU16(cAttribData+0x22); showDebug(1, "qwStartVcn = %llu\n", qwStartVcn); showDebug(1, "qwEndVcn = %llu\n", qwEndVcn); showDebug(1, "qwAllocatedSize = %llu\n", *qwAllocatedSize); showDebug(1, "qwRealSize = %llu\n", *qwRealSize); showDebug(1, "qwCompressedSize = %llu\n", qwCompressedSize); showDebug(1, "nCompressionEngine = %d\n", nCompressionEngine); //if(attr->compressed) // attr->compsize=NTFS_GETU32(cAttribData+0x40); nOffsetRunList = NTFS_GETU16(cAttribData+0x20); cRunList = cAttribData + nOffsetRunList; BYTE cType; BYTE cSizeOfOffset; BYTE cSizeOfLength; BYTE *cData; QWORD qwLength; long long signed int llOffset; QWORD i; int nRes; nRes = runlist->init(qwEndVcn-qwStartVcn+1); // number of clusters used by data if (nRes == -1) { g_interface->msgBoxError(i18n("Out of memory")); showDebug(1, "processRunList(): Out of memory.\n"); RETURN_int(-1); } qwClusterNumber = qwStartVcn; qwLastClusterOffset = 0L; while (qwClusterNumber <= qwEndVcn) { cType = NTFS_GETU8(cRunList); cSizeOfLength = cType & 0xF; cSizeOfOffset = cType & 0xF0; cData = cRunList + 1; // 1: length switch(cSizeOfLength) { case 1: qwLength = NTFS_GETU8(cData); break; case 2: qwLength = NTFS_GETU16(cData); break; case 3: qwLength = NTFS_GETU24(cData); break; case 4: qwLength = NTFS_GETU32(cData); break; // Note: cases 5-8 are probably pointless to code, // since how many runs > 4GB of length are there? // at the most, cases 5 and 6 are probably necessary, // and would also require making length 64-bit // throughout default: //ntfs_error("Can't decode run type field %x\n",type); RETURN_int(-1); } cData += cSizeOfLength; // 2: offset switch(cSizeOfOffset) { //case 0: *ctype=2; break; case 0x10: llOffset = NTFS_GETS8(cData);break; case 0x20: llOffset = NTFS_GETS16(cData);break; case 0x30: llOffset = NTFS_GETS24(cData);break; case 0x40: llOffset = NTFS_GETS32(cData);break; #if 0 // Keep for future, in case ntfs_cluster_t ever becomes 64bit case 0x50: llOffset = NTFS_GETS40(cData);break; case 0x60: llOffset = NTFS_GETS48(cData);break; case 0x70: llOffset = NTFS_GETS56(cData);break; case 0x80: llOffset = NTFS_GETS64(cData);break; #endif default: //ntfs_error("Can't decode run type field %x\n",type); RETURN_int(-1); } cData += cSizeOfOffset; showDebug(10, "DEBUGGING: pos=%llu and len=%llu and bool=%d\n", qwClusterNumber, qwLength, (int)(qwClusterNumber < qwEndVcn)); for (i = 0; i < qwLength; i++) { runlist->setCluster(qwClusterNumber, qwLastClusterOffset + llOffset + i); qwClusterNumber++; } qwLastClusterOffset += llOffset; } showDebug(1, "\n================== end processRunList =============\n\n\n"); return 0; } // ================================================ CNtfsRunList::CNtfsRunList() { m_qwOffset = NULL; // no memory allocated m_qwClustersCount = 0L; } // ================================================ CNtfsRunList::~CNtfsRunList() { freeMemory(); } // ================================================ void CNtfsRunList::freeMemory() { if (m_qwOffset) { delete []m_qwOffset; m_qwClustersCount = 0L; } } // ================================================ int CNtfsRunList::init(QWORD qwClustersCount) { if (m_qwOffset) RETURN_int(-1); // mem alreay allocated m_qwOffset = new QWORD[qwClustersCount+1]; if (!m_qwOffset) RETURN_int(-1); m_qwClustersCount = qwClustersCount; return 0; // success } // ================================================ int CNtfsRunList::setCluster(QWORD qwNumber, QWORD qwOffset) // ex: cluser 0 position is 12589 { if ((qwOffset) && (qwNumber <= m_qwClustersCount)) { m_qwOffset[qwNumber] = qwOffset; return 0; } else RETURN_int(-1); } // ================================================ void CNtfsRunList::show() { QWORD i; for (i=0L; i < m_qwClustersCount; i++) fprintf(stderr, "cluster[%llu] = %"PRIu64"\n", i, m_qwOffset[i]); } // ================================================ QWORD CNtfsRunList::offset(QWORD qwCluster) { if (m_qwOffset) return m_qwOffset[qwCluster]; else return 0; } // ================================================ QWORD CNtfsRunList::clustersCount() { return m_qwClustersCount; } // ================================================ int CNtfsPart::checkFilenameForRecordIs(BYTE *cRecordData, char *szFilename, bool bShowDebug) { BYTE *cData; WORD nOffsetSequenceAttribute; DWORD dwAttribType; DWORD dwAttribLen; bool bAttribResident; int nRes; nOffsetSequenceAttribute = NTFS_GETU16(cRecordData+0x14); cData = cRecordData + nOffsetSequenceAttribute; // check this is a file record if (memcmp(cRecordData, "FILE", 4) != 0) { if (bShowDebug) showDebug(1, "checkFilenameForRecordIs(): error im magic string, not a valid file record\n"); RETURN_int(-1); } do { // szData points to the beginning of an attribute dwAttribType = NTFS_GETU32(cData); dwAttribLen = NTFS_GETU32(cData+4); bAttribResident = (NTFS_GETU8(cData+8)==0); if(dwAttribType == 0x30) // "filename" { showDebug(1, "begin of readFilenameAttribute()\n"); nRes = readFilenameAttribute(cData, szFilename); showDebug(1, "end of readFilenameAttribute(), return = %d\n", nRes); return nRes; } cData += dwAttribLen; } while(dwAttribType != (DWORD)-1); // attribute list ends with type -1 RETURN_int(-1); } // ================================================ int CNtfsPart::searchForRecordFilename(BYTE *cFileRecord, char *szFilename, char *szUnicodeName, int nUnicodeNameLen) { QWORD qwCurrentOffset = 0L; QWORD qwPartSize; char cBuffer[MAX_NTFS_BLOCK_SIZE+1]; int nRes; int i; qwPartSize = getPartitionSize(m_szDevice); // go to the beginning of the partition nRes = fseek(m_fDeviceFile, 0L, SEEK_SET); if (nRes == -1) RETURN_int(-1); while(qwCurrentOffset + m_info.dwClusterSize < qwPartSize) { nRes = fread(cBuffer, m_info.dwClusterSize, 1, m_fDeviceFile); if (nRes != 1) { showDebug(1, "searchForRecordFilename(): error in fread(1)\n"); RETURN_int(-1); } qwCurrentOffset += m_info.dwClusterSize; // if it can be the begin of the file record if (memcmp(cBuffer, "FILE", 4) == 0) { showDebug(1, "searchForRecordFilename: begin FILE detected\n"); nRes = fseek(m_fDeviceFile, -m_info.dwClusterSize, SEEK_CUR); if (nRes == -1) { showDebug(1, "searchForRecordFilename(): error in fseek()\n"); RETURN_int(-1); } showDebug(1, "searchForRecordFilename: 002 FILE detected\n"); qwCurrentOffset -= m_info.dwClusterSize; nRes = fread(cFileRecord, m_info.dwFileRecordSize, 1, m_fDeviceFile); if (nRes != 1) { showDebug(1, "searchForRecordFilename(): error in fread(2)\n"); RETURN_int(-1); } showDebug(1, "searchForRecordFilename: 003 FILE detected\n"); qwCurrentOffset += m_info.dwFileRecordSize; // the "FILE" we read can be the magic string of the file record, but it can be a simple // data of the user. Then, check we can find what we search, before to decode the record // check the record contains the unicode name of the record we search for (i=0; i < (int)(m_info.dwFileRecordSize - nUnicodeNameLen); i++) { if (memcmp(cFileRecord+i, szUnicodeName, nUnicodeNameLen) == 0) // if record contains the name { showDebug(1, "begin of checkFilenameForRecordIs()\n"); nRes = checkFilenameForRecordIs(cFileRecord, szFilename, false); showDebug(1, "end of checkFilenameForRecordIs(), return = %d\n", nRes); if (nRes == 0) { showDebug(1, "searchForRecordFilename(): experimental search succeed. Offset = %llu\n", qwCurrentOffset); g_interface->msgBoxOk(i18n("$bitmap record search"), i18n("experimental search succeed")); return 0; // success } } } showDebug(1, "searchForRecordFilename: end FILE detected\n"); } } RETURN_int(-1); } partimage-0.6.8/src/client/fs/Makefile.am0000644000000000000000000000127011252653177016716 0ustar rootroot## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/shared \ -I/usr/include/slang noinst_LIBRARIES = libfs.a noinst_HEADERS = fs_base.h fs_ext2.h fs_fat.h fs_hpfs.h fs_jfs.h fs_ntfs.h \ fs_reiser.h fs_ufs.h fs_xfs.h fs_afs.h fs_hfs.h fs_be.h libfs_a_SOURCES = \ fs_base.cpp \ fs_afs.cpp \ fs_ext2.cpp \ fs_fat.cpp \ fs_hpfs.cpp \ fs_jfs.cpp \ fs_ntfs.cpp \ fs_reiser.cpp \ fs_hfs.cpp \ fs_ufs.cpp \ fs_xfs.cpp DEFS=@DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 CPPFLAGS=@CPPFLAGS@ -Wall MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/src/client/fs/fs_base.h0000644000000000000000000000716611252653177016447 0ustar rootroot/*************************************************************************** fs_base.h - description ------------------- begin : Sun Mar 04 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _FS_BASE_H_ #define _FS_BASE_H_ #include "partimage.h" #include "cbitmap.h" #include "interface_newt.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; #define ZERO_BLOCK_SIZE 512 #define INFOS_STRUCT_SIZE 16384 // ------------------ checks --------------------- #define CHECK_FREQUENCY 65536 // check every 65536 bytes // ================================================ struct CCheck { char cMagic[4]; // must be 'C','H','K' DWORD dwCRC; // CRC of the CHECK_FREQUENCY blocks QWORD qwPos; // number of the last block written }; // ================================================ struct CLocalHeader // size must be 16384 (adjust the reserved data) { QWORD qwBlockSize; QWORD qwUsedBlocks; QWORD qwBlocksCount; QWORD qwBitmapSize; // bytes in the bitmap QWORD qwBadBlocksCount; char szLabel[64]; BYTE cReserved[16280]; // Adjust to fit with total header size }; // ================================================ class CFSBase { public: // defined in CFSBase CFSBase(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); virtual ~CFSBase(); void saveUsedBlocksToImageFile(COptions *options); void restoreUsedBlocksToDisk(COptions *options); void saveToImage(CImage *image, COptions *options, CSavingWindow *gui); void restoreFromImage(CImage *image, COptions *options, CRestoringWindow *gui); int getStdInfos(char *szDest, int nMaxLen, bool bShowBlocksInfo); int readData(void *cBuffer, QWORD qwOffset, DWORD dwLength); int calculateSpaceFromBitmap(); int checkBitmapInfos(); void setSuperBlockInfos(BOOL bCheckSuperBlockUsedSize, BOOL bCheckSuperBlockFreeSize, QWORD qwSuperBlockUsedSize, QWORD qwSuperBlockFreeSize, BOOL bCanBeMore=false); private: QWORD m_qwSuperBlockUsedSize; QWORD m_qwSuperBlockFreeSize; BOOL m_bCheckSuperBlockUsedSize; BOOL m_bCheckSuperBlockFreeSize; BOOL m_bCanBeMore; public: // defined in CFSXXXXX //static int detect(BYTE *cBootSect, char *szFileSystem) {return 0;} // 1 if this is a XXX partition, 0 if not, -1 if error virtual void printfInformations() = 0; virtual void readBitmap(COptions *options)=0; virtual void readSuperBlock()=0; virtual void fsck()=0; virtual void*getInfos()=0; public: //private: CImage *m_image; CBlocksUseBitmap m_bitmap; QWORD m_qwPartSize; CSavingWindow *m_guiSave; CRestoringWindow *m_guiRestore; // ex: "/dev/hdc5" char m_szDevice[MAX_DEVICENAMELEN+1]; CLocalHeader m_header; // general infos (block count, block size, used space, ...) // File descriptors FILE *m_fDeviceFile; }; #endif // _FS_BASE_H_ partimage-0.6.8/src/client/fs/fs_ntfs.h0000644000000000000000000001331711252653177016502 0ustar rootroot/*************************************************************************** cntfspart.h - description ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_NTFS_H #define FS_NTFS_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; // format version of the ntfs image #define CURRENT_NTFS_FORMAT "0.1" #define MAX_NTFS_BLOCK_SIZE 8192 // for BSD #if !defined(__LITTLE_ENDIAN) && !defined(__BIG_ENDIAN) #if BYTE_ORDER == LITTLE_ENDIAN #define __LITTLE_ENDIAN #endif #if BYTE_ORDER == BIG_ENDIAN #define __BIG_ENDIAN #endif #endif #ifdef __LITTLE_ENDIAN #define CPU_TO_LE16(a) (a) #define CPU_TO_LE32(a) (a) #define CPU_TO_LE64(a) (a) #define LE16_TO_CPU(a) (a) #define LE32_TO_CPU(a) (a) #define LE64_TO_CPU(a) (a) #else /* Routines for big-endian machines */ #ifdef __BIG_ENDIAN /* We hope its big-endian, not PDP-endian :) */ #define CPU_TO_LE16(a) ((((a)&0xFF) << 8)|((a) >> 8)) #define CPU_TO_LE32(a) ((((a) & 0xFF) << 24) | (((a) & 0xFF00) << 8) | \ (((a) & 0xFF0000) >> 8) | ((a) >> 24)) #define CPU_TO_LE64(a) ((CPU_TO_LE32(a)<<32)|CPU_TO_LE32((a)>>32) #define LE16_TO_CPU(a) CPU_TO_LE16(a) #define LE32_TO_CPU(a) CPU_TO_LE32(a) #define LE64_TO_CPU(a) CPU_TO_LE64(a) #else #error "no __LITTLE_ENDIAN or __BIG_ENDIAN DEFINED" #endif #endif typedef BYTE ntfs_u8; typedef WORD ntfs_u16; typedef DWORD ntfs_u32; typedef QWORD ntfs_u64; typedef signed char ntfs_s8; typedef signed short ntfs_s16; typedef signed long ntfs_s32; typedef signed long long ntfs_s64; #define NTFS_GETU8(p) (*(ntfs_u8*)(p)) #define NTFS_GETU16(p) ((ntfs_u16)LE16_TO_CPU(*(ntfs_u16*)(p))) #define NTFS_GETU24(p) ((ntfs_u32)NTFS_GETU16(p) | ((ntfs_u32)NTFS_GETU8(((char*)(p))+2)<<16)) #define NTFS_GETU32(p) ((ntfs_u32)LE32_TO_CPU(*(ntfs_u32*)(p))) #define NTFS_GETU40(p) ((ntfs_u64)NTFS_GETU32(p)|(((ntfs_u64)NTFS_GETU8(((char*)(p))+4))<<32)) #define NTFS_GETU48(p) ((ntfs_u64)NTFS_GETU32(p)|(((ntfs_u64)NTFS_GETU16(((char*)(p))+4))<<32)) #define NTFS_GETU56(p) ((ntfs_u64)NTFS_GETU32(p)|(((ntfs_u64)NTFS_GETU24(((char*)(p))+4))<<32)) #define NTFS_GETU64(p) ((ntfs_u64)LE64_TO_CPU(*(ntfs_u64*)(p))) #define NTFS_GETS8(p) ((*(ntfs_s8*)(p))) #define NTFS_GETS16(p) ((ntfs_s16)LE16_TO_CPU(*(short*)(p))) #define NTFS_GETS24(p) (NTFS_GETU24(p) < 0x800000 ? (int)NTFS_GETU24(p) : (int)(NTFS_GETU24(p) - 0x1000000)) #define NTFS_GETS32(p) ((ntfs_s32)LE32_TO_CPU(*(int*)(p))) #define NTFS_GETS40(p) (((ntfs_s64)NTFS_GETU32(p)) | (((ntfs_s64)NTFS_GETS8(((char*)(p))+4)) << 32)) #define NTFS_GETS48(p) (((ntfs_s64)NTFS_GETU32(p)) | (((ntfs_s64)NTFS_GETS16(((char*)(p))+4)) << 32)) #define NTFS_GETS56(p) (((ntfs_s64)NTFS_GETU32(p)) | (((ntfs_s64)NTFS_GETS24(((char*)(p))+4)) << 32)) #define NTFS_GETS64(p) ((ntfs_s64)NTFS_GETU64(p)) // ================================================ class CNtfsRunList { private: QWORD *m_qwOffset; QWORD m_qwClustersCount; public: CNtfsRunList(); ~CNtfsRunList(); public: int setCluster(QWORD qwNumber, QWORD qwOffset); // ex: cluser 0 position is 12589 int init(QWORD qwClustersCount); void freeMemory(); void show(); QWORD offset(QWORD qwCluster); QWORD clustersCount(); }; // ================================================ struct CInfoNtfsHeader // size must be 16384 (adjust the reserved data) { QWORD qwTotalSectorsCount; QWORD qwLCNOfMftDataAttrib; DWORD dwFileRecordSize; DWORD dwClusterSize; WORD nBytesPerSector; WORD nNtfsVersion; BYTE cSectorsPerCluster; BYTE cReserved1[3]; BYTE cReserved[16352]; // Adjust to fit with total header size }; // ================================================ class CNtfsPart : public CFSBase { public: CNtfsPart(char *szDevice, FILE *fDeviceFilek, QWORD qwPartSize); ~CNtfsPart(); static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} // file reading options int readDataAttribute(BYTE *cAttribData, CNtfsRunList *runlist, QWORD *qwBitmapSize, QWORD *qwAllocatedSize); int readFilenameAttribute(BYTE *cAttribData, char *szFilename); int readFileRecord(BYTE *cRecordData, CNtfsRunList *runlist, QWORD *qwBitmapSize, QWORD *qwAllocatedSize); int processRunList(BYTE *cAttribData, CNtfsRunList *runlist, QWORD *qwAllocatedSize, QWORD *qwRealSize); int searchForRecordFilename(BYTE *cFileRecord, char *szFilename, char *szUnicodeName, int nUnicodeNameLen); int checkFilenameForRecordIs(BYTE *cRecordData, char *szFilename, bool bShowDebug = true); int readVolumeLabel(); private: // informations CInfoNtfsHeader m_info; }; #endif // FS_NTFS_H partimage-0.6.8/src/client/fs/Makefile.in0000644000000000000000000003607611256751264016743 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ subdir = src/client/fs DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libfs_a_AR = $(AR) $(ARFLAGS) libfs_a_LIBADD = am_libfs_a_OBJECTS = fs_base.$(OBJEXT) fs_afs.$(OBJEXT) \ fs_ext2.$(OBJEXT) fs_fat.$(OBJEXT) fs_hpfs.$(OBJEXT) \ fs_jfs.$(OBJEXT) fs_ntfs.$(OBJEXT) fs_reiser.$(OBJEXT) \ fs_hfs.$(OBJEXT) fs_ufs.$(OBJEXT) fs_xfs.$(OBJEXT) libfs_a_OBJECTS = $(am_libfs_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libfs_a_SOURCES) DIST_SOURCES = $(libfs_a_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -Wall CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/shared \ -I/usr/include/slang noinst_LIBRARIES = libfs.a noinst_HEADERS = fs_base.h fs_ext2.h fs_fat.h fs_hpfs.h fs_jfs.h fs_ntfs.h \ fs_reiser.h fs_ufs.h fs_xfs.h fs_afs.h fs_hfs.h fs_be.h libfs_a_SOURCES = \ fs_base.cpp \ fs_afs.cpp \ fs_ext2.cpp \ fs_fat.cpp \ fs_hpfs.cpp \ fs_jfs.cpp \ fs_ntfs.cpp \ fs_reiser.cpp \ fs_hfs.cpp \ fs_ufs.cpp \ fs_xfs.cpp MAINTAINERCLEANFILES = Makefile.in all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/client/fs/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/client/fs/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libfs.a: $(libfs_a_OBJECTS) $(libfs_a_DEPENDENCIES) -rm -f libfs.a $(libfs_a_AR) libfs.a $(libfs_a_OBJECTS) $(libfs_a_LIBADD) $(RANLIB) libfs.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_afs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_base.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_ext2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_fat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_hfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_hpfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_jfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_ntfs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_reiser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_ufs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fs_xfs.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) $(HEADERS) 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-dvi: install-dvi-am 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 installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags 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 uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: partimage-0.6.8/src/client/fs/fs_ufs.h0000644000000000000000000006652511252653177016336 0ustar rootroot/*************************************************************************** fs_ufs.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_UFS_H #define FS_UFS_H #include "partimage.h" #include "fs_base.h" #include // ================================================ // ================================================ // ================================================ /* * Cylinder group macros to locate things in cylinder groups. * They calc file system addresses of cylinder group data structures. */ /*#define ufs_cgbase(sb,c) (sb.fs_fpg * (c)) #define ufs_cgstart(sb,c) (ufs_cgbase(sb,c) + sb.fs_cgoffset * ((c) & ~sb.fs_cgmask)) #define ufs_cgsblock(sb,c) (ufs_cgstart(sb,c) + sb.fs_sblkno) // super blk #define ufs_cgcmin(sb,c) (ufs_cgstart(sb,c) + sb.fs_cblkno) // cg block #define ufs_cgimin(sb,c) (ufs_cgstart(sb,c) + sb.fs_iblkno) // inode blk #define ufs_cgdmin(sb,c) (ufs_cgstart(sb,c) + sb.fs_dblkno) // 1st data #define ufs_cgcmin(sb,c) (ufs_cgstart(sb,c) + sb.fs_cblkno) // cg block #define ufs_cgcmin(sb,c) ((ufs_cgbase(sb,c) + sb.fs_cgoffset * ((c) & ~sb.fs_cgmask)) + sb.fs_cblkno) // cg block */ #define ufs_cgcmin_sb(sb,c) (((sb.fs_fpg * (c)) + sb.fs_cgoffset * ((c) & ~sb.fs_cgmask)) + sb.fs_cblkno) // cg block #define ufs_cgcmin(fs_fpg,fs_cgoffset,fs_cgmask,fs_cblkno,c) (((fs_fpg * (c)) + fs_cgoffset * ((c) & ~fs_cgmask)) + fs_cblkno) // cg block // ================================================ // ================================================ // ================================================ typedef int32_t ufs_daddr_t; #define MAXFRAG 8 // ================================================ // ===== Headers taken in FreeBSD 4.3 sources ===== // =============== sys/ufs/ffs/fs.h =============== // ================================================ /* * Each disk drive contains some number of file systems. * A file system consists of a number of cylinder groups. * Each cylinder group has inodes and data. * * A file system is described by its super-block, which in turn * describes the cylinder groups. The super-block is critical * data and is replicated in each cylinder group to protect against * catastrophic loss. This is done at `newfs' time and the critical * super-block data does not change, so the copies need not be * referenced further unless disaster strikes. * * For file system fs, the offsets of the various blocks of interest * are given in the super block as: * [fs->fs_sblkno] Super-block * [fs->fs_cblkno] Cylinder group block * [fs->fs_iblkno] Inode blocks * [fs->fs_dblkno] Data blocks * The beginning of cylinder group cg in fs, is given by * the ``cgbase(fs, cg)'' macro. * * The first boot and super blocks are given in absolute disk addresses. * The byte-offset forms are preferred, as they don't imply a sector size. */ #define BBSIZE 8192 #define SBSIZE 8192 #define BBOFF ((off_t)(0)) #define SBOFF ((off_t)(BBOFF + BBSIZE)) #define BBLOCK ((ufs_daddr_t)(0)) #define SBLOCK ((ufs_daddr_t)(BBLOCK + BBSIZE / DEV_BSIZE)) /* * Addresses stored in inodes are capable of addressing fragments * of `blocks'. File system blocks of at most size MAXBSIZE can * be optionally broken into 2, 4, or 8 pieces, each of which is * addressable; these pieces may be DEV_BSIZE, or some multiple of * a DEV_BSIZE unit. * * Large files consist of exclusively large data blocks. To avoid * undue wasted disk space, the last data block of a small file may be * allocated as only as many fragments of a large block as are * necessary. The file system format retains only a single pointer * to such a fragment, which is a piece of a single large block that * has been divided. The size of such a fragment is determinable from * information in the inode, using the ``blksize(fs, ip, lbn)'' macro. * * The file system records space availability at the fragment level; * to determine block availability, aligned fragments are examined. */ /* * MINBSIZE is the smallest allowable block size. * In order to insure that it is possible to create files of size * 2^32 with only two levels of indirection, MINBSIZE is set to 4096. * MINBSIZE must be big enough to hold a cylinder group block, * thus changes to (struct cg) must keep its size within MINBSIZE. * Note that super blocks are always of size SBSIZE, * and that both SBSIZE and MAXBSIZE must be >= MINBSIZE. */ #define MINBSIZE 4096 /* * The path name on which the file system is mounted is maintained * in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in * the super block for this name. */ #define MAXMNTLEN 512 /* * There is a 128-byte region in the superblock reserved for in-core * pointers to summary information. Originally this included an array * of pointers to blocks of struct csum; now there are just two * pointers and the remaining space is padded with fs_ocsp[]. * * NOCSPTRS determines the size of this padding. One pointer (fs_csp) * is taken away to point to a contiguous array of struct csum for * all cylinder groups; a second (fs_maxcluster) points to an array * of cluster sizes that is computed as cylinder groups are inspected. */ #define NOCSPTRS ((128 / sizeof(void *)) - 2) /* * A summary of contiguous blocks of various sizes is maintained * in each cylinder group. Normally this is set by the initial * value of fs_maxcontig. To conserve space, a maximum summary size * is set by FS_MAXCONTIG. */ #define FS_MAXCONTIG 16 /* * MINFREE gives the minimum acceptable percentage of file system * blocks which may be free. If the freelist drops below this level * only the superuser may continue to allocate blocks. This may * be set to 0 if no reserve of free blocks is deemed necessary, * however throughput drops by fifty percent if the file system * is run at between 95% and 100% full; thus the minimum default * value of fs_minfree is 5%. However, to get good clustering * performance, 10% is a better choice. hence we use 10% as our * default value. With 10% free space, fragmentation is not a * problem, so we choose to optimize for time. */ #define MINFREE 8 #define DEFAULTOPT FS_OPTTIME /* * Per cylinder group information; summarized in blocks allocated * from first cylinder group data blocks. These blocks have to be * read in from fs_csaddr (size fs_cssize) in addition to the * super block. */ struct csum { int32_t cs_ndir; /* number of directories */ int32_t cs_nbfree; /* number of free blocks */ int32_t cs_nifree; /* number of free inodes */ int32_t cs_nffree; /* number of free frags */ }; /* * Super block for an FFS file system. */ struct ufsSuperBlock { int32_t fs_firstfield; /* historic file system linked list, */ int32_t fs_unused_1; /* used for incore super blocks */ ufs_daddr_t fs_sblkno; /* addr of super-block in filesys */ ufs_daddr_t fs_cblkno; /* offset of cyl-block in filesys */ ufs_daddr_t fs_iblkno; /* offset of inode-blocks in filesys */ ufs_daddr_t fs_dblkno; /* offset of first data after cg */ int32_t fs_cgoffset; /* cylinder group offset in cylinder */ int32_t fs_cgmask; /* used to calc mod fs_ntrak */ time_t fs_time; /* last time written */ int32_t fs_size; /* number of blocks in fs */ int32_t fs_dsize; /* number of data blocks in fs */ int32_t fs_ncg; /* number of cylinder groups */ int32_t fs_bsize; /* size of basic blocks in fs */ int32_t fs_fsize; /* size of frag blocks in fs */ int32_t fs_frag; /* number of frags in a block in fs */ /* these are configuration parameters */ int32_t fs_minfree; /* minimum percentage of free blocks */ int32_t fs_rotdelay; /* num of ms for optimal next block */ int32_t fs_rps; /* disk revolutions per second */ /* these fields can be computed from the others */ int32_t fs_bmask; /* ``blkoff'' calc of blk offsets */ int32_t fs_fmask; /* ``fragoff'' calc of frag offsets */ int32_t fs_bshift; /* ``lblkno'' calc of logical blkno */ int32_t fs_fshift; /* ``numfrags'' calc number of frags */ /* these are configuration parameters */ int32_t fs_maxcontig; /* max number of contiguous blks */ int32_t fs_maxbpg; /* max number of blks per cyl group */ /* these fields can be computed from the others */ int32_t fs_fragshift; /* block to frag shift */ int32_t fs_fsbtodb; /* fsbtodb and dbtofsb shift constant */ int32_t fs_sbsize; /* actual size of super block */ int32_t fs_csmask; /* csum block offset (now unused) */ int32_t fs_csshift; /* csum block number (now unused) */ int32_t fs_nindir; /* value of NINDIR */ int32_t fs_inopb; /* value of INOPB */ int32_t fs_nspf; /* value of NSPF */ /* yet another configuration parameter */ int32_t fs_optim; /* optimization preference, see below */ /* these fields are derived from the hardware */ int32_t fs_npsect; /* # sectors/track including spares */ int32_t fs_interleave; /* hardware sector interleave */ int32_t fs_trackskew; /* sector 0 skew, per track */ /* fs_id takes the space of the unused fs_headswitch and fs_trkseek fields */ int32_t fs_id[2]; /* unique filesystem id */ /* sizes determined by number of cylinder groups and their sizes */ ufs_daddr_t fs_csaddr; /* blk addr of cyl grp summary area */ int32_t fs_cssize; /* size of cyl grp summary area */ int32_t fs_cgsize; /* cylinder group size */ /* these fields are derived from the hardware */ int32_t fs_ntrak; /* tracks per cylinder */ int32_t fs_nsect; /* sectors per track */ int32_t fs_spc; /* sectors per cylinder */ /* this comes from the disk driver partitioning */ int32_t fs_ncyl; /* cylinders in file system */ /* these fields can be computed from the others */ int32_t fs_cpg; /* cylinders per group */ int32_t fs_ipg; /* inodes per group */ int32_t fs_fpg; /* blocks per group * fs_frag */ /* this data must be re-computed after crashes */ struct csum fs_cstotal; /* cylinder summary information */ /* these fields are cleared at mount time */ int8_t fs_fmod; /* super block modified flag */ int8_t fs_clean; /* file system is clean flag */ int8_t fs_ronly; /* mounted read-only flag */ int8_t fs_flags; /* see FS_ flags below */ u_char fs_fsmnt[MAXMNTLEN]; /* name mounted on */ /* these fields retain the current block allocation info */ int32_t fs_cgrotor; /* last cg searched */ void *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */ struct csum *fs_csp; /* cg summary info buffer for fs_cs */ int32_t *fs_maxcluster; /* max cluster in each cyl group */ int32_t fs_cpc; /* cyl per cycle in postbl */ int16_t fs_opostbl[16][8]; /* old rotation block list head */ int32_t fs_sparecon[50]; /* reserved for future constants */ int32_t fs_contigsumsize; /* size of cluster summary array */ int32_t fs_maxsymlinklen; /* max length of an internal symlink */ int32_t fs_inodefmt; /* format of on-disk inodes */ u_int64_t fs_maxfilesize; /* maximum representable file size */ int64_t fs_qbmask; /* ~fs_bmask for use with 64-bit size */ int64_t fs_qfmask; /* ~fs_fmask for use with 64-bit size */ int32_t fs_state; /* validate fs_clean field */ int32_t fs_postblformat; /* format of positional layout tables */ int32_t fs_nrpos; /* number of rotational positions */ int32_t fs_postbloff; /* (u_int16) rotation block list head */ int32_t fs_rotbloff; /* (u_int8) blocks for each rotation */ int32_t fs_magic; /* magic number */ u_int8_t fs_space[1]; /* list of blocks for each rotation */ /* actually longer */ }; /* * Filesystem identification */ #define UFS_SUPER_MAGIC 0x011954 /* the fast filesystem magic number */ #define FS_OKAY 0x7c269d38 /* superblock checksum */ #define FS_42INODEFMT -1 /* 4.2BSD inode format */ #define FS_44INODEFMT 2 /* 4.4BSD inode format */ /* * Preference for optimization. */ #define FS_OPTTIME 0 /* minimize allocation time */ #define FS_OPTSPACE 1 /* minimize disk fragmentation */ /* * Filesystem flags. */ #define FS_UNCLEAN 0x01 /* filesystem not clean at mount */ #define FS_DOSOFTDEP 0x02 /* filesystem using soft dependencies */ /* * Rotational layout table format types */ #define FS_42POSTBLFMT -1 /* 4.2BSD rotational table format */ #define FS_DYNAMICPOSTBLFMT 1 /* dynamic rotational table format */ /* * Macros for access to superblock array structures */ #define fs_postbl(fs, cylno) \ (((fs)->fs_postblformat == FS_42POSTBLFMT) \ ? ((fs)->fs_opostbl[cylno]) \ : ((int16_t *)((u_int8_t *)(fs) + \ (fs)->fs_postbloff) + (cylno) * (fs)->fs_nrpos)) #define fs_rotbl(fs) \ (((fs)->fs_postblformat == FS_42POSTBLFMT) \ ? ((fs)->fs_space) \ : ((u_int8_t *)((u_int8_t *)(fs) + (fs)->fs_rotbloff))) /* * The size of a cylinder group is calculated by CGSIZE. The maximum size * is limited by the fact that cylinder groups are at most one block. * Its size is derived from the size of the maps maintained in the * cylinder group and the (struct cg) size. */ #define CGSIZE(fs) \ /* base cg */ (sizeof(struct cg) + sizeof(int32_t) + \ /* blktot size */ (fs)->fs_cpg * sizeof(int32_t) + \ /* blks size */ (fs)->fs_cpg * (fs)->fs_nrpos * sizeof(int16_t) + \ /* inode map */ howmany((fs)->fs_ipg, NBBY) + \ /* block map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPF(fs), NBBY) +\ /* if present */ ((fs)->fs_contigsumsize <= 0 ? 0 : \ /* cluster sum */ (fs)->fs_contigsumsize * sizeof(int32_t) + \ /* cluster map */ howmany((fs)->fs_cpg * (fs)->fs_spc / NSPB(fs), NBBY))) /* * Convert cylinder group to base address of its global summary info. */ #define fs_cs(fs, indx) fs_csp[indx] /* * Cylinder group block for a file system. */ #define CG_MAGIC 0x090255 struct cylinderGroupHeader { int32_t cg_firstfield; /* historic cyl groups linked list */ int32_t cg_magic; /* magic number */ time_t cg_time; /* time last written */ int32_t cg_cgx; /* we are the cgx'th cylinder group */ int16_t cg_ncyl; /* number of cyl's this cg */ int16_t cg_niblk; /* number of inode blocks this cg */ int32_t cg_ndblk; /* number of data blocks this cg */ struct csum cg_cs; /* cylinder summary information */ int32_t cg_rotor; /* position of last used block */ int32_t cg_frotor; /* position of last used frag */ int32_t cg_irotor; /* position of last used inode */ int32_t cg_frsum[MAXFRAG]; /* counts of available frags */ int32_t cg_btotoff; /* (int32) block totals per cylinder */ int32_t cg_boff; /* (u_int16) free block positions */ int32_t cg_iusedoff; /* (u_int8) used inode map */ int32_t cg_freeoff; /* (u_int8) free block map */ int32_t cg_nextfreeoff; /* (u_int8) next available space */ int32_t cg_clustersumoff; /* (u_int32) counts of avail clusters */ int32_t cg_clusteroff; /* (u_int8) free cluster map */ int32_t cg_nclusterblks; /* number of clusters this cg */ int32_t cg_sparecon[13]; /* reserved for future use */ u_int8_t cg_space[1]; /* space for cylinder group maps */ /* actually longer */ }; /* * Macros for access to cylinder group array structures */ #define cg_blktot(cgp) \ (((cgp)->cg_magic != CG_MAGIC) \ ? (((struct ocg *)(cgp))->cg_btot) \ : ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_btotoff))) #define cg_blks(fs, cgp, cylno) \ (((cgp)->cg_magic != CG_MAGIC) \ ? (((struct ocg *)(cgp))->cg_b[cylno]) \ : ((int16_t *)((u_int8_t *)(cgp) + \ (cgp)->cg_boff) + (cylno) * (fs)->fs_nrpos)) #define cg_inosused(cgp) \ (((cgp)->cg_magic != CG_MAGIC) \ ? (((struct ocg *)(cgp))->cg_iused) \ : ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff))) #define cg_blksfree(cgp) \ (((cgp)->cg_magic != CG_MAGIC) \ ? (((struct ocg *)(cgp))->cg_free) \ : ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff))) #define cg_chkmagic(cgp) \ ((cgp)->cg_magic == CG_MAGIC || ((struct ocg *)(cgp))->cg_magic == CG_MAGIC) #define cg_clustersfree(cgp) \ ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff)) #define cg_clustersum(cgp) \ ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_clustersumoff)) /* * Turn file system block numbers into disk block addresses. * This maps file system blocks to device size blocks. */ #define fsbtodb(fs, b) ((b) << (fs)->fs_fsbtodb) #define dbtofsb(fs, b) ((b) >> (fs)->fs_fsbtodb) /* * Cylinder group macros to locate things in cylinder groups. * They calc file system addresses of cylinder group data structures. */ #define cgbase(fs, c) ((ufs_daddr_t)((fs)->fs_fpg * (c))) #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ #define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */ #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ #define cgstart(fs, c) \ (cgbase(fs, c) + (fs)->fs_cgoffset * ((c) & ~((fs)->fs_cgmask))) /* * Macros for handling inode numbers: * inode number to file system block offset. * inode number to cylinder group number. * inode number to file system block address. */ #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) #define ino_to_fsba(fs, x) \ ((ufs_daddr_t)(cgimin(fs, ino_to_cg(fs, x)) + \ (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs)))))) #define ino_to_fsbo(fs, x) ((x) % INOPB(fs)) /* * Give cylinder group number for a file system block. * Give cylinder group block number for a file system block. */ #define dtog(fs, d) ((d) / (fs)->fs_fpg) #define dtogd(fs, d) ((d) % (fs)->fs_fpg) /* * Extract the bits for a block from a map. * Compute the cylinder and rotational position of a cyl block addr. */ #define blkmap(fs, map, loc) \ (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag))) #define cbtocylno(fs, bno) \ ((bno) * NSPF(fs) / (fs)->fs_spc) #define cbtorpos(fs, bno) \ (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \ (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \ (fs)->fs_nsect * (fs)->fs_nrpos / (fs)->fs_npsect) /* * The following macros optimize certain frequently calculated * quantities by using shifts and masks in place of divisions * modulos and multiplications. */ #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ ((loc) & (fs)->fs_qbmask) #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \ ((loc) & (fs)->fs_qfmask) #define lblktosize(fs, blk) /* calculates ((off_t)blk * fs->fs_bsize) */ \ ((off_t)(blk) << (fs)->fs_bshift) /* Use this only when `blk' is known to be small, e.g., < NDADDR. */ #define smalllblktosize(fs, blk) /* calculates (blk * fs->fs_bsize) */ \ ((blk) << (fs)->fs_bshift) #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ ((loc) >> (fs)->fs_bshift) #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ ((loc) >> (fs)->fs_fshift) #define blkroundup(fs, size) /* calculates roundup(size, fs->fs_bsize) */ \ (((size) + (fs)->fs_qbmask) & (fs)->fs_bmask) #define fragroundup(fs, size) /* calculates roundup(size, fs->fs_fsize) */ \ (((size) + (fs)->fs_qfmask) & (fs)->fs_fmask) #define fragstoblks(fs, frags) /* calculates (frags / fs->fs_frag) */ \ ((frags) >> (fs)->fs_fragshift) #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ ((blks) << (fs)->fs_fragshift) #define fragnum(fs, fsb) /* calculates (fsb % fs->fs_frag) */ \ ((fsb) & ((fs)->fs_frag - 1)) #define blknum(fs, fsb) /* calculates rounddown(fsb, fs->fs_frag) */ \ ((fsb) &~ ((fs)->fs_frag - 1)) /* * Determine the number of available frags given a * percentage to hold in reserve. */ #define freespace(fs, percentreserved) \ (blkstofrags((fs), (fs)->fs_cstotal.cs_nbfree) + \ (fs)->fs_cstotal.cs_nffree - \ ((off_t)((fs)->fs_dsize) * (percentreserved) / 100)) /* * Determining the size of a file block in the file system. */ #define blksize(fs, ip, lbn) \ (((lbn) >= NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \ ? (fs)->fs_bsize \ : (fragroundup(fs, blkoff(fs, (ip)->i_size)))) #define dblksize(fs, dip, lbn) \ (((lbn) >= NDADDR || (dip)->di_size >= smalllblktosize(fs, (lbn) + 1)) \ ? (fs)->fs_bsize \ : (fragroundup(fs, blkoff(fs, (dip)->di_size)))) #define sblksize(fs, size, lbn) \ (((lbn) >= NDADDR || (size) >= ((lbn) + 1) << (fs)->fs_bshift) \ ? (fs)->fs_bsize \ : (fragroundup(fs, blkoff(fs, (size))))) /* * Number of disk sectors per block/fragment; assumes DEV_BSIZE byte * sector size. */ #define NSPB(fs) ((fs)->fs_nspf << (fs)->fs_fragshift) #define NSPF(fs) ((fs)->fs_nspf) /* * Number of inodes in a secondary storage block/fragment. */ #define INOPB(fs) ((fs)->fs_inopb) #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) /* * Number of indirects in a file system block. */ #define NINDIR(fs) ((fs)->fs_nindir) // ================================================ // ================================================ // ================================================ // ================================================ struct CInfoUfsHeader // size must be 16384 (adjust the reserved data) { DWORD dwCylinderGroupsCount; DWORD fs_fpg; DWORD fs_cgoffset; DWORD fs_cgmask; DWORD fs_cblkno; DWORD dwFragsPerBlock; // number of frags in a block in fs DWORD dwCylinderGroupSize; // cylinder group size DWORD dwBasicBlockSize; QWORD qwDataFrags; BYTE cReserved[16344]; // Adjust to fit with total header size }; // ================================================ class CUfsPart: public CFSBase { public: CUfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CUfsPart(); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: CInfoUfsHeader m_info; }; // ================================================ // ================================================ // ================================================ #define MAXUFSPARTITIONS 22 //#define UFS_MAGIC ((u_int32_t)0x57455682) // The UFS magic number #define UFS_MAGIC ((u_int32_t)0x82564557) // The UFS magic number #ifndef __LINUX_UFS_FS_H #define UFS_BBLOCK 0 #define UFS_BBSIZE 8192 #define UFS_SBLOCK 8192 #define UFS_SBSIZE 8192 #define UFS_SECTOR_SIZE 512 #define UFS_SECTOR_BITS 9 #endif // ================================================ struct CUFSPartition // the partition table { u_int32_t p_size; // number of sectors in partition u_int32_t p_offset; // starting sector u_int32_t p_fsize; // filesystem basic fragment size u_int8_t p_fstype; // filesystem type, see below u_int8_t p_frag; // filesystem fragments per block union { u_int16_t cpg; // UFS: FS cylinders per group u_int16_t sgs; // LFS: FS segment shift }; //#define p_cpg __partition_u1.cpg //#define p_sgs __partition_u1.sgs }; // ================================================ struct CUFSDiskLabel { u_int32_t d_magic; // the magic number u_int16_t d_type; // drive type u_int16_t d_subtype; // controller/d_type specific char d_typename[16]; // type name, e.g. "eagle" /* * d_packname contains the pack identifier and is returned when * the disklabel is read off the disk or in-core copy. * d_boot0 and d_boot1 are the (optional) names of the * primary (block 0) and secondary (block 1-15) bootstraps * as found in /usr/mdec. These are returned when using * getdiskbyname(3) to retrieve the values from /etc/disktab. */ union { char un_d_packname[16]; // pack identifier struct { char *un_d_boot0; /* primary bootstrap name */ char *un_d_boot1; /* secondary bootstrap name */ } un_b; } d_un; #define d_packname d_un.un_d_packname #define d_boot0 d_un.un_b.un_d_boot0 #define d_boot1 d_un.un_b.un_d_boot1 /* disk geometry: */ u_int32_t d_secsize; /* # of bytes per sector */ u_int32_t d_nsectors; /* # of data sectors per track */ u_int32_t d_ntracks; /* # of tracks per cylinder */ u_int32_t d_ncylinders; /* # of data cylinders per unit */ u_int32_t d_secpercyl; /* # of data sectors per cylinder */ u_int32_t d_secperunit; /* # of data sectors per unit */ /* * Spares (bad sector replacements) below are not counted in * d_nsectors or d_secpercyl. Spare sectors are assumed to * be physical sectors which occupy space at the end of each * track and/or cylinder. */ u_int16_t d_sparespertrack; /* # of spare sectors per track */ u_int16_t d_sparespercyl; /* # of spare sectors per cylinder */ /* * Alternate cylinders include maintenance, replacement, configuration * description areas, etc. */ u_int32_t d_acylinders; /* # of alt. cylinders per unit */ /* hardware characteristics: */ /* * d_interleave, d_trackskew and d_cylskew describe perturbations * in the media format used to compensate for a slow controller. * Interleave is physical sector interleave, set up by the * formatter or controller when formatting. When interleaving is * in use, logically adjacent sectors are not physically * contiguous, but instead are separated by some number of * sectors. It is specified as the ratio of physical sectors * traversed per logical sector. Thus an interleave of 1:1 * implies contiguous layout, while 2:1 implies that logical * sector 0 is separated by one sector from logical sector 1. * d_trackskew is the offset of sector 0 on track N relative to * sector 0 on track N-1 on the same cylinder. Finally, d_cylskew * is the offset of sector 0 on cylinder N relative to sector 0 * on cylinder N-1. */ u_int16_t d_rpm; /* rotational speed */ u_int16_t d_interleave; /* hardware sector interleave */ u_int16_t d_trackskew; /* sector 0 skew, per track */ u_int16_t d_cylskew; /* sector 0 skew, per cylinder */ u_int32_t d_headswitch; /* head switch time, usec */ u_int32_t d_trkseek; /* track-to-track seek, usec */ u_int32_t d_flags; /* generic flags */ #define NDDATA 5 u_int32_t d_drivedata[NDDATA]; /* drive-type specific information */ #define NSPARE 5 u_int32_t d_spare[NSPARE]; /* reserved for future use */ u_int32_t d_magic2; /* the magic number (again) */ u_int16_t d_checksum; /* xor of data incl. partitions */ /* filesystem and partition information: */ u_int16_t d_npartitions; /* number of partitions in following */ u_int32_t d_bbsize; /* size of boot area at sn0, bytes */ u_int32_t d_sbsize; /* max size of fs superblock, bytes */ CUFSPartition d_partitions[MAXUFSPARTITIONS]; /* actually may be more */ }; /*static char *fstypenames[] = { "unused", "swap", "Version6", "Version7", "SystemV", "4.1BSD", "Eighth-Edition", "4.2BSD", "MSDOS", "4.4LFS", "unknown", "HPFS", "ISO9660", "boot", "ADOS", "HFS", "ADFS", "ext2fs", "ccd", "RAID", NULL };*/ #endif // FS_UFS_H partimage-0.6.8/src/client/fs/fs_fat.h0000644000000000000000000000634211252653177016302 0ustar rootroot/*************************************************************************** cfatpart.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_FAT_H #define FS_FAT_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; #define MAX_BOOT_SIZE 4096 #define fat32to28(A) (A & 0x0FFFFFFF) #define LOGICAL_FAT_BLKSIZE 512 // the size of the abstract block used in CFSBase // ================================================ struct CFatFsInfoSector { DWORD dwMagic; // Magic for info sector ('RRaA') BYTE junk[0x1dc]; DWORD reserved1; // Nothing as far as I can tell DWORD signature; // 0x61417272 ('rrAa') DWORD dwFreeClusters; // Free cluster count. -1 if unknown DWORD dwNextCluster; // Most recently allocated cluster. DWORD reserved2[3]; WORD reserved3; WORD boot_sign; }; // ================================================ struct CInfoFatHeader // size must be 16384 (adjust the reserved data) { DWORD dwTotalSectorsCount; DWORD dwClustersCount; DWORD dwRootDirSectors; DWORD dwRootEntriesCount; DWORD dwSectorsPerFAT; DWORD dwDataSectors; DWORD dwFileSystem; DWORD dwUsedClusters; DWORD dwDamagedClusters; DWORD dwFreeClusters; DWORD dwBytesPerFatEntry; DWORD dwReserved; // reserved to align data WORD wBytesPerSector; WORD wReservedSectorsCount; WORD wRootEntriesCount; BYTE cSectorsPerCluster; BYTE cNumberOfFATs; WORD wFsInfoSector; BYTE cReserved[16326]; // Adjust to fit with total header size }; // ================================================ class CFatPart: public CFSBase { public: CFatPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CFatPart(); static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} void compareFatCopies(); int readFSInfo(WORD wFsInfoSector); //int checkFatDamagedClusters(DWORD *dwDamagedClusters, DWORD *dwUsedClusters, DWORD *dwFreeClusters); private: CInfoFatHeader m_info; }; #endif // FS_FAT_H partimage-0.6.8/src/client/fs/fs_ext2.h0000644000000000000000000001462511252653177016415 0ustar rootroot/*************************************************************************** fs_ext2.h - EXT2FS (Linux standard) File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_EXT2_H #define FS_EXT2_H #include "partimage.h" #include "fs_base.h" #include #define LOGICAL_EXT2_BLKSIZE 1024 // 512 // the size of the abstract block used in CFSBase #define ISEXT3FS (m_info.dwFeatureCompat & EXT3_FEATURE_COMPAT_HAS_JOURNAL) // ================================================ #define EXT2_SUPER_MAGIC 0xEF53 #define EXT2_BOOTSECT_LEN 1024 #define EXT2_MIN_BLOCK_SIZE 1024 #define EXT2_MAX_BLOCK_SIZE 4096 #define EXT2_MIN_BLOCK_LOG_SIZE 10 // ================================================ #ifndef EXT2_FEATURE_COMPAT_DIR_PREALLOC #define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 #endif #ifndef EXT2_FEATURE_COMPAT_IMAGIC_INODES #define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 #endif #ifndef EXT3_FEATURE_COMPAT_HAS_JOURNAL #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 #endif #ifndef EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER #define EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER 0x0001 #endif #ifndef EXT2_FEATURE_RO_COMPAT_LARGE_FILE #define EXT2_FEATURE_RO_COMPAT_LARGE_FILE 0x0002 #endif #ifndef EXT2_FEATURE_RO_COMPAT_BTREE_DIR #define EXT2_FEATURE_RO_COMPAT_BTREE_DIR 0x0004 #endif // ================================================ struct CInfoExt2Header // size must be 16384 (adjust the reserved data) { DWORD dwGroupsCount; DWORD dwTotalBlocksCount; DWORD dwFirstBlock; DWORD dwBlockSize; DWORD dwLogicalBlocksPerExt2Block; DWORD dwBlocksPerGroup; DWORD dwFeatureCompat; // compatible feature set DWORD dwFeatureIncompat; // incompatible feature set DWORD dwFeatureRoCompat; // readonly-compatible feature set DWORD dwRevLevel; // Revision level char cUuid[16]; // 128-bit uuid for volume DWORD dwDescBlocks; DWORD dwDescPerBlock; BYTE cReserved[16320]; // Adjust to fit with total header size }; // ================================================ class CExt2Part : public CFSBase { public: CExt2Part(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CExt2Part(); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: int testRoot(int a, int b); bool doesGroupHasSuper(int nGroupDescNb); private: CInfoExt2Header m_info; }; // ================================================ // Structure of the super block struct CExt2Super { __u32 s_inodes_count; // Inodes count __u32 s_blocks_count; // Blocks count __u32 s_r_blocks_count; // Reserved blocks count __u32 s_free_blocks_count; // Free blocks count __u32 s_free_inodes_count; // Free inodes count __u32 s_first_data_block; // First Data Block __u32 s_log_block_size; // Block size __s32 s_log_frag_size; // Fragment size __u32 s_blocks_per_group; // # Blocks per group __u32 s_frags_per_group; // # Fragments per group __u32 s_inodes_per_group; // # Inodes per group __u32 s_mtime; // Mount time __u32 s_wtime; // Write time __u16 s_mnt_count; // Mount count __s16 s_max_mnt_count; // Maximal mount count __u16 s_magic; // Magic signature __u16 s_state; // File system state __u16 s_errors; // Behaviour when detecting errors __u16 s_minor_rev_level; // minor revision level __u32 s_lastcheck; // time of last check __u32 s_checkinterval; // max. time between checks __u32 s_creator_os; // OS __u32 s_rev_level; // Revision level __u16 s_def_resuid; // Default uid for reserved blocks __u16 s_def_resgid; // Default gid for reserved blocks /* * These fields are for EXT2_DYNAMIC_REV superblocks only. * * Note: the difference between the compatible feature set and * the incompatible feature set is that if there is a bit set * in the incompatible feature set that the kernel doesn't * know about, it should refuse to mount the filesystem. * * e2fsck's requirements are more strict; if it doesn't know * about a feature in either the compatible or incompatible * feature set, it must abort and not try to meddle with * things it doesn't understand... */ __u32 s_first_ino; /* First non-reserved inode */ __u16 s_inode_size; /* size of inode structure */ __u16 s_block_group_nr; /* block group # of this superblock */ __u32 s_feature_compat; /* compatible feature set */ __u32 s_feature_incompat; /* incompatible feature set */ __u32 s_feature_ro_compat; /* readonly-compatible feature set */ __u8 s_uuid[16]; /* 128-bit uuid for volume */ char s_volume_name[16]; /* volume name */ char s_last_mounted[64]; /* directory where last mounted */ __u32 s_algorithm_usage_bitmap; /* For compression */ /* * Performance hints. Directory preallocation should only * happen if the EXT2_COMPAT_PREALLOC flag is on. */ __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/ __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */ __u16 s_padding1; __u32 s_reserved[204]; /* Padding to the end of the block */ }; // ================================================ // Structure of a blocks group descriptor struct CExt2GroupDesc { __u32 bg_block_bitmap; // Blocks bitmap block __u32 bg_inode_bitmap; // Inodes bitmap block __u32 bg_inode_table; // Inodes table block __u16 bg_free_blocks_count; // Free blocks count __u16 bg_free_inodes_count; // Free inodes count __u16 bg_used_dirs_count; // Directories count __u16 bg_pad; __u32 bg_reserved[3]; }; #endif // FS_EXT2_H partimage-0.6.8/src/client/fs/fs_hfs.h0000644000000000000000000001433511252653177016311 0ustar rootroot/*************************************************************************** fs_hfs.h - HFS/HFS+: MacOs, Hierarchical File System ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_HFS_H #define FS_HFS_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; /* offsets to various blocks */ #define HFS_DD_BLK 0 /* Driver Descriptor block */ #define HFS_PMAP_BLK 1 /* First block of partition map */ #define HFS_MDB_BLK 2 /* Block (w/i partition) of MDB */ /* magic numbers for various disk blocks */ #define HFS_DRVR_DESC_MAGIC 0x4552 /* "ER": driver descriptor map */ #define HFS_OLD_PMAP_MAGIC 0x5453 /* "TS": old-type partition map */ #define HFS_NEW_PMAP_MAGIC 0x504D /* "PM": new-type partition map */ #define HFS_SUPER_MAGIC 0x4244 /* "BD": HFS MDB (super block) */ #define HFS_MFS_SUPER_MAGIC 0xD2D7 /* MFS MDB (super block) */ /* magic numbers for various internal structures */ #define HFS_FILE_MAGIC 0x4801 #define HFS_DIR_MAGIC 0x4802 #define HFS_MDB_MAGIC 0x4803 #define HFS_EXT_MAGIC 0x4804 /* XXX currently unused */ #define HFS_BREC_MAGIC 0x4811 /* XXX currently unused */ #define HFS_BTREE_MAGIC 0x4812 #define HFS_BNODE_MAGIC 0x4813 /* various FIXED size parameters */ #define HFS_SECTOR_SIZE 512 /* size of an HFS sector */ #define HFS_SECTOR_SIZE_BITS 9 /* log_2(HFS_SECTOR_SIZE) */ #define HFS_NAMELEN 31 /* maximum length of an HFS filename */ #define HFS_NAMEMAX (3*31) /* max size of ENCODED filename */ #define HFS_BM_MAXBLOCKS (16) /* max number of bitmap blocks */ #define HFS_BM_BPB (8*HFS_SECTOR_SIZE) /* number of bits per bitmap block */ #define HFS_MAX_VALENCE 32767U #define HFS_FORK_MAX (0x7FFFFFFF) struct hfs_btree; /* Typedefs for unaligned integer types */ typedef unsigned char hfs_byte_t; typedef unsigned char hfs_word_t[2]; typedef unsigned char hfs_dword_t[4]; typedef unsigned char hfs_qword_t[8]; // ======================================================= inline BYTE GET_BYTE(hfs_byte_t *a) { BYTE *cPtr; cPtr = (BYTE*)a; return (*cPtr); } inline WORD GET_WORD(hfs_word_t *a) { WORD *wPtr; wPtr = (WORD*)a; return (*wPtr); } inline DWORD GET_DWORD(hfs_dword_t *a) { DWORD *dwPtr; dwPtr = (DWORD*)a; return (*dwPtr); } inline QWORD GET_QWORD(hfs_qword_t *a) { QWORD *qwPtr; qwPtr = (QWORD*)a; return (*qwPtr); } // ======================================================= struct hfsSuperBlock // MDB: Master Data Base { hfs_word_t drSigWord; /* Signature word indicating fs type */ hfs_dword_t drCrDate; /* fs creation date/time */ hfs_dword_t drLsMod; /* fs modification date/time */ hfs_word_t drAtrb; /* fs attributes */ hfs_word_t drNmFls; /* number of files in root directory */ hfs_word_t drVBMSt; /* location (in 512-byte blocks) of the volume bitmap */ hfs_word_t drAllocPtr; /* location (in allocation blocks) to begin next allocation search */ hfs_word_t drNmAlBlks; /* number of allocation blocks */ hfs_dword_t drAlBlkSize; /* bytes in an allocation block */ hfs_dword_t drClpSiz; /* clumpsize, the number of bytes to allocate when extending a file */ hfs_word_t drAlBlSt; /* location (in 512-byte blocks) of the first allocation block */ hfs_dword_t drNxtCNID; /* CNID to assign to the next file or directory created */ hfs_word_t drFreeBks; /* number of free allocation blocks */ hfs_byte_t drVN[28]; /* the volume label */ hfs_dword_t drVolBkUp; /* fs backup date/time */ hfs_word_t drVSeqNum; /* backup sequence number */ hfs_dword_t drWrCnt; /* fs write count */ hfs_dword_t drXTClpSiz; /* clumpsize for the extents B-tree */ hfs_dword_t drCTClpSiz; /* clumpsize for the catalog B-tree */ hfs_word_t drNmRtDirs; /* number of directories in the root directory */ hfs_dword_t drFilCnt; /* number of files in the fs */ hfs_dword_t drDirCnt; /* number of directories in the fs */ hfs_byte_t drFndrInfo[32]; /* data used by the Finder */ hfs_word_t drEmbedSigWord; /* embedded volume signature */ hfs_dword_t drEmbedExtent; /* starting block number (xdrStABN) and number of allocation blocks (xdrNumABlks) occupied by embedded volume */ hfs_dword_t drXTFlSize; /* bytes in the extents B-tree */ hfs_byte_t drXTExtRec[12]; /* extents B-tree's first 3 extents */ hfs_dword_t drCTFlSize; /* bytes in the catalog B-tree */ hfs_byte_t drCTExtRec[12]; /* catalog B-tree's first 3 extents */ } __attribute__((packed)); // ================================================ struct CInfoHfsHeader // size must be 16384 (adjust the reserved data) { QWORD qwAllocCount; QWORD qwBitmapSectLocation; QWORD qwFreeAllocs; QWORD qwFirstAllocBlock; //QWORD qwTotalSectCount; DWORD dwAllocSize; DWORD dwBlocksPerAlloc; BYTE cReserved[16344]; // Adjust to fit with total header size }; // ================================================ class CHfsPart : public CFSBase { public: CHfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CHfsPart(); //static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: CInfoHfsHeader m_info; }; #endif // FS_HFS_H partimage-0.6.8/src/client/fs/fs_jfs.h0000644000000000000000000007156011252653177016316 0ustar rootroot/*************************************************************************** creiserpart.h - description ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_JFS_H #define FS_JFS_H #include "partimage.h" #include "common.h" #include "cbitmap.h" #include "fs_base.h" struct CImage; struct CVolumeHeader; struct CMainTail; struct CMainHeader; struct COptions; class CSavingWindow; class CRestoringWindow; #define JFS_MAGIC_STRING "JFS1" // Magic word: Version 1 #define JFS_SUPER_MAGIC 0x3153464A #define int16 signed short int #define uint16 unsigned short int #define int32 signed long int #define uint32 unsigned long int #define int64 signed long long int #define uint64 unsigned long long int #define int8 signed char #define uint8 unsigned char #define s16 signed short int #define u16 unsigned short int #define s32 signed long int #define u32 unsigned long int #define s64 signed long long int #define u64 unsigned long long int #define s8 signed char #define u8 unsigned char void copyAndTransformDword(DWORD *dwDest, DWORD *dwSource, DWORD dwElemCount); #define __le64_to_cpu(x) ((u64)(x)) #define __le32_to_cpu(x) ((u32)(x)) #define __le16_to_cpu(x) ((u16)(x)) #define XT_CMP(CMP, K, X) \ { \ s64 offset64 = offsetXAD(X); \ (CMP) = ((K) >= offset64 + lengthXAD(X)) ? 1 : \ ((K) < offset64) ? -1 : 0 ; \ } // ================================================ /* * buffer cache configuration */ /* page size */ #ifdef PSIZE #undef PSIZE #endif #define PSIZE 4096 /* page size (in byte) */ #define L2PSIZE 12 /* log2(PSIZE) */ #define POFFSET 4095 /* offset within page */ /* buffer page size */ #define BPSIZE PSIZE /* * fs fundamental size * * PSIZE >= file system block size >= PBSIZE >= DISIZE */ #define PBSIZE 512 /* physical block size (in byte) */ #define L2PBSIZE 9 /* log2(PBSIZE) */ #define DISIZE 512 /* on-disk inode size (in byte) */ #define L2DISIZE 9 /* log2(DISIZE) */ #define IDATASIZE 256 /* inode inline data size */ #define IXATTRSIZE 128 /* inode inline extended attribute size */ #define XTPAGE_SIZE 4096 #define log2_PAGESIZE 12 #define IAG_SIZE 4096 #define IAG_EXTENT_SIZE 4096 #define INOSPERIAG 4096 /* number of disk inodes per iag */ #define L2INOSPERIAG 12 /* l2 number of disk inodes per iag */ #define INOSPEREXT 32 /* number of disk inode per extent */ #define L2INOSPEREXT 5 /* l2 number of disk inode per extent */ #define IXSIZE (DISIZE * INOSPEREXT) /* inode extent size */ #define INOSPERPAGE 8 /* number of disk inodes per 4K page */ #define L2INOSPERPAGE 3 /* log2(INOSPERPAGE) */ #define IAGFREELIST_LWM 64 #define INODE_EXTENT_SIZE IXSIZE /* inode extent size */ #define NUM_INODE_PER_EXTENT INOSPEREXT #define NUM_INODE_PER_IAG INOSPERIAG #define MINBLOCKSIZE 512 #define MAXBLOCKSIZE 4096 #define MAXFILESIZE ((int64)1 << 52) #define JFS_LINK_MAX 65535 /* nlink_t is unsigned short */ /* * fixed physical block address (physical block size = 512 byte) * * NOTE: since we can't guarantee a physical block size of 512 bytes the use of * these macros should be removed and the byte offset macros used instead. */ #define SUPER1_B 64 /* primary superblock */ #define AIMAP_B (SUPER1_B + 8) /* 1st extent of aggregate inode map */ #define AITBL_B (AIMAP_B + 16) /* * 1st extent of aggregate inode table */ #define SUPER2_B (AITBL_B + 32) /* 2ndary superblock pbn */ #define BMAP_B (SUPER2_B + 8) /* block allocation map */ /* * SIZE_OF_SUPER defines the total amount of space reserved on disk for the * superblock. This is not the same as the superblock structure, since all of * this space is not currently being used. */ #define SIZE_OF_SUPER PSIZE /* * SIZE_OF_AG_TABLE defines the amount of space reserved to hold the AG table */ #define SIZE_OF_AG_TABLE PSIZE /* * SIZE_OF_MAP_PAGE defines the amount of disk space reserved for each page of * the inode allocation map (to hold iag) */ #define SIZE_OF_MAP_PAGE PSIZE /* * fixed byte offset address */ #define SUPER1_OFF 0x8000 /* primary superblock */ #define AIMAP_OFF (SUPER1_OFF + SIZE_OF_SUPER) /* * Control page of aggregate inode map * followed by 1st extent of map */ #define AITBL_OFF (AIMAP_OFF + (SIZE_OF_MAP_PAGE << 1)) /* * 1st extent of aggregate inode table */ #define SUPER2_OFF (AITBL_OFF + INODE_EXTENT_SIZE) /* * secondary superblock */ #define BMAP_OFF (SUPER2_OFF + SIZE_OF_SUPER) /* * block allocation map */ /* * The following macro is used to indicate the number of reserved disk blocks at * the front of an aggregate, in terms of physical blocks. This value is * currently defined to be 32K. This turns out to be the same as the primary * superblock's address, since it directly follows the reserved blocks. */ #define AGGR_RSVD_BLOCKS SUPER1_B /* * The following macro is used to indicate the number of reserved bytes at the * front of an aggregate. This value is currently defined to be 32K. This * turns out to be the same as the primary superblock's byte offset, since it * directly follows the reserved blocks. */ #define AGGR_RSVD_BYTES SUPER1_OFF /* * The following macro defines the byte offset for the first inode extent in * the aggregate inode table. This allows us to find the self inode to find the * rest of the table. Currently this value is 44K. */ #define AGGR_INODE_TABLE_START AITBL_OFF /* Minimum n * file system option (superblock flag) */ /* platform option (conditional compilation) */ #define JFS_AIX 0x80000000 /* AIX support */ /* POSIX name/directory support */ #define JFS_OS2 0x40000000 /* OS/2 support */ /* case-insensitive name/directory support */ #define JFS_DFS 0x20000000 /* DCE DFS LFS support */ #define JFS_LINUX 0x10000000 /* Linux support */ /* case-sensitive name/directory support */ /* directory option */ #define JFS_UNICODE 0x00000001 /* unicode name */ /* commit option */ #define JFS_COMMIT 0x00000f00 /* commit option mask */ #define JFS_GROUPCOMMIT 0x00000100 /* group (of 1) commit */ #define JFS_LAZYCOMMIT 0x00000200 /* lazy commit */ #define JFS_TMPFS 0x00000400 /* temporary file system - * do not log/commit: */ /* log logical volume option */ #define JFS_INLINELOG 0x00000800 /* inline log within file system */ #define JFS_INLINEMOVE 0x00001000 /* inline log being moved */ /* Secondary aggregate inode table */ #define JFS_BAD_SAIT 0x00010000 /* current secondary ait is bad */ /* sparse regular file support */ #define JFS_SPARSE 0x00020000 /* sparse regular file */ /* DASD Limits F226941 */ #define JFS_DASD_ENABLED 0x00040000 /* DASD limits enabled */ #define JFS_DASD_PRIME 0x00080000 /* Prime DASD usage on boot */ // number of bytes supported for a JFS partition */ #define MINJFS (0x1000000) #define MINJFSTEXT "16" /* possible values for maxentry */ #define XTROOTINITSLOT 10 #define XTROOTMAXSLOT 18 #define XTPAGEMAXSLOT 256 #define XTENTRYSTART 2 /* * fixed reserved inode number */ /* aggregate inode */ #define AGGR_RESERVED_I 0 // aggregate inode (reserved) #define AGGREGATE_I 1 // aggregate inode map inode #define BMAP_I 2 // aggregate block allocation map inode #define LOG_I 3 // aggregate inline log inode #define BADBLOCK_I 4 // aggregate bad block inode #define FILESYSTEM_I 16 // 1st/only fileset inode in ait: /* * extent allocation descriptor (xad) */ typedef struct xad // 16 bytes { unsigned flag:8; /* 1: flag */ unsigned rsvrd:16; /* 2: reserved */ unsigned off1:8; /* 1: offset in unit of fsblksize */ uint32 off2; /* 4: offset in unit of fsblksize */ unsigned len:24; /* 3: length in unit of fsblksize */ unsigned addr1:8; /* 1: address in unit of fsblksize */ uint32 addr2; /* 4: address in unit of fsblksize */ } xad_t; /* (16) */ /* * xtree page: */ typedef union { struct xtheader { s64 next; /* 8: */ s64 prev; /* 8: */ u8 flag; /* 1: */ u8 rsrvd1; /* 1: */ s16 nextindex; /* 2: next index = number of entries */ s16 maxentry; /* 2: max number of entries */ s16 rsrvd2; /* 2: */ QWORD qwSelf; //pxd_t self; /* 8: self */ } header; /* (32) */ xad_t xad[XTPAGEMAXSLOT]; /* 16 * maxentry: xad array */ } xtpage_t; /* btpaget_t flag */ #define BT_TYPE 0x07 /* B+-tree index */ #define BT_ROOT 0x01 /* root page */ #define BT_LEAF 0x02 /* leaf page */ #define BT_INTERNAL 0x04 /* internal page */ #define BT_RIGHTMOST 0x10 /* rightmost page */ #define BT_LEFTMOST 0x20 /* leftmost page */ /* i_jfs_btorder (in inode) */ #define BT_RANDOM 0x0000 #define BT_SEQUENTIAL 0x0001 #define BT_LOOKUP 0x0010 #define BT_INSERT 0x0020 #define BT_DELETE 0x0040 /* xad_t field construction */ #define XADoffset(xad, offset64)\ {\ (xad)->off1 = ((uint64)offset64) >> 32;\ (xad)->off2 = (offset64) & 0xffffffff;\ } #define XADaddress(xad, address64)\ {\ (xad)->addr1 = ((uint64)address64) >> 32;\ (xad)->addr2 = (address64) & 0xffffffff;\ } #define XADlength(xad, length32) (xad)->len = length32 /* xad_t field extraction */ #define offsetXAD(xad)\ ( ((int64)((xad)->off1)) << 32 | (xad)->off2 ) #define addressXAD(xad)\ ( ((int64)((xad)->addr1)) << 32 | (xad)->addr2 ) #define lengthXAD(xad) ( (xad)->len ) #define offsetXAD2(xad) ( ((int64)((xad).off1)) << 32 | (xad).off2 ) #define addressXAD2(xad) ( ((int64)((xad).addr1)) << 32 | (xad).addr2 ) #define lengthXAD2(xad) ( (xad).len ) /* xd_t field extraction */ #define lengthPXD(pxd) __le24_to_cpu((pxd)->len) #define addressPXD(pxd)\ ( ((s64)((pxd)->addr1)) << 32 | __le32_to_cpu((pxd)->addr2)) /* xad list */ typedef struct { int16 maxnxad; int16 nxad; xad_t *xad; } xadlist_t; /* xad_t flags */ #define XAD_NEW 0x01 /* new */ #define XAD_EXTENDED 0x02 /* extended */ #define XAD_COMPRESSED 0x04 /* compressed with recorded length */ #define XAD_NOTRECORDED 0x08 /* allocated but not recorded */ #define XAD_COW 0x10 /* copy-on-write */ #define INOTOIAG(ino) ((ino) >> L2INOSPERIAG) /* * physical xd (pxd) */ typedef struct { unsigned len:24; unsigned addr1:8; uint32 addr2; } pxd_t; /* * simple extent descriptor (xd) */ typedef struct // 8 bytes { unsigned flag:8; /* 1: flags */ unsigned rsrvd:8; /* 1: */ unsigned len:8; /* 1: length in unit of fsblksize */ unsigned addr1:8; /* 1: address in unit of fsblksize */ uint32 addr2; /* 4: address in unit of fsblksize */ } xd_t; /* - 8 - */ /* di_mode */ /* * This is the way OS/2 defines the mode. That's okay for the utilities * which are dealing directly with the disk i-node. The filesystem itself * should use the standard S_IFMT, etc. defines in stat.h */ #define IFMT 0xF000 /* S_IFMT - mask of file type */ #define IFDIR 0x4000 /* S_IFDIR - directory */ #define IFREG 0x8000 /* S_IFREG - regular file */ #define IFLNK 0xA000 /* S_IFLNK - symbolic link */ #define IFBLK 0x6000 /* S_IFBLK - block special file */ #define IFCHR 0x2000 /* S_IFCHR - character special file */ #define IFFIFO 0x1000 /* S_IFFIFO - FIFO */ #define IFSOCK 0xC000 /* S_IFSOCK - socket */ #define ISUID 0x0800 /* S_ISUID - set user id when exec'ing */ #define ISGID 0x0400 /* S_ISGID - set group id when exec'ing */ #define IREAD 0x0100 /* S_IRUSR - read permission */ #define IWRITE 0x0080 /* S_IWUSR - write permission */ #define IEXEC 0x0040 /* S_IXUSR - execute permission */ /* extended mode bits (on-disk inode di_mode) */ #define IFJOURNAL 0x00010000 /* journalled file */ #define ISPARSE 0x00020000 /* sparse file enabled */ #define INLINEEA 0x00040000 /* inline EA area free */ #define ISWAPFILE 0x00800000 /* file open for pager swap space */ #define BMAPVERSION 1 /* version number */ #define TREESIZE (256+64+16+4+1) /* size of a dmap tree */ #define LEAFIND (64+16+4+1) /* index of 1st leaf of a dmap tree */ #define LPERDMAP 256 /* num leaves per dmap tree */ #define L2LPERDMAP 8 /* l2 number of leaves per dmap tree */ #define DBWORD 32 /* # of blks covered by a map word */ #define L2DBWORD 5 /* l2 # of blks covered by a mword */ #define BUDMIN L2DBWORD /* max free string in a map word */ #define BPERDMAP (LPERDMAP * DBWORD) /* num of blks per dmap */ #define L2BPERDMAP 13 /* l2 num of blks per dmap */ #define CTLTREESIZE (1024+256+64+16+4+1) /* size of a dmapctl tree */ #define CTLLEAFIND (256+64+16+4+1) /* idx of 1st leaf of a dmapctl tree */ #define LPERCTL 1024 /* num of leaves per dmapctl tree */ #define L2LPERCTL 10 /* l2 num of leaves per dmapctl tree */ #define ROOT 0 /* index of the root of a tree */ #define NOFREE ((s8) -1) /* no blocks free */ #define MAXAG 128 /* max number of allocation groups */ #define L2MAXAG 7 /* l2 max num of AG */ #define L2MINAGSZ 25 /* l2 of minimum AG size in bytes */ #define BMAPBLKNO 0 /* lblkno of bmap within the map */ /* * disk map control page per level. * * dmapctl_t must be consistent with dmaptree_t. */ typedef struct { s32 nleafs; /* 4: number of tree leafs */ s32 l2nleafs; /* 4: l2 number of tree leafs */ s32 leafidx; /* 4: index of the first tree leaf */ s32 height; /* 4: height of tree */ s8 budmin; /* 1: minimum l2 tree leaf value */ s8 stree[CTLTREESIZE]; /* CTLTREESIZE: dmapctl tree */ u8 pad[2714]; /* 2714: pad to 4096 */ } dmapctl_t; /* - 4096 - */ /* * dmap summary tree * * dmaptree_t must be consistent with dmapctl_t. */ typedef struct { s32 nleafs; /* 4: number of tree leafs */ s32 l2nleafs; /* 4: l2 number of tree leafs */ s32 leafidx; /* 4: index of first tree leaf */ s32 height; /* 4: height of the tree */ s8 budmin; /* 1: min l2 tree leaf value to combine */ s8 stree[TREESIZE]; /* TREESIZE: tree */ u8 pad[2]; /* 2: pad to word boundary */ } dmaptree_t; /* - 360 - */ /* * dmap page per 8K blocks bitmap */ typedef struct { s32 nblocks; /* 4: num blks covered by this dmap */ s32 nfree; /* 4: num of free blks in this dmap */ s64 start; /* 8: starting blkno for this dmap */ dmaptree_t tree; /* 360: dmap tree */ u8 pad[1672]; /* 1672: pad to 2048 bytes */ u32 wmap[LPERDMAP]; /* 1024: bits of the working map */ u32 pmap[LPERDMAP]; /* 1024: bits of the persistent map */ } dmap_t; /* - 4096 - */ /* * on-disk aggregate disk allocation map descriptor. */ typedef struct { s64 dn_mapsize; /* 8: number of blocks in aggregate */ s64 dn_nfree; /* 8: num free blks in aggregate map */ s32 dn_l2nbperpage; /* 4: number of blks per page */ s32 dn_numag; /* 4: total number of ags */ s32 dn_maxlevel; /* 4: number of active ags */ s32 dn_maxag; /* 4: max active alloc group number */ s32 dn_agpref; /* 4: preferred alloc group (hint) */ s32 dn_aglevel; /* 4: dmapctl level holding the AG */ s32 dn_agheigth; /* 4: height in dmapctl of the AG */ s32 dn_agwidth; /* 4: width in dmapctl of the AG */ s32 dn_agstart; /* 4: start tree index at AG height */ s32 dn_agl2size; /* 4: l2 num of blks per alloc group */ s64 dn_agfree[MAXAG]; /* 8*MAXAG: per AG free count */ s64 dn_agsize; /* 8: num of blks per alloc group */ s8 dn_maxfreebud; /* 1: max free buddy system */ u8 pad[3007]; /* 3007: pad to 4096 */ } dbmap_t; #define MUTEXLOCK_T struct semaphore /* * in-memory aggregate disk allocation map descriptor. */ /*typedef struct bmap { dbmap_t db_bmap; // on-disk aggregate map descriptor struct inode *db_ipbmap; // ptr to aggregate map incore inode MUTEXLOCK_T db_bmaplock; // aggregate map lock u32 *db_DBmap; } bmap_t;*/ /* * jfs_imap.h: disk inode manager */ #define EXTSPERIAG 128 /* number of disk inode extent per iag */ #define IMAPBLKNO 0 /* lblkno of dinomap within inode map */ #define SMAPSZ 4 /* number of words per summary map */ #define EXTSPERSUM 32 /* number of extents per summary map entry */ #define L2EXTSPERSUM 5 /* l2 number of extents per summary map */ #define PGSPERIEXT 4 /* number of 4K pages per dinode extent */ #define MAXIAGS ((1<<20)-1) /* maximum number of iags */ #define MAXAG 128 /* maximum number of allocation groups */ #define AMAPSIZE 512 /* bytes in the IAG allocation maps */ #define SMAPSIZE 16 /* bytes in the IAG summary maps */ /* convert inode number to iag number */ #define INOTOIAG(ino) ((ino) >> L2INOSPERIAG) /* convert iag number to logical block number of the iag page */ #define IAGTOLBLK(iagno,l2nbperpg) (((iagno) + 1) << (l2nbperpg)) /* get the starting block number of the 4K page of an inode extent * that contains ino. */ #define INOPBLK(pxd,ino,l2nbperpg) (addressPXD((pxd)) + \ ((((ino) & (INOSPEREXT-1)) >> L2INOSPERPAGE) << (l2nbperpg))) /* * inode allocation map: * * inode allocation map consists of * . the inode map control page and * . inode allocation group pages (per 4096 inodes) * which are addressed by standard JFS xtree. */ /* * inode allocation group page (per 4096 inodes of an AG) */ typedef struct { s64 agstart; /* 8: starting block of ag */ s32 iagnum; /* 4: inode allocation group number */ s32 inofreefwd; /* 4: ag inode free list forward */ s32 inofreeback; /* 4: ag inode free list back */ s32 extfreefwd; /* 4: ag inode extent free list forward */ s32 extfreeback; /* 4: ag inode extent free list back */ s32 iagfree; /* 4: iag free list */ /* summary map: 1 bit per inode extent */ s32 inosmap[SMAPSZ]; /* 16: sum map of mapwords w/ free inodes; * note: this indicates free and backed * inodes, if the extent is not backed the * value will be 1. if the extent is * backed but all inodes are being used the * value will be 1. if the extent is * backed but at least one of the inodes is * free the value will be 0. */ s32 extsmap[SMAPSZ]; /* 16: sum map of mapwords w/ free extents */ s32 nfreeinos; /* 4: number of free inodes */ s32 nfreeexts; /* 4: number of free extents */ /* (72) */ u8 pad[1976]; /* 1976: pad to 2048 bytes */ /* allocation bit map: 1 bit per inode (0 - free, 1 - allocated) */ u32 wmap[EXTSPERIAG]; /* 512: working allocation map */ u32 pmap[EXTSPERIAG]; /* 512: persistent allocation map */ pxd_t inoext[EXTSPERIAG]; /* 1024: inode extent addresses */ } iag_t; /* (4096) */ /* * aggregate superblock * * The name superblock is too close to super_block, so the name has been * changed to jfs_superblock. The utilities are still using the old name. */ struct jfs_superblock { char s_magic[4]; /* 4: magic number */ uint32 s_version; /* 4: version number */ int64 s_size; /* 8: aggregate size in hardware/LVM blocks; * VFS: number of blocks */ int32 s_bsize; /* 4: aggregate block size in bytes; * VFS: fragment size */ int16 s_l2bsize; /* 2: log2 of s_bsize */ int16 s_l2bfactor; /* 2: log2(s_bsize/hardware block size) */ int32 s_pbsize; /* 4: hardware/LVM block size in bytes */ int16 s_l2pbsize; /* 2: log2 of s_pbsize */ int16 pad; /* 2: padding necessary for alignment */ uint32 s_agsize; /* 4: allocation group size in aggr. blocks */ uint32 s_flag; /* 4: aggregate attributes: * see jfs_filsys.h */ uint32 s_state; /* 4: mount/unmount/recovery state: * see jfs_filsys.h */ int32 s_compress; /* 4: > 0 if data compression */ pxd_t s_ait2; /* 8: first extent of secondary * aggregate inode table */ pxd_t s_aim2; /* 8: first extent of secondary * aggregate inode map */ uint32 s_logdev; /* 4: device address of log */ int32 s_logserial; /* 4: log serial number at aggregate mount */ pxd_t s_logpxd; /* 8: inline log extent */ pxd_t s_fsckpxd; /* 8: inline fsck work space extent */ QWORD qwTime; //struct timestruc_t s_time; /* 8: time last updated */ int32 s_fsckloglen; /* 4: Number of filesystem blocks reserved for * the fsck service log. * N.B. These blocks are divided among the * versions kept. This is not a per * version size. * N.B. These blocks are included in the * length field of s_fsckpxd. */ int8 s_fscklog; /* 1: which fsck service log is most recent * 0 => no service log data yet * 1 => the first one * 2 => the 2nd one */ char s_fpack[11]; /* 11: file system volume name * N.B. This must be 11 bytes to * conform with the OS/2 BootSector * requirements */ /* extendfs() parameter under s_state & FM_EXTENDFS */ int64 s_xsize; /* 8: extendfs s_size */ pxd_t s_xfsckpxd; /* 8: extendfs fsckpxd */ pxd_t s_xlogpxd; /* 8: extendfs logpxd */ /* - 128 byte boundary - */ /* * DFS VFS support (preliminary) */ char s_attach; /* 1: VFS: flag: set when aggregate is attached */ uint8 rsrvd4[7]; /* 7: reserved - set to 0 */ uint64 totalUsable; /* 8: VFS: total of 1K blocks which are * available to "normal" (non-root) users. */ uint64 minFree; /* 8: VFS: # of 1K blocks held in reserve for * exclusive use of root. This value can be 0, * and if it is then totalUsable will be equal * to # of blocks in aggregate. I believe this * means that minFree + totalUsable = # blocks. * In that case, we don't need to store both * totalUsable and minFree since we can compute * one from the other. I would guess minFree * would be the one we should store, and * totalUsable would be the one we should * compute. (Just a guess...) */ uint64 realFree; /* 8: VFS: # of free 1K blocks can be used by * "normal" users. It may be this is something * we should compute when asked for instead of * storing in the superblock. I don't know how * often this information is needed. */ /* * graffiti area */ }; /* * on-disk inode (dinode_t): 512 bytes * * note: align 64-bit fields on 8-byte boundary. */ struct CJfsDiskInode { /* * I. base area (128 bytes) * ------------------------ * * define generic/POSIX attributes */ uint32 di_inostamp; /* 4: stamp to show inode belongs to fileset */ int32 di_fileset; /* 4: fileset number */ uint32 di_number; /* 4: inode number, aka file serial number */ uint32 di_gen; /* 4: inode generation number */ pxd_t di_ixpxd; /* 8: inode extent descriptor */ int64 di_size; /* 8: size */ int64 di_nblocks; /* 8: number of blocks allocated */ uint32 di_nlink; /* 4: number of links to the object */ /* D233784 */ uint32 di_uid; /* 4: user id of owner */ uint32 di_gid; /* 4: group id of owner */ uint32 di_mode; /* 4: attribute, format and permission */ QWORD qwATime; //struct timestruc_t di_atime; /* 8: time last data accessed */ QWORD qwCTime; //struct timestruc_t di_ctime; /* 8: time last status changed */ QWORD qwMTime; //struct timestruc_t di_mtime; /* 8: time last data modified */ QWORD qwOTime; //struct timestruc_t di_otime; /* 8: time created */ u8 di_acl[16]; // dxd_t di_acl; /* 16: acl descriptor */ u8 di_ea[16]; // dxd_t di_ea; /* 16: ea descriptor */ s32 di_compress; /* 4: compression */ s32 di_acltype; /* 4: Type of ACL */ /* * II. extension area (128 bytes) * ------------------------------ */ /* * extended attributes for file system (96); */ union { uint8 _data[96]; /* * DFS VFS+ support (preliminary place holder) */ struct { uint8 _data[96]; } _dfs; /* * block allocation map */ struct { struct bmap *__bmap; /* 4: incore bmap descriptor */ } _bmap; /* * inode allocation map (fileset inode 1st half) */ struct { struct inomap *__imap; /* 4: incore imap control */ uint32 _gengen; /* 4: di_gen generator */ } _imap; } _data2; /* * B+-tree root header (32) * * B+-tree root node header, or * data extent descriptor for inline data; * N.B. must be on 8-byte boundary. */ #define di_btroot di_DASD BYTE di_DASD[16]; //dasd_t di_DASD; // 16: DASD limit info for directories F226941 BYTE di_dxd[16]; //dxd_t di_dxd; /* 16: data extent descriptor */ /* * III. type-dependent area (128 bytes) * ------------------------------------ * * B+-tree root node xad array or inline data */ union { uint8 _data[128]; /* * regular file or directory * * B+-tree root node/inline data area */ struct { xad_t xad[8]; //uint8 _xad[128]; } _file; /* * device special file */ struct { dev_t _rdev; /* device major and minor */ } _specfile; /* * symbolic link. * * link is stored in inode if its length is less than * D_PRIVATE. Otherwise stored like a regular file. */ struct { uint8 _fastsymlink[128]; } _symlink; } _data3; /* * IV. type-dependent extension area (128 bytes) * ----------------------------------------- * * user-defined attribute, or * inline data continuation, or * B+-tree root node continuation * */ union { uint8 _data[128]; } _data4; }; // CJfsDiskInode // ================================================ struct CInfoJfsHeader // size must be 16384 (adjust the reserved data) { QWORD qwOfficialBlocksCount; QWORD qwMappedBlocksByBitmap; DWORD dwAllocTreeMaxLevel; //QWORD qwOfficialBitmapSize; DWORD dwReserved; BYTE cReserved[16360]; // Adjust to fit with total header size }; // ================================================ class CJfsPart: public CFSBase { public: CJfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CJfsPart(); //static int detect(BYTE *cBootSect, char *szFileSystem); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} int ujfs_rwdaddr(s64 *offset, xtpage_t *page, s64 lbno); int find_inode(u32 inum, QWORD *qwAddress, DWORD dwType); int find_iag(u32 iagnum, s64 *address, DWORD dwType); int browseBitmap(QWORD *qwPage, xtpage_t *page, DWORD dwLevel, QWORD qwBlocksToProcess); int readDmap(QWORD *qwPage, xtpage_t *page, QWORD qwBlocksToProcess); // for debug only: void printFileBlocks(DWORD dwInode); void printInodeWhoseOwnerIs(DWORD dwOwner); private: CInfoJfsHeader m_info; }; #endif // FS_JFS_H partimage-0.6.8/src/client/fs/fs_base.cpp0000644000000000000000000006273411252653177017004 0ustar rootroot/*************************************************************************** fs_base.cpp - Base class of all File System with common code ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #define __STDC_FORMAT_MACROS #include #include "fs_base.h" #include "partimage.h" #include "imagefile.h" #include "common.h" #include "cbitmap.h" #include "exceptions.h" // ======================================================= CFSBase::CFSBase(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize) { BEGIN; m_fDeviceFile = fDeviceFile; strncpy(m_szDevice, szDevice, MAX_DEVICENAMELEN); memset(&m_header, 0, sizeof(CLocalHeader)); m_qwPartSize = qwPartSize; showDebug(1, "qwPartSize=%llu=%llu * 512\n", qwPartSize, qwPartSize/512LL); m_bCheckSuperBlockUsedSize = false; m_bCheckSuperBlockFreeSize = false; m_bCanBeMore = false; RETURN; } // ======================================================= CFSBase::~CFSBase() { } // ======================================================= int CFSBase::readData(void *cBuffer, QWORD qwOffset, DWORD dwLength) { BEGIN; int nRes; errno = 0; nRes = bigFseek(m_fDeviceFile, qwOffset); if (nRes != 0) { showDebug(4, "CFSBase::readData(qwOffset=%llu): bigFseek() error %d=%s\n", qwOffset, errno, strerror(errno)); RETURN_int(-1); } errno = 0; nRes = fread((char *)cBuffer, dwLength, 1, m_fDeviceFile); if (nRes != 1) { showDebug(4, "CFSBase::readData(dwLength=%lu): fread() error %d=%s\n", dwLength, errno, strerror(errno)); RETURN_int(-1); } RETURN_int(0); // success } // ======================================================= void checkForEscape() { int nRes; if (g_bSigInt == true) { nRes = g_interface->msgBoxYesNo(i18n("Exit partimage ?"), i18n("Do you really want to cancel the current operation ?")); if (nRes == MSGBOX_YES) { errno = 0; THROW(ERR_CANCELED, errno); } else // NO { g_bSigInt = false; } } } // ======================================================= // may throw: errno, readbitmap, reading, writing void CFSBase::saveUsedBlocksToImageFile(COptions *options) { BEGIN; char cBuffer[COPYBUF_SIZE]; bool bUsed; DWORD dwCount; int nRes; CCheck check; QWORD i; char *cBegin; DWORD dwStats; DWORD dwSavedBlocks = 0L; DWORD dwBlocksInBuffer; DWORD dwCheckCount = 0L; DWORD dwDataSize; DWORD dwTemp; // init ESC key g_bSigInt = false; // go to the beginning of the disk nRes = fseek(m_fDeviceFile, 0L, SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); // init the bitmap optimizations m_bitmap.setMaxFreeBlocksCopiedPerOper(MAX_FREE_BLOCKS_SKIPPED); // could be another value dwBlocksInBuffer = (COPYBUF_SIZE-(COPYBUF_SIZE % m_header.qwBlockSize)) / (m_header.qwBlockSize); m_bitmap.setMaxUsedBlocksCopiedPerOper(dwBlocksInBuffer); showDebug(3, "CPY: setMax=%lu\n", dwBlocksInBuffer); check.dwCRC = increaseCrc32(0, NULL, 0); // set magic check.cMagic[0] = 'C'; check.cMagic[1] = 'H'; check.cMagic[2] = 'K'; check.cMagic[3] = 0; dwStats = 0; i = 0; while (i < m_header.qwBlocksCount) // while there are blocks to copy { nRes = m_bitmap.readBitmap(i, &bUsed, &dwCount); if (nRes == -1) THROW(ERR_READ_BITMAP, i); // stop at the end of the partition dwCount = my_min(dwCount, m_header.qwBlocksCount-i); showDebug(3, "CPY: dwCount=%lu, bUsed=%d\n", dwCount, bUsed); if (bUsed) // if used blocks are marked in the bitmap { dwDataSize = m_header.qwBlockSize*dwCount; errno = 0; nRes = fread(cBuffer, dwDataSize, 1, m_fDeviceFile); if (nRes != 1) { THROW(ERR_READING, (DWORD)i, errno); } // ---- begin ----- cBegin = cBuffer; while (dwDataSize > 0) { // calculate length of data to write if (dwCheckCount + dwDataSize < CHECK_FREQUENCY) // no check to write dwTemp = dwDataSize; else // there is a check to write dwTemp = CHECK_FREQUENCY - dwCheckCount; // increase CRC check.dwCRC = increaseCrc32(check.dwCRC, cBegin, dwTemp); //for (j=0; j < dwTemp; j++) //check.qwCRC += *(cBegin+j); try { m_image->write(cBegin, dwTemp, true); } catch (CExceptions * excep) { showDebug(1, "saveUsedBlocksToImageFile: excep %d\n", excep->GetExcept()); throw excep; } dwCheckCount += dwTemp; if (dwCheckCount == CHECK_FREQUENCY) { showDebug(3, "CHECKING(%lu): check=%lu and CRC=%lu\n", i, dwCheckCount, check.dwCRC); check.qwPos = i; showDebug(3, "BEFORE WRITING CHK\n"); try { m_image->write((char*)&check, sizeof(CCheck), true); } catch (CExceptions * excep) { showDebug(1, "saveUsedBlocksToImageFile: excep %d\n", excep->GetExcept()); throw excep; } check.dwCRC = increaseCrc32(0, NULL, 0); dwCheckCount = 0; // show stats if (dwStats == 8) { m_guiSave->showStats(g_timeStart, m_header.qwBlockSize, dwSavedBlocks, m_header.qwUsedBlocks, options->szFullyBatchMode); dwStats = 0; } dwStats++; } cBegin += dwTemp; dwDataSize -= dwTemp; checkForEscape(); } // ---- end ----- dwSavedBlocks += dwCount; } else // if free blocks were marked { nRes = fseek(m_fDeviceFile, m_header.qwBlockSize*dwCount, SEEK_CUR); if (nRes == -1) { THROW(ERR_ERRNO, errno); } } i += dwCount; // draw progress //m_guiSave->showStats(g_timeStart, m_header.qwBlockSize, dwSavedBlocks, m_header.qwUsedBlocks, options->szFullyBatchMode); } m_guiSave->showStats(g_timeStart, m_header.qwBlockSize, dwSavedBlocks, m_header.qwUsedBlocks, options->szFullyBatchMode); g_qwCopiedBytesCount = m_header.qwBlockSize * dwSavedBlocks; // for final message box RETURN; } // ======================================================= // may raise errno, check_num, check_crc,zer, writing, wrong_magic // NEW optimized version void CFSBase::restoreUsedBlocksToDisk(COptions *options) { BEGIN; char cZeroBuffer[ZERO_BLOCK_SIZE]; char cBuffer[COPYBUF_SIZE]; bool bUsed; DWORD dwCount; int nRes; QWORD i; DWORD dwBlocksInBuffer; DWORD dwTemp; DWORD dwCheckCount = 0L; DWORD dwDataSize; DWORD dwSavedBlocks = 0L; CCheck check; char *cBegin; DWORD dwCRC; DWORD dwStats; memset(cZeroBuffer, 0, ZERO_BLOCK_SIZE); dwCRC = increaseCrc32(0, NULL, 0); // init ESC key g_bSigInt = false; // go to the beginning of the disk nRes = fseek(m_fDeviceFile, 0L, SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); // init the bitmap optimizations m_bitmap.setMaxFreeBlocksCopiedPerOper(MAX_FREE_BLOCKS_SKIPPED); // could be another value dwBlocksInBuffer = (COPYBUF_SIZE-(COPYBUF_SIZE % m_header.qwBlockSize)) / (m_header.qwBlockSize); m_bitmap.setMaxUsedBlocksCopiedPerOper(dwBlocksInBuffer); showDebug(3, "CPY: setMax=%lu\n", dwBlocksInBuffer); dwStats = 0; i = 0; while (i < m_header.qwBlocksCount) { showDebug(2, "i = %lld, m_header.qwBlocksCount = %lld\n", i, m_header.qwBlocksCount); m_bitmap.readBitmap(i, &bUsed, &dwCount); dwCount = my_min(dwCount, m_header.qwBlocksCount-i); // stop at the end of the partition showDebug(3, "CPY: dwCount=%lu, bUsed=%d\n", dwCount, bUsed); if (bUsed) // if used blocks are marked in the bitmap { dwDataSize = m_header.qwBlockSize*dwCount; dwSavedBlocks += dwCount; // ---- begin ----- cBegin = cBuffer; while (dwDataSize > 0) { showDebug(8, "dwDataSize=%ld\n", dwDataSize); // calculate length of data to write if (dwCheckCount + dwDataSize < CHECK_FREQUENCY) // no check to write dwTemp = dwDataSize; else // there is a check to write dwTemp = CHECK_FREQUENCY - dwCheckCount; try { m_image->read(cBegin, dwTemp, true); } catch (CExceptions * excep) { showDebug(1, "restoreUsedBlocksToDisk: except %d\n", excep -> GetExcept()); throw excep; } // increase CRC dwCRC = increaseCrc32(dwCRC, cBegin, dwTemp); showDebug(3, "CRC = %lu\n", dwCRC); dwCheckCount += dwTemp; showDebug(3, "dwCheckCount= %ld\n", dwCheckCount); if (dwCheckCount == CHECK_FREQUENCY) { showDebug(3, "BEFORE READING CHK\n"); try { m_image->read((char*)&check, sizeof(CCheck), true); } catch (CExceptions * excep) { showDebug(1, "restoreUsedBlocksToDisk: except %d\n", excep -> GetExcept()); throw excep; } showDebug(3, "CHECKING(%lu): check=%lu and CRC=%lu\n", i, dwCheckCount, dwCRC); // check magic if ((check.cMagic[0] != 'C') || (check.cMagic[1] != 'H') || (check.cMagic[2] != 'K')) { showDebug(1, "CHECK-MAGIC error %3s %3s\n", "CHK", check.cMagic); nRes=g_interface->msgBoxYesNo(i18n("local check error"), i18n("Impossible to find a local check structure. " "Data may be damaged. Do you want to continue ?")); if (nRes == MSGBOX_NO) THROW(ERR_WRONGMAGIC); } else { if (i != check.qwPos) { showDebug(1, "CHECK-POS: old=%llu and new=%llu\n", check.qwPos, i); nRes=g_interface->msgBoxYesNo(i18n("local CRC error"), i18n("There was a position error in CCheck. " "Data may be damaged. Do you want to continue ?")); if (nRes == MSGBOX_NO) THROW(ERR_CHECK_NUM, i, check.qwPos); } if (dwCRC != check.dwCRC) { showDebug(1, "CHECK-CRC(%lu): old=%lu and new=%lu\n", i, check.dwCRC, dwCRC); nRes=g_interface->msgBoxYesNo(i18n("local CRC error"), i18n("There was a CRC error in CCheck. " "Data may be damaged. Do you want to continue ?")); if (nRes == MSGBOX_NO) THROW(ERR_CHECK_CRC, dwCRC, check.dwCRC); } } dwCRC = increaseCrc32(0, NULL, 0); dwCheckCount = 0; // show stats if (dwStats == 8) { // update stats m_guiRestore->showStats(g_timeStart, m_header.qwBlockSize, dwSavedBlocks, m_header.qwUsedBlocks,m_header.qwBlocksCount, options->bEraseWithNull, options->szFullyBatchMode); dwStats = 0; } dwStats++; } errno = 0; if (!options->bSimulateMode) { nRes = fwrite(cBegin, dwTemp, 1, m_fDeviceFile); if (nRes != 1) { THROW(ERR_WRITING, (DWORD) 0, errno); } } else showDebug(10, "fwrite simulated\n"); cBegin += dwTemp; dwDataSize -= dwTemp; checkForEscape(); } showDebug(9, "end while dwDataSize\n"); // ---- end ----- } else // if free blocks were marked in the bitmap { if (options->bEraseWithNull == true) // if free and we must write 0 bytes on unused clusters { dwTemp = m_header.qwBlockSize * dwCount; // data to copy while (dwTemp > 0) { errno = 0; if (!options->bSimulateMode) { nRes = fwrite(cZeroBuffer, my_min(ZERO_BLOCK_SIZE, dwTemp), 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_ZEROING, errno); } else showDebug(10, "fwrite simulated\n"); dwTemp -= my_min(ZERO_BLOCK_SIZE, dwTemp); } dwSavedBlocks += dwCount; } else // don't write zero bytes { nRes = fseek(m_fDeviceFile, m_header.qwBlockSize*dwCount, SEEK_CUR); if (nRes == -1) THROW(ERR_ERRNO, errno); } } i += dwCount; } // update stats m_guiRestore->showStats(g_timeStart, m_header.qwBlockSize, dwSavedBlocks, m_header.qwUsedBlocks, m_header.qwBlocksCount, options->bEraseWithNull, options->szFullyBatchMode); g_qwCopiedBytesCount = m_header.qwBlockSize * dwSavedBlocks; // for final message box RETURN; } // ======================================================= void CFSBase::saveToImage(CImage *image, COptions *options, CSavingWindow *gui) { m_guiSave = gui; BEGIN; m_image = image; // ---- 0. Initializations // read informations showDebug(3, "TRACE: 001 (init)\n"); g_interface -> StatusLine(i18n("reading partition properties")); try { readSuperBlock(); } catch ( CExceptions * excep ) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); THROW(ERR_READ_SUPERBLOCK); } // check the file system showDebug(3, "TRACE: 002 (fsck)\n"); if (options->bCheckBeforeSaving == true) { g_interface -> StatusLine(i18n("checking the file system with fsck")); try { fsck(); } catch ( CExceptions * excep ) { throw excep; } } // read bitmap into memory (must be done before writing header) showDebug(3, "TRACE: 003 (readBitmap)\n"); showDebug(1, "begin of readBitmap()\n"); readBitmap(options); showDebug(1, "end of readBitmap()\n"); // check the bitmap has been read without error checkBitmapInfos(); // print informations if (options->bBatchMode == false) printfInformations(); // write header showDebug(3, "TRACE: 004 (writeHeader)\n"); g_interface -> StatusLine(i18n("writing header")); try { m_image->writeMagic(MAGIC_BEGIN_LOCALHEADER); } catch ( CExceptions * excep ) { throw excep; } errno = 0; try { m_image->write(&m_header, sizeof(CLocalHeader), true); } catch ( CExceptions * excep ) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); throw excep; } // write CRC of CLocaleader m_image->writeCRC((char*)&m_header, sizeof(CLocalHeader)); // copy bitmap to image file showDebug(3, "TRACE: 005 (writeBitmap)\n"); try { m_image->writeMagic(MAGIC_BEGIN_BITMAP); } catch ( CExceptions * excep ) { throw excep; } try { m_image->write(m_bitmap.data(), m_header.qwBitmapSize, true); } catch ( CExceptions * excep ) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); throw excep; } // write informations specific for the FS showDebug(3, "TRACE: 006 (writeInfo)\n"); try { m_image->writeMagic(MAGIC_BEGIN_INFO); } catch ( CExceptions * excep ) { throw excep; } try { m_image->write((char*)getInfos(), INFOS_STRUCT_SIZE, true); } catch ( CExceptions * excep ) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); throw excep; } // write CRC of info m_image->writeCRC((char*)getInfos(), INFOS_STRUCT_SIZE); // write magic string try { m_image->writeMagic(MAGIC_BEGIN_DATABLOCKS); } catch ( CExceptions * excep ) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); throw excep; } // time of beginning g_timeStart = time(0); // ---- write all used blocks showDebug(3, "TRACE: 007 (copyUsedBlocks)\n"); g_interface -> StatusLine(i18n("copying used data blocks")); if (strlen(options->szFullyBatchMode)>0) fprintf(stderr,"File Name Size T:Elapsed/Estimated Rate/min Progress\n"); showDebug(3, "begin of saveUsedBlocksToImageFile()\n"); try { saveUsedBlocksToImageFile(options); } catch ( CExceptions * excep) { showDebug(1, "saveToImage: excep %d\n", excep->GetExcept()); throw excep; } RETURN; } // ======================================================= void CFSBase::restoreFromImage(CImage *image, COptions *options, CRestoringWindow *gui) { int nRes; BEGIN; // init m_image = image; m_guiRestore = gui; g_interface -> StatusLine(i18n("reading partition informations")); // 1. ---- Read header g_interface -> StatusLine(i18n("reading header")); showDebug(3, "TRACE: 001 (readHeader)\n"); try { m_image->readAndCheckMagic(MAGIC_BEGIN_LOCALHEADER); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } try {m_image->read((char*)&m_header, sizeof(CLocalHeader), true);} catch(CExceptions * excep) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } // read CRC of info m_image->readAndCheckCRC((char*)&m_header, sizeof(CLocalHeader)); // check the current format is supported /*if (strncmp(headReiser.szAppFormat, CURRENT_REISER_FORMAT, strlen(CURRENT_REISER_FORMAT)) < 0) { g_interface->ErrorNewerRelease(); RETURN_int(-1); }*/ // 2. ---- Print informations and ask confirmation to restore /*showDebug(1, "TRACE: 002 (printfInfos)\n"); if (options->bBatchMode == false) { printfInformations(); // ask confirmation nRes = g_interface -> askRestore(m_szDevice, image->get_szImageFilename()); if (nRes == 2) // 2 --> cancel RETURN_int(-1); }*/ // time of beginning g_timeStart = time(0); // ---- 5. read bitmap showDebug(3, "TRACE: 003 (readBitmap)\n"); try { m_image->readAndCheckMagic(MAGIC_BEGIN_BITMAP); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } // init bitmap size m_bitmap.init(m_header.qwBitmapSize); // copy bitmap blocks to bitmap in memory try{m_image->read((char*)m_bitmap.data(), (long)(m_header.qwBitmapSize), true);} catch (CExceptions * excep) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } // write informations specific for the FS showDebug(3, "TRACE: 004 (readInfo)\n"); try {m_image->readAndCheckMagic(MAGIC_BEGIN_INFO); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } try { m_image->read((char*)getInfos(), INFOS_STRUCT_SIZE,true); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } // read CRC of info m_image->readAndCheckCRC((char*)getInfos(), INFOS_STRUCT_SIZE); // 2. ---- Print informations and ask confirmation to restore showDebug(3, "TRACE: 002 (printfInfos)\n"); if (options->bBatchMode == false) { printfInformations(); // ask confirmation if (!options->bSimulateMode) { nRes = g_interface -> askRestore(m_szDevice, image->get_szImageFilename()); if (nRes == MSGBOX_NO) // 2 --> cancel THROW(ERR_CANCELED); } } // read and check magic string showDebug(3, "TRACE: 005 (copyUsedBlocks)\n"); try { m_image->readAndCheckMagic(MAGIC_BEGIN_DATABLOCKS); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } // ---- 7. Restore all used blocks errno = 0; g_interface -> StatusLine(i18n("copying used data blocks")); if(strlen(options->szFullyBatchMode)>0) fprintf(stderr,"File name Level T:Elapsed/Estimated Rate/min Progress\n"); showDebug(1, "begin of restoreUsedBlocksToDisk()\n"); try { restoreUsedBlocksToDisk(options); } catch ( CExceptions * excep ) { showDebug(1, "restoreFromImage: %d\n", excep->GetExcept()); throw excep; } showDebug(9, "end of restoreUsedBlocksToDisk()\n"); RETURN; } // ======================================================= int CFSBase::getStdInfos(char *szDest, int nMaxLen, bool bShowBlocksInfo) { BEGIN; char szTemp1[512]; char szTemp2[512]; char szTemp3[512]; char szBlocksInfo[8192]; if (bShowBlocksInfo) { SNPRINTF(szBlocksInfo, i18n("Block size....................%"PRIu64" bytes\n" "Total blocks count............%"PRIu64"\n" "Used blocks count.............%"PRIu64"\n" "Free blocks count.............%"PRIu64"\n"), m_header.qwBlockSize, m_header.qwBlocksCount, m_header.qwUsedBlocks, m_header.qwBlocksCount-m_header.qwUsedBlocks); } else { *szBlocksInfo = 0; // empty } snprintf(szDest, nMaxLen, i18n("%s" // Blocks infos "Space usage:..................%"PRIu64" %%\n" "Used space....................%s\n" "Free space....................%s\n" "Bitmap size...................%s\n" "Label.........................%s\n"), szBlocksInfo, (100 * m_header.qwUsedBlocks)/m_header.qwBlocksCount, formatSize(m_header.qwUsedBlocks * m_header.qwBlockSize, szTemp1), // used space formatSize((m_header.qwBlocksCount-m_header.qwUsedBlocks) * m_header.qwBlockSize, szTemp2), // free space formatSize(m_header.qwBitmapSize, szTemp3), m_header.szLabel); showDebug(1, "\n====================\n%s====================\n\n", szDest); RETURN_int(0); } // ======================================================= int CFSBase::calculateSpaceFromBitmap() { BEGIN; QWORD qwUsedBlocksCount = 0; QWORD qwFreeBlocksCount = 0; QWORD i; showDebug(1, "BITMAP: m_header.qwBlocksCount = %llu\n", m_header.qwBlocksCount); for (i=0; i < m_header.qwBlocksCount; i++) { if (m_bitmap.isBitSet(i)) qwUsedBlocksCount++; else qwFreeBlocksCount++; } m_header.qwUsedBlocks = qwUsedBlocksCount; showDebug(1, "BITMAP: qwUsedBlocks = %llu\n", qwUsedBlocksCount); showDebug(1, "BITMAP: qwFreeBlocks = %llu\n", qwFreeBlocksCount); RETURN_int(0); } // ======================================================= /*int CFSBase::checkBitmapInfos() { QWORD qwBitmapUsedSize; QWORD qwBitmapFreeSize; qwBitmapUsedSize = m_header.qwUsedBlocks * m_header.qwBlockSize; qwBitmapFreeSize = (m_header.qwBlocksCount - m_header.qwUsedBlocks) * m_header.qwBlockSize; showDebug(1, "CHECK BITMAP: qwSuperBlockUsedSize.....%llu = %llu sectors\n", m_qwSuperBlockUsedSize, m_qwSuperBlockUsedSize/512LL); showDebug(1, "CHECK BITMAP: qwBitmapUsedSize.........%llu = %llu sectors\n", qwBitmapUsedSize, qwBitmapUsedSize/512LL); if ((m_bCheckSuperBlockUsedSize) && (qwBitmapUsedSize != m_qwSuperBlockUsedSize)) { showDebug(1, "ERROR BITMAP Used\n"); THROW(ERR_READ_BITMAP, (DWORD)0); } showDebug(1, "CHECK BITMAP: qwSuperBlockFreeSize.....%llu = %llu sectors\n", m_qwSuperBlockFreeSize, m_qwSuperBlockFreeSize/512LL); showDebug(1, "CHECK BITMAP: qwBitmapFreeSize.........%llu = %llu sectors\n", qwBitmapFreeSize, qwBitmapFreeSize/512LL); if ((m_bCheckSuperBlockFreeSize) && (qwBitmapFreeSize != m_qwSuperBlockFreeSize)) { showDebug(1, "ERROR BITMAP Free\n"); THROW(ERR_READ_BITMAP, (DWORD)0); } RETURN_int(0); }*/ // ======================================================= int CFSBase::checkBitmapInfos() { QWORD qwBitmapUsedSize; QWORD qwBitmapFreeSize; qwBitmapUsedSize = m_header.qwUsedBlocks * m_header.qwBlockSize; qwBitmapFreeSize = (m_header.qwBlocksCount - m_header.qwUsedBlocks) * m_header.qwBlockSize; showDebug(1, "CHECK BITMAP: qwSuperBlockUsedSize.....%llu = %llu sectors\n", m_qwSuperBlockUsedSize, m_qwSuperBlockUsedSize/512LL); showDebug(1, "CHECK BITMAP: qwBitmapUsedSize.........%llu = %llu sectors\n", qwBitmapUsedSize, qwBitmapUsedSize/512LL); showDebug(1, "CHECK BITMAP: qwSuperBlockFreeSize.....%llu = %llu sectors\n", m_qwSuperBlockFreeSize, m_qwSuperBlockFreeSize/512LL); showDebug(1, "CHECK BITMAP: qwBitmapFreeSize.........%llu = %llu sectors\n", qwBitmapFreeSize, qwBitmapFreeSize/512LL); if (m_bCheckSuperBlockUsedSize) { if ((!m_bCanBeMore && (qwBitmapUsedSize != m_qwSuperBlockUsedSize)) || (m_bCanBeMore && (qwBitmapUsedSize < m_qwSuperBlockUsedSize))) { showDebug(1, "ERROR BITMAP Used and m_bCanBeMore=%d\n", m_bCanBeMore); THROW(ERR_READ_BITMAP, (DWORD)0); } } if (m_bCheckSuperBlockFreeSize) { if ((!m_bCanBeMore && (qwBitmapFreeSize != m_qwSuperBlockFreeSize)) || (m_bCanBeMore && (qwBitmapFreeSize > m_qwSuperBlockFreeSize))) { showDebug(1, "ERROR BITMAP Free and m_bCanBeMore=%d\n", m_bCanBeMore); THROW(ERR_READ_BITMAP, (DWORD)0); } } RETURN_int(0); } // ======================================================= void CFSBase::setSuperBlockInfos(BOOL bCheckSuperBlockUsedSize, BOOL bCheckSuperBlockFreeSize, QWORD qwSuperBlockUsedSize, QWORD qwSuperBlockFreeSize, BOOL bCanBeMore/*=false*/) { m_bCanBeMore = bCanBeMore; m_qwSuperBlockUsedSize = qwSuperBlockUsedSize; m_qwSuperBlockFreeSize = qwSuperBlockFreeSize; m_bCheckSuperBlockUsedSize = bCheckSuperBlockUsedSize; m_bCheckSuperBlockFreeSize = bCheckSuperBlockFreeSize; } partimage-0.6.8/src/client/fs/fs_hpfs.cpp0000644000000000000000000001501411252653177017017 0ustar rootroot/*************************************************************************** chpfspart.cpp - HPFS (High Perf OS/2) File System Support ------------------- begin : Thu Jul 13 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include "fs_hpfs.h" #include "partimage.h" #include "imagefile.h" // ======================================================= CHpfsPart::CHpfsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize): CFSBase(szDevice, fDeviceFile, qwPartSize) { showDebug(9, "begin\n"); showDebug(9, "end\n"); } // ======================================================= CHpfsPart::~CHpfsPart() { showDebug(9, "begin\n"); showDebug(9, "end\n"); } // ======================================================= void CHpfsPart::fsck() { // SUCCESS } // ======================================================= void CHpfsPart::readBitmap(COptions *options) { BEGIN; BYTE cBitmapList[4096+1]; BYTE cBuffer[2048+1]; DWORD dwOffset; QWORD qwOffset; DWORD dwPos; DWORD dwByte; DWORD *dwBuffer; QWORD qwBit; DWORD i, j; int nRes; qwOffset = ((QWORD)m_info.dwBitmapPointer) * ((QWORD)m_header.qwBlockSize); nRes = bigFseek(m_fDeviceFile, qwOffset); // SEEK_SET forced if (nRes == -1) THROW(ERR_ERRNO, errno); nRes = fread(cBitmapList, 4096, 1, m_fDeviceFile); if (nRes != 1) THROW(ERR_ERRNO, errno); showDebug(1, "\n\n======== begin of Bitmap sectors list ============\n"); // calculates bitmap blocks count m_info.dwBitmapQuadBlocksCount = 0L; do { // ---- Read entry of the list memcpy(&dwOffset, cBitmapList+(m_info.dwBitmapQuadBlocksCount*sizeof(DWORD)), sizeof(DWORD)); if (dwOffset) { showDebug(1, "%lu, ", dwOffset); m_info.dwBitmapQuadBlocksCount++; } } while ((m_info.dwBitmapQuadBlocksCount < 512) && (dwOffset)); // The 4KB bitmap sectors list can contain 512 entries. Error if partition > 4 GB... showDebug(1, "\n======== end of Bitmap sectors list ============\n\n\n"); m_header.qwBitmapSize = m_info.dwBitmapQuadBlocksCount * 4 * 512; //nRes = m_bitmap.init(m_dwBitmapQuadBlocksCount * 4 * 512 * 8); nRes = m_bitmap.init(m_header.qwBitmapSize); if (nRes == -1) THROW(ERR_ERRNO, errno); dwBuffer = (DWORD *)cBuffer; qwBit = 0L; for (dwPos=0; dwPos < m_info.dwBitmapQuadBlocksCount; dwPos++) { // ---- Read entry of the list memcpy(&dwOffset, cBitmapList+(dwPos*sizeof(DWORD)), sizeof(DWORD)); // ---- Read bitmap block qwOffset = ((QWORD)dwOffset) * ((QWORD)m_header.qwBlockSize); nRes = bigFseek(m_fDeviceFile, qwOffset); if (nRes == -1) THROW(ERR_ERRNO, errno); nRes = fread(cBuffer, 2048, 1, m_fDeviceFile); // 2048 bytes = QuadBitmapBlock if (nRes != 1) THROW(ERR_ERRNO, errno); // analyse buffer for (i=0; i < 2048 / sizeof(DWORD); i++) { dwByte = dwBuffer[i]; for (j=0; j < sizeof(DWORD) * 8; j++) { if (dwByte & 1) // block is free m_bitmap.setBit(qwBit, false); else // block is used m_bitmap.setBit(qwBit, true); dwByte>>=1; qwBit++; } } } // Free/Used blocks count m_header.qwUsedBlocks = 0L; for (dwPos=0; dwPos < m_header.qwBlocksCount; dwPos++) { if (m_bitmap.isBitSet(dwPos)) m_header.qwUsedBlocks++; } RETURN; } // ======================================================= void CHpfsPart::printfInformations() { char szFullText[8192]; char szText[8192]; getStdInfos(szText, sizeof(szText), true); SNPRINTF(szFullText, i18n("%s" // standard infos "HPFS version:.................%d\n"), szText, m_info.cHpfsVersion); g_interface->msgBoxOk(i18n("HPFS informations"), szFullText); } // ======================================================= void CHpfsPart::readSuperBlock() { BEGIN; int nRes; hpfs_boot_block boot; hpfs_super_block super; hpfs_spare_block spare; // init memset(&m_info, 0, sizeof(CInfoHpfsHeader)); // read BOOT block nRes = fseek(m_fDeviceFile, 0L, SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); nRes = fread(&boot, sizeof(hpfs_boot_block), 1, m_fDeviceFile); if (nRes != 1) { g_interface->msgBoxError(i18n("Can't read boot block")); THROW(ERR_READ_SUPERBLOCK); } // read SUPER block nRes = fseek(m_fDeviceFile, (long)(16 * 512), SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); nRes = fread(&super, sizeof(hpfs_super_block), 1, m_fDeviceFile); if (nRes != 1) { g_interface->msgBoxError(i18n("Can't read super block")); THROW(ERR_READ_SUPERBLOCK); } // read SPARE block nRes = fseek(m_fDeviceFile, (long)(17 * 512), SEEK_SET); if (nRes == -1) THROW(ERR_ERRNO, errno); nRes = fread(&spare, sizeof(hpfs_spare_block), 1, m_fDeviceFile); if (nRes != 1) { g_interface->msgBoxError(i18n("Can't read spare block")); THROW(ERR_ERRNO, errno); } // check magic numbers if ((super.magic != 0xf995e849) || (spare.magic != 0xf9911849)) { g_interface->msgBoxError(i18n("Invalid HPFS magic numbers. Not a valid HPFS partition.")); THROW(ERR_WRONG_FS); } // analyze informations m_header.qwBlockSize = (DWORD) (boot.bytes_per_sector[1] * 256 + boot.bytes_per_sector[0]); m_header.qwBlocksCount = (DWORD) boot.n_sectors_l - 1; // TODO: why -1 ? (if not, error at the end of the volume) m_info.cHpfsVersion = super.version; memcpy(m_header.szLabel, boot.vol_label, 11); m_info.dwBitmapPointer = super.bitmaps; showDebug(1, "m_dwBitmapPointer = %lu\n", m_info.dwBitmapPointer); // check data if ((m_header.qwBlockSize % 512 != 0) || (m_header.qwBlockSize < 512)) THROW(ERR_ERRNO, errno); setSuperBlockInfos(false, false, 0, 0); RETURN; } partimage-0.6.8/src/client/fs/fs_be.h0000644000000000000000000000666111252653177016122 0ustar rootroot/*************************************************************************** fs_be.h - BeOS File System Support ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef FS_BE_H #define FS_BE_H #include "partimage.h" #include "fs_base.h" // ================================================ // Max name length of BFS #define BEFS_NAME_LEN 255 #define BEFS_SYMLINK_LEN 160 #define BEFS_NUM_DIRECT_BLOCKS 12 #define B_OS_NAME_LENGTH 32 // Flags of superblock #define BEFS_CLEAN 0x434c454e #define BEFS_DIRTY 0x44495254 // Magic headers of BFS's superblock, inode and index #define BEFS_SUPER_BLOCK_MAGIC1 0x42465331 /* BFS1 */ #define BEFS_SUPER_BLOCK_MAGIC2 0xdd121031 #define BEFS_SUPER_BLOCK_MAGIC3 0x15b6830e #define BEFS_INODE_MAGIC1 0x3bbe0ad9 #define BEFS_INDEX_MAGIC 0x69f6c2e8 #define BEFS_SUPER_MAGIC BEFS_SUPER_BLOCK_MAGIC1 // ================================================ typedef u64 befs_off_t; typedef u64 befs_time_t; typedef void befs_binode_etc; typedef struct _befs_block_run { u32 allocation_group; u16 start; u16 len; } befs_block_run; typedef befs_block_run befs_inode_addr; // ================================================ struct CBefsSuper { char name[B_OS_NAME_LENGTH]; u32 magic1; u32 fs_byte_order; u32 block_size; u32 block_shift; befs_off_t num_blocks; befs_off_t used_blocks; u32 inode_size; u32 magic2; u32 blocks_per_ag; u32 ag_shift; u32 num_ags; u32 flags; befs_block_run log_blocks; befs_off_t log_start; befs_off_t log_end; u32 magic3; befs_inode_addr root_dir; befs_inode_addr indices; u32 pad[8]; }; // ================================================ /* struct CInfoBeHeader // size must be 16384 (adjust the reserved data) { DWORD dwByteOrder; DWORD dwBlockShift; DWORD dwBlockPerGroup; // Number of blocks per allocation group (Max 65536) DWORD dwAllocGrpShift; // Number of bits to shift a group number to get a byte address. DWORD dwAllocGroupCount; DWORD dwFlags; DWORD dwBootLoaderSize; QWORD qwBitmapStart; BYTE cReserved[16384]; // Adjust to fit with total header size }; */ // ================================================ /*ass CBefsPart : public CFSBase { public: CBefsPart(char *szDevice, FILE *fDeviceFile, QWORD qwPartSize); ~CBefsPart(); virtual void printfInformations(); virtual void readBitmap(COptions *options); virtual void readSuperBlock(); virtual void fsck(); virtual void* getInfos() {return (void*)&m_info;} private: int testRoot(int a, int b); bool doesGroupHasSuper(int nGroupDescNb); private: CInfoAfsHeader m_info; };*/ #endif // FS_BE_H partimage-0.6.8/src/client/image_net.cpp0000644000000000000000000002662611256743306016720 0ustar rootroot/*************************************************************************** image_net.cpp - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "image_net.h" #include "common.h" #include "gui_text.h" #include "exceptions.h" // ======================================================= CImageNet::CImageNet(COptions * options, bool bUseSSL):CImageBase() { mess = new CMessages; netcl = new CNetClient(options->bMustLogin, bUseSSL); // multi-thread pthread_mutex_init(&m_mutexNetwork, &m_mutexNetworkAttr); } // ======================================================= CImageNet::~CImageNet() { lock(__LINE__); mess -> setMessage(MSG_QUIT); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); unlock(); // multi-thread pthread_mutex_destroy(&m_mutexNetwork); delete mess; delete netcl; } // ======================================================= void CImageNet::lock(int n) // Multi-thread -> avoid problems { showDebug(5, "[#%d] required mutex\n", n); pthread_mutex_lock(&m_mutexNetwork); showDebug(5, "got mutex\n"); } // ======================================================= void CImageNet::unlock() // Multi-thread -> avoid problems { showDebug(5, "release mutex\n"); pthread_mutex_unlock(&m_mutexNetwork); } // ======================================================= void CImageNet::Connect(COptions * options, char * login, char * passwd, char * server, int port) { int nRes; lock(__LINE__); try { netcl -> Connect(server, port); } catch ( CExceptions * excep ) { unlock(); throw excep; } nRes = netcl -> SendPass(login, passwd); if (nRes) { unlock(); showDebug(1, "return from SendPass: failed (%d)\n", nRes); THROW(ERR_PASSWD); } netcl -> Send(options, sizeof(COptions)); unlock(); showDebug(9, "return from SendPass: success\n"); } // ======================================================= void CImageNet::set_bIsOpened(bool n) { lock(__LINE__); mess -> setMessage(MSG_SET_IO, n?1:0); netcl -> SendMsg(mess); m_bIsOpened = n; unlock(); } // ======================================================= void CImageNet::set_szPath(char * str) { lock(__LINE__); mess -> setMessage(MSG_SET_P, strlen(str)+1); netcl -> SendMsg(mess); netcl -> Send((void *) str, strlen(str)+1); strcpy(m_szPath, str); unlock(); } // ======================================================= void CImageNet::set_szImageFilename(char * str) { lock(__LINE__); mess -> setMessage(MSG_SET_IF, strlen(str)+1); netcl -> SendMsg(mess); netcl -> Send((void *) str, strlen(str)+1); strcpy(m_szImageFilename, str); unlock(); } // ======================================================= void CImageNet::set_szOriginalFilename(char * str) { lock(__LINE__); mess -> setMessage(MSG_SET_OF, strlen(str)+1); netcl -> SendMsg(mess); netcl -> Send((void *) str, strlen(str)+1); strcpy(m_szOriginalFilename, str); unlock(); } // ======================================================= void CImageNet::set_szImageFilename(char * str, int n) { lock(__LINE__); mess -> setMessage(MSG_SET_IF, strlen(str)+1); netcl -> SendMsg(mess); netcl -> Send((void *) str, strlen(str)+1); strcpy(m_szImageFilename, str); unlock(); } // ======================================================= void CImageNet::set_szOriginalFilename(char * str, int n) { lock(__LINE__); mess -> setMessage(MSG_SET_OF, strlen(str)+1); netcl -> SendMsg(mess); netcl -> Send((void *) str, strlen(str)+1); strcpy(m_szOriginalFilename, str); unlock(); } // ======================================================= bool CImageNet::get_bIsOpened() { return m_bIsOpened; } // ======================================================= char * CImageNet::get_szImageFilename() { return m_szImageFilename; } // ======================================================= char * CImageNet::get_szOriginalFilename() { return m_szOriginalFilename; } // ======================================================= char * CImageNet::get_szPath() { return m_szPath; } // ======================================================= void CImageNet::write(void *buf, DWORD dwLength, int *nResult) { lock(__LINE__); DWORD cmd; BEGIN; mess -> setMessage(MSG_WRITE, dwLength); netcl -> SendMsg(mess); netcl -> Send(buf, dwLength); netcl -> RecvMsg(mess); mess -> getCmd(&cmd); if (cmd != MSG_OK) { CExceptions * excep = netcl->RecvExcep("cin::write"); unlock(); throw excep; } mess->getSize((DWORD *) nResult); unlock(); } // ======================================================= int CImageNet::getCompressionLevelForImage(char *szFilename) // MBD { DWORD cmd, size; lock(__LINE__); mess -> setMessage(MSG_GET_C, strlen(szFilename)+1); netcl -> SendMsg(mess); netcl -> Send(szFilename, strlen(szFilename)+1); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd == MSG_OK) { unlock(); mess->getSize(&size); return size; } else { CExceptions * excep = netcl->RecvExcep("cin::netCompressLevel"); unlock(); throw excep; } return 0; // not reached but no warning from gcc } // ======================================================= DWORD CImageNet::read(void *buf, DWORD dwLength) { DWORD cmd, size; lock(__LINE__); mess -> setMessage(MSG_READ, dwLength); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd == MSG_OK) { mess->getSize(&size); netcl -> Recv(buf, size); unlock(); mess->getSize(&size); return size; } else { CExceptions * excep = netcl->RecvExcep("cin::read"); unlock(); throw excep; } return 0L; // not reached but no warning from gcc } // ======================================================= void CImageNet::close() { DWORD cmd; lock(__LINE__); mess -> setMessage(MSG_CLOSE, 0); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd != MSG_OK) { CExceptions * excep = netcl->RecvExcep("cin::close"); unlock(); throw excep; } unlock(); } // ======================================================= void CImageNet::openWriting() { DWORD cmd; lock(__LINE__); mess -> setMessage(MSG_OPENW, 0); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd != MSG_OK) { CExceptions * excep = netcl->RecvExcep("cin::openw"); unlock(); throw excep; } unlock(); } // ======================================================= void CImageNet::openReading() { DWORD cmd; lock(__LINE__); mess -> setMessage(MSG_OPENR, 0); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd != MSG_OK) { CExceptions * excep = netcl->RecvExcep("cin::openr"); unlock(); throw excep; } m_bIsOpened = true; unlock(); } // ======================================================= void CImageNet::getFreeSpace(QWORD * qwAvailSpace) { DWORD cmd; lock(__LINE__); BEGIN; mess -> setMessage(MSG_GETSPACE, 0L); netcl -> SendMsg(mess); netcl -> RecvMsg(mess); mess->getCmd(&cmd); if (cmd == MSG_OK) { netcl -> Recv((void *) qwAvailSpace, sizeof(QWORD)); showDebug(3, "freespace=%lld\n", *qwAvailSpace); } else { CExceptions * excep = netcl->RecvExcep("cin::getfreespace"); unlock(); throw excep; } unlock(); } // ======================================================= bool CImageNet::doesFileExists(char *szPath) { DWORD cmd; lock(__LINE__); mess -> setMessage(MSG_DOESFILEEXIST, strlen(szPath)+1); netcl -> SendMsg(mess); netcl -> Send(szPath, strlen(szPath)+1); netcl -> RecvMsg(mess); unlock(); mess->getCmd(&cmd); return cmd == MSG_OK; } // ======================================================= void CImageNet::getDiskFreeSpaceForFile(QWORD *qwFreeSpace, char *szFilepath) { lock(__LINE__); QWORD qwAux; mess -> setMessage(MSG_GETDISKSPACEFILE, strlen(szFilepath)+1); netcl -> SendMsg(mess); netcl -> Send(szFilepath, strlen(szFilepath)+1); netcl -> Recv(&qwAux, sizeof(QWORD)); *qwFreeSpace = qwAux; unlock(); } // ======================================================= void CImageNet::getFileSize(QWORD *qwFileSize, char *szFilepath) { QWORD qwAux; lock(__LINE__); mess -> setMessage(MSG_GETFILESIZE, strlen(szFilepath)+1); netcl -> SendMsg(mess); netcl -> Send(szFilepath, strlen(szFilepath)+1); netcl -> Recv(&qwAux, sizeof(QWORD)); *qwFileSize = qwAux; unlock(); } // ======================================================= void CImageNet::get_qwCurrentVolumeSize(QWORD *qwSize) { QWORD qwAux; lock(__LINE__); mess -> setMessage(MSG_GET_CVS); netcl -> SendMsg(mess); netcl -> Recv(&qwAux, sizeof(QWORD)); *qwSize = qwAux; unlock(); } // ======================================================= // pass szMountDevice, szMountPoint, szMountFS to server for it to // automount the imagelocation mountpoint // return 0 on success and (!0) on error (no error code returned) int CImageNet::mountImageLocation(char * szMountDevice, char * szMountPoint, char * szMountFS) { DWORD dwSize, cmd; BEGIN; lock(__LINE__); // send szMountDevice to server mess -> setMessage(MSG_MOUNTIMAGELOCATION, strlen(szMountDevice)+1); netcl -> SendMsg(mess); netcl -> Send(szMountDevice, strlen(szMountDevice)+1); // send szMountPoint to server dwSize = strlen(szMountPoint)+1; netcl -> Send(&dwSize, sizeof(DWORD)); netcl -> Send(szMountPoint, strlen(szMountPoint)+1); // send szMountFS to server dwSize = strlen(szMountFS)+1; netcl -> Send(&dwSize, sizeof(DWORD)); netcl -> Send(szMountFS, strlen(szMountFS)+1); // receive status of server netcl -> RecvMsg(mess); unlock(); mess->getCmd(&cmd); return cmd != MSG_OK; } // ======================================================= // pass szMountPoint, to server for it to umount imagelocation mountpoint // return 0 on success and (!0) on error (no error code returned) int CImageNet::umountImageLocation(char * szMountPoint) { DWORD cmd; BEGIN; lock(__LINE__); // send szMountPoint to server mess -> setMessage(MSG_UMOUNTIMAGELOCATION, strlen(szMountPoint)+1); netcl -> SendMsg(mess); netcl -> Send(szMountPoint, strlen(szMountPoint)+1); // receive status of server netcl -> RecvMsg(mess); unlock(); mess->getCmd(&cmd); return cmd != MSG_OK; } void CImageNet::set_options(COptions * options) { BEGIN; lock(__LINE__); mess -> setMessage(MSG_NEWOPTIONS); netcl -> SendMsg(mess); netcl -> Send(options, sizeof(COptions)); netcl -> RecvMsg(mess); unlock(); } partimage-0.6.8/src/client/misc.cpp0000644000000000000000000021561411256746531015723 0ustar rootroot/*************************************************************************** misc.cpp - description ------------------- begin : Thu Jun 29 2000 copyright : (C) 2000 by Fran�ois Dupoux email : fdupoux@partimage.org ***************************************************************************/ // $Revision: 1.2 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #define __STDC_FORMAT_MACROS #include #ifdef HAVE_SYS_PARAM_H #include #endif #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_MNTENT_H #include #else #warning "mntent.h not found" #endif #include #include #include #include #include #include #include #include #include "misc.h" #include "partimage.h" #include "imagefile.h" #include "interface.h" #include "interface_newt.h" #include "mbr_backup.h" #include "fs/fs_reiser.h" #include "fs/fs_ufs.h" #include "fs/fs_ext2.h" #include "fs/fs_hpfs.h" #include "fs/fs_ntfs.h" #include "fs/fs_fat.h" #include "fs/fs_jfs.h" #include "fs/fs_xfs.h" #include "fs/fs_hfs.h" #include "fs/fs_afs.h" #include "fs/fs_be.h" DWORD g_dwCrcTable[256]; // ----- reserved for future use defs -------- #define FUTURE_SKIPDATA(magic) \ { \ image.readAndCheckMagic(magic); \ image.read((char*)&dwLength, sizeof(DWORD), true); \ for (i=0; i < dwLength; i++) \ image.read(&cTemp, sizeof(cTemp), true); \ } #define FUTURE_WRITEDATA(magic) \ { \ image.writeMagic(magic); \ image.write(&dwLength, sizeof(DWORD), true); \ } // ======================================================= void restoreMbr(char *szImageFile, COptions *options) { BEGIN; CRestoreMbrWindow optGui; DWORD dwDiskCount; uintptr_t dwOriginalMbrNb; uintptr_t dwCurrentMbrNb; char szHdList[2048]; char szTemp[512]; char szTemp2[512]; char *cCurPart; DWORD i, j; char aux[MAXPATHLEN]; int nRes=0; CMbr *mbrOriginal; CMbr *mbrCurrent; DWORD dwCRC; int nRestoreMode; // structures to stock informations about the current partition CImage image(options); // ----------- check the user is logged as root if (geteuid() != 0) // 0 is the UID of the root { nRes = g_interface -> ErrorLogAsRoot(); if (nRes == 2) THROW(ERR_CANCELED); } // image file path image.set_dwVolumeNumber(0L); extractFilenameFromFullPath(szImageFile, aux); // filename without path image.set_szOriginalFilename(aux); extractFilepathFromFullPath(szImageFile, aux); // filepath without filename image.set_szPath(aux); image.set_szImageFilename(szImageFile); // ----------- get the image compression level options->dwCompression = (DWORD) image.getCompressionLevelForImage(szImageFile); if (options->dwCompression == COMPRESS_BZIP2) { g_interface -> ErrorBugBzip2(); THROW(ERR_CANCELED); } // ----------- open the image file image.set_options(options); try { image.openReading(); } catch ( CExceptions * excep ) { throw excep; } // the read buffer thread can now start working //increaseSemaphore(&g_semDataToProcess); // ----------- read header CMainHeader headMain; try{image.read((char*)&headMain, sizeof(CMainHeader), true);} catch (CExceptions * excep) { image.closeReading(true); throw excep; } // read CRC of CMainHeader image.readAndCheckCRC((char*)&headMain, sizeof(CMainHeader)); // check there are MBR in the image file if (headMain.dwMbrCount == 0) { image.closeReading(true); THROW( ERR_NOMBR); } dwDiskCount = mbrParseProcPart(szHdList, sizeof(szHdList)); // allocate memory for original+current MBR mbrOriginal = new CMbr[headMain.dwMbrCount]; mbrCurrent = new CMbr[dwDiskCount]; if ((!mbrOriginal) || (!mbrCurrent)) { image.closeReading(true); THROW( ERR_NOMEM); } // MBR window if (options->bBatchMode == false) optGui.create(); // ---- add hard disks cCurPart = szHdList; for (i=0; i < dwDiskCount; i++) { memset(&mbrCurrent[i], 0, sizeof(CMbr)); for (j=0; (j < 512) && (*cCurPart != '#'); j++, cCurPart++) mbrCurrent[i].szDevice[j] = *cCurPart; cCurPart++; for (j=0; (j < 512) && (*cCurPart != '#'); j++, cCurPart++) szTemp[j] = *cCurPart; cCurPart++; mbrCurrent[i].qwBlocksCount = atol(szTemp); SNPRINTF(szTemp2, "%s [%s blocks]", mbrCurrent[i].szDevice, szTemp); if (options->bBatchMode == false) optGui.addHardDisk(szTemp2, i); } // ---- add MBR available // 1. check the magic number try {image.readAndCheckMagic(MAGIC_BEGIN_MBRBACKUP); } catch (CExceptions * excep) { image.closeReading(true); throw excep; } // 2. read data of the saved MBR for (i=0; i < headMain.dwMbrCount; i++) { try{image.read((char*)&(mbrOriginal[i]), sizeof(CMbr), true);} catch (CExceptions * excep) { image.closeReading(true); throw excep; } SNPRINTF(szTemp, "%.3u: %s [%"PRIu64" blocks]", i, mbrOriginal[i].szDevice, mbrOriginal[i].qwBlocksCount); if (options->bBatchMode == false) optGui.addMbr(szTemp, i); // check the CRC dwCRC = 0; for (j=0; j < MBR_SIZE_WHOLE; j++) dwCRC += mbrOriginal[i].cData[j]; if (dwCRC != mbrOriginal[i].dwDataCRC) { image.closeReading(true); THROW(ERR_CHECK_CRC, mbrOriginal[i].dwDataCRC, dwCRC); } } // close image file image.closeReading(true); if (options->bBatchMode == false) { nRes = optGui.runForm(); optGui.getValues(&dwCurrentMbrNb, &dwOriginalMbrNb, &nRestoreMode); optGui.destroyForm(); if (nRes == KEY_EXIT) THROW( ERR_CANCELED); if (nRes == KEY_BACK) THROW( ERR_COMEBACK); nRes = g_interface->WarnRestoreMBR(mbrCurrent[dwCurrentMbrNb].szDevice, mbrCurrent[dwCurrentMbrNb].qwBlocksCount, mbrOriginal[dwOriginalMbrNb].szDevice, mbrOriginal[dwOriginalMbrNb].qwBlocksCount); if (nRes == MSGBOX_CANCEL) // cancel THROW( ERR_CANCELED); // check the original MBR was on the same disk, or show warning if ((strcmp(mbrOriginal[dwCurrentMbrNb].szDevice, mbrOriginal[dwOriginalMbrNb].szDevice) != 0) || (mbrCurrent[dwCurrentMbrNb].qwBlocksCount != mbrOriginal[dwOriginalMbrNb].qwBlocksCount)) { nRes = g_interface -> WarnRestoreOtherMBR(mbrCurrent[dwCurrentMbrNb].szDevice, mbrOriginal[dwOriginalMbrNb].szDevice); if (nRes == MSGBOX_CANCEL) // cancel THROW( ERR_CANCELED); } } // ---- do the write operation FILE *fDevice; // open device fDevice = fopen(mbrCurrent[dwCurrentMbrNb].szDevice, "r+b"); if (!fDevice) { THROW( ERR_OPENING_DEVICE, errno); } // lock the partition try { lockFile(fileno(fDevice), mbrCurrent[dwCurrentMbrNb].szDevice); } catch ( CExceptions * excep ) { throw excep; } // restore data if (nRestoreMode == MBR_RESTORE_WHOLE) nRes = fwrite(mbrOriginal[dwOriginalMbrNb].cData, MBR_SIZE_WHOLE, 1, fDevice); else if (nRestoreMode == MBR_RESTORE_BOOT) { nRes = fwrite(mbrOriginal[dwOriginalMbrNb].cData, MBR_SIZE_BOOT, 1, fDevice); if (nRes != -1) // Restore 0xAA55 { nRes = fseek(fDevice, MBR_SIZE_TABLE, SEEK_CUR); // skip the partition table if (nRes != -1) nRes = fwrite(mbrOriginal[dwOriginalMbrNb].cData+MBR_SIZE_BOOT+MBR_SIZE_TABLE, 2, 1, fDevice); // table + 0xAA55 } } else if (nRestoreMode == MBR_RESTORE_TABLE) { nRes = fseek(fDevice, MBR_SIZE_BOOT, SEEK_SET); if (nRes != -1) nRes = fwrite(mbrOriginal[dwOriginalMbrNb].cData+MBR_SIZE_BOOT, MBR_SIZE_TABLE+2, 1, fDevice); // table + 0xAA55 } fflush(fDevice); // re-read partition table if (ioctl(fileno(fDevice), BLKRRPART)) { showDebug(1, "Cannot reread partition table: errno=%s\n", strerror(errno)); THROW(ERR_ERRNO, errno); } else { showDebug(1, "Partition table was reread\n"); } // close and check error flock(fileno(fDevice), LOCK_UN); fclose(fDevice); // free memory delete []mbrOriginal; delete []mbrCurrent; if (nRes == -1) THROW(ERR_ERRNO, errno); RETURN; } struct portable_tm *localtime_portable (const time_t *__timer) { static struct portable_tm ret; struct tm *host_tm; host_tm=localtime (__timer); ret.tm_sec=host_tm->tm_sec; ret.tm_min=host_tm->tm_min; ret.tm_hour=host_tm->tm_hour; ret.tm_mday=host_tm->tm_mday; ret.tm_mon=host_tm->tm_mon; ret.tm_year=host_tm->tm_year; ret.tm_wday=host_tm->tm_wday; ret.tm_yday=host_tm->tm_yday; ret.tm_isdst=host_tm->tm_isdst; ret.tm_gmtoff=host_tm->tm_gmtoff; ret.tm_zone=0; return &ret; } // ======================================================= void savePartition(char *szDevice, char *szImageName, //, char *szFileSystem, COptions *options) { BEGIN; int nRes; time_t dt; FILE *fDeviceFile; int nFs; CSavingWindow guiInfo; CSaveOptWindow guiOpt; CMainHeader headMain; char aux[MAXPATHLEN]; char szHdList[2048]; char szTemp[512]; char szTemp2[512]; DWORD dwBlocks; DWORD dwLength; DWORD i, j; int nMajor, nMinor; char szFileSystem[1024]; // structures to stock informations about the current partition CImage image(options); memset(&headMain, 0, sizeof(CMainHeader)); // ----------- calculate filenames extractFilenameFromFullPath(szImageName, aux); // filename without path image.set_szOriginalFilename(aux); extractFilepathFromFullPath(szImageName, aux); // filepath without filename image.set_szPath(aux); //if (options->dwSplitMode == SPLIT_AUTO) if ((strncmp(szImageName, "stdout", 6) == 0) || (strncmp(szImageName, "STDOUT", 6) == 0)) options->qwSplitSize = 0; if (!options->qwSplitSize) { SNPRINTF(aux, "%s", szImageName); *(aux+MAXPATHLEN-1)='\0'; image.set_szImageFilename(aux); } else { SNPRINTF(aux, "%s.000", szImageName); *(aux+MAXPATHLEN-1) = '\0'; image.set_szImageFilename(aux); } // show operation window if (options->bBatchMode == false) { guiOpt.create(image.get_szImageFilename(), *options); } g_interface -> StatusLine(i18n("initializing the operation.")); // ----------- system checks nRes = systemChecks(szDevice, options->bFailIfMounted, options->szFullyBatchMode); if (nRes == -1) THROW( ERR_FSCHK); // ----------- detect file system nFs = detectFileSystem(szDevice, szFileSystem); if (nFs == -1) THROW( ERR_WRONG_FS); // show operation window if (options->bBatchMode == false) { nRes = guiOpt.runForm(); guiOpt.getValues(options); image.set_options(options); guiOpt.destroyForm(); if (nRes == KEY_EXIT) THROW( ERR_CANCELED); if (nRes == KEY_BACK) THROW( ERR_COMEBACK); // check options nRes = checkOptions(*options, szDevice, szImageName); if (nRes == -1) THROW( ERR_CANCELED); } // ask image description to the user if (options->bAskDesc) { g_interface -> askDescription(headMain.szPartDescription, MAX_DESCRIPTION); } // bzip2 bug workaround if ((options->dwCompression == COMPRESS_BZIP2) && (!g_interface->getBatchMode())) { nRes = g_interface -> msgBoxContinueCancel(i18n("Bzip2 bug workaround"), i18n("Because of a bug, you won't be able to restore MBR from any " "bzip2 compressed image unless you manualy run bzip2 -d on them")); if (nRes == MSGBOX_CANCEL) THROW(ERR_CANCELED); } // ----------- open partition file errno = 0; fDeviceFile = fopen(szDevice, "rb"); if (fDeviceFile == NULL) THROW( ERR_OPENING_DEVICE, errno); // lock the partition try { lockFile(fileno(fDeviceFile), szDevice); } catch ( CExceptions * excep ) { throw excep; } // ----------- open the image file try { image.openWriting(); } catch ( CExceptions * excep ) { throw excep; } // ----------- init of the info window -------- guiInfo.create(szDevice, image.get_szImageFilename(), szFileSystem, getPartitionSize(szDevice), *options); nRes = guiInfo.runForm(); if (nRes == -1) THROW( ERR_CANCELED); image.setGuiSave(&guiInfo); // ----------- write main header // fill header infos strcpy(headMain.szFileSystem, szFileSystem); strcpy(headMain.szOriginalDevice, szDevice); if (gethostname(headMain.szHostname, MAX_HOSTNAMESIZE)) strcpy(headMain.szHostname, "Unknown local machine"); // filename without path extractFilenameFromFullPath(szImageName, headMain.szFirstImageFilepath); headMain.dwCompression = options->dwCompression; headMain.dwMainFlags = 0; headMain.dwEncryptAlgo = ENCRYPT_NONE; time(&dt); // current time/date (date of image creation) headMain.dateCreate = *localtime_portable(&dt); // file format version strcpy(headMain.szVersion, CURRENT_IMAGE_FORMAT); headMain.dwMbrSize = sizeof(CMbr); nRes = getMajorMinor(szDevice, &nMajor, &nMinor); if (options->bBackupMBR) headMain.dwMbrCount = mbrParseProcPart(szHdList, sizeof(szHdList), nMajor, nMinor); // get number of hard disks to save MBR else headMain.dwMbrCount = 0; // do not backup the MBR //debugWin("headMain.dwMbrCount=%lu and szHdList=[%s]", headMain.dwMbrCount, szHdList); // current architecture utsname arch; uname(&arch); strncpy(headMain.szUnameSysname, arch.sysname, MAX_UNAMEINFOLEN); strncpy(headMain.szUnameNodename, arch.nodename, MAX_UNAMEINFOLEN); strncpy(headMain.szUnameRelease, arch.release, MAX_UNAMEINFOLEN); strncpy(headMain.szUnameVersion, arch.version, MAX_UNAMEINFOLEN); strncpy(headMain.szUnameMachine, arch.machine, MAX_UNAMEINFOLEN); // reserved for future use: number of structures savec. // (can be number of disklabels saved for ext000, can be number // of extended partition tables saved for ext001, ...) headMain.dwReservedFuture000 = 0; headMain.dwReservedFuture001 = 0; headMain.dwReservedFuture002 = 0; headMain.dwReservedFuture003 = 0; headMain.dwReservedFuture004 = 0; headMain.dwReservedFuture005 = 0; headMain.dwReservedFuture006 = 0; headMain.dwReservedFuture007 = 0; headMain.dwReservedFuture008 = 0; headMain.dwReservedFuture009 = 0; // split mode /*if (options->dwSplitMode != SPLIT_NONE) headMain.dwMainFlags |= FLAG_SPLITTED;*/ //image.set_bIsSplitted((options->dwSplitMode != SPLIT_NONE)); headMain.qwPartSize = getPartitionSize(szDevice); //image.set_dwCurrentVolumeSize(0L); image.set_dwVolumeNumber(0L); //image.set_qwIdentificator(headMain.qwIdentificator); // gui = no if (strlen(options->szFullyBatchMode)>0) { showDebug(3,"szFullyBatchMode=%s\n, len=%d",options->szFullyBatchMode,strlen(options->szFullyBatchMode)); fprintf(stderr,"partimage: status: Partimage: %s\n", headMain.szVersion); if (options->dwCompression == 0) fprintf(stderr,"partimage: status: Image type: NONE\n"); else if (options->dwCompression == 1) + fprintf(stderr,"partimage: status: Image type: GZIP\n"); else if (options->dwCompression == 2) fprintf(stderr,"partimage: status: Image type: BZIP2\n"); else if (options->dwCompression == 3) fprintf(stderr,"partimage: status: Image type: LZO\n"); } try { image.write(&headMain, sizeof(CMainHeader), true); } catch ( CExceptions * excep ) { closeFilesSave(true, *options, &image, fDeviceFile); throw excep; } // write CRC of CMainHeader image.writeCRC((char*)&headMain, sizeof(CMainHeader)); // ----------- save the MBR in the beginning of the image file image.writeMagic(MAGIC_BEGIN_MBRBACKUP); CMbr mbr; char *cCurPart; showDebug(9, "SAVEMBR_TRACE_001\n"); cCurPart = szHdList; for (i=0; i < headMain.dwMbrCount; i++) { showDebug(9, "SAVEMBR_TRACE_002\n"); memset(szTemp, 0, 512); for (j=0; (j < 512) && (*cCurPart != '#'); j++, cCurPart++) szTemp[j] = *cCurPart; cCurPart++; memset(szTemp2, 0, 512); for (j=0; (j < 512) && (*cCurPart != '#'); j++, cCurPart++) szTemp2[j] = *cCurPart; cCurPart++; dwBlocks = atol(szTemp2); showDebug(9, "SAVEMBR_TRACE_003\n"); nRes = mbrGetData(szTemp, &mbr, dwBlocks); // BUG HERE if (nRes == -1) { closeFilesSave(true, *options, &image, fDeviceFile); THROW( ERR_SAVE_MBR); } showDebug(9, "SAVEMBR_TRACE_004\n"); try { image.write(&mbr, sizeof(CMbr), true); } catch ( CExceptions * excep ) { closeFilesSave(true, *options, &image, fDeviceFile); throw excep; } showDebug(9, "SAVEMBR_TRACE_005\n"); } showDebug(9, "SAVEMBR_TRACE_006\n"); // copy reserved for future data try { dwLength = 0; // length of data written in an extension FUTURE_WRITEDATA(MAGIC_BEGIN_EXT000); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT001); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT002); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT003); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT004); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT005); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT006); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT007); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT008); FUTURE_WRITEDATA(MAGIC_BEGIN_EXT009); } catch ( CExceptions * excep ) { closeFilesSave(true, *options, &image, fDeviceFile); throw excep; } // copy options to debug file showDebugOptions(options); g_interface -> StatusLine(i18n("Saving partition to the image file...")); // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- CFSBase *FS = NULL; if ((strcmp(szFileSystem, "ext2fs") == 0) || (strcmp(szFileSystem, "ext3fs") == 0)) // if EXT2 / EXT3 FS = new CExt2Part(szDevice, fDeviceFile, headMain.qwPartSize); else if (strncmp(szFileSystem, "reiserfs", 8) == 0) // if REISER FS = new CReiserPart(szDevice, fDeviceFile, headMain.qwPartSize); else if ((strncmp(szFileSystem, "fat16", 5) == 0) || (strncmp(szFileSystem, "fat32", 5) == 0)) // if FAT FS = new CFatPart(szDevice, fDeviceFile, headMain.qwPartSize); else if (strcmp(szFileSystem, "hpfs") == 0) // if HPFS FS = new CHpfsPart(szDevice, fDeviceFile, headMain.qwPartSize); else if (strcmp(szFileSystem, "hfs") == 0) // if HFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("HFS"); FS = new CHfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(szFileSystem, "jfs") == 0) // if JFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("JFS"); FS = new CJfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(szFileSystem, "xfs") == 0) // if XFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("XFS"); FS = new CXfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(szFileSystem, "ufs") == 0) // if UFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("UFS"); FS = new CUfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(szFileSystem, "afs") == 0) // if AFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("AFS"); FS = new CAfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(szFileSystem, "ntfs") == 0) // if NTFS { if (!options->bBatchMode) g_interface -> WarnFS("NTFS"); FS = new CNtfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else // if UNKNOWN THROW( ERR_WRONG_FS); if (FS) { showDebug(9, "begin of virtual saveToImage()\n"); try { FS -> saveToImage(&image, options, &guiInfo); } catch ( CExceptions * excep ) { delete FS; guiInfo.destroyForm(); closeFilesSave(true, *options, &image, fDeviceFile); showDebug(9, "end of virtual saveToImage(), failed\n"); throw excep; } showDebug(9, "end of virtual saveToImage(), ok\n"); delete FS; } // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // ---- write tail CMainTail tailMain; memset(&tailMain, 0, sizeof(CMainTail)); image.writeMagic(MAGIC_BEGIN_TAIL); //strcpy(tailMain.szMagicString, MAGIC_TAIL); tailMain.qwCRC = image.get_qwCRC(); tailMain.dwVolumeNumber = image.get_dwVolumeNumber(); try { image.write(&tailMain, sizeof(CMainTail), false); } catch (CExceptions * excep) { guiInfo.destroyForm(); closeFilesSave(true, *options, &image, fDeviceFile); throw excep; } showDebug(1, "Final 64 bits CRC = %llu = %Xh\n", image.get_qwCRC(), image.get_qwCRC()); // ---- Close files (end of all previous operations with success) guiInfo.destroyForm(); closeFilesSave(false, *options, &image, fDeviceFile); RETURN; } // ======================================================= void restorePartition(char *szDevice, char *szImageName, COptions *options) { BEGIN; int nRes; QWORD qwPartitionSize; CRestoreOptWindow guiOpt; CRestoringWindow guiInfo; char aux[MAXPATHLEN]; DWORD dwLength; char cTemp; DWORD i; // structures to stock informations about the current partition CImage image(options); g_interface -> StatusLine(i18n("initializing the operation")); // ----------- system checks nRes = systemChecks(szDevice, options->bFailIfMounted, options->szFullyBatchMode); if (nRes == -1) THROW( ERR_FSCHK); // initialize interface if (options->bBatchMode == false) guiOpt.create(szDevice, szImageName, *options); // ----------- calculate filenames //image.set_dwCurrentVolumeSize(0L); image.set_dwVolumeNumber(0L); if (strcmp(szImageName, "stdin")) { // filename without path extractFilenameFromFullPath(szImageName, aux); image.set_szOriginalFilename(aux); // filepath without filename extractFilepathFromFullPath(szImageName, aux); image.set_szPath(aux); image.set_szImageFilename(szImageName); } else { image.set_szOriginalFilename("stdin"); image.set_szPath(""); image.set_szImageFilename("stdin"); } // ----------- open partition file errno = 0; // ----------- get the image compression level //options->dwCompression = (DWORD) getCompressionLevelForImage(image.get_szImageFilename()); // ----------- open the image file try { image.openReading(); } catch ( CExceptions * excep ) { throw excep; } // the read buffer thread can now start working //increaseSemaphore(&g_semDataToProcess); // ----------- read header CMainHeader headMain; try{image.read((char*)&headMain, sizeof(CMainHeader), true);} catch (CExceptions * excep) { if (!excep->getCaught()) g_interface -> ErrorReadingMainHeader(); closeFilesRestore(true, *options, &image, NULL); throw excep; } // encryption is not supported if (headMain.dwEncryptAlgo != ENCRYPT_NONE) { closeFilesRestore(true, *options, &image, NULL); THROW(ERR_ENCRYPT); } // read CRC of CMainHeader image.readAndCheckCRC((char*)&headMain, sizeof(CMainHeader)); // ---- skip the MBR data // 1. check the magic number try {image.readAndCheckMagic(MAGIC_BEGIN_MBRBACKUP); } catch (CExceptions * excep) { closeFilesRestore(true, *options, &image, NULL); throw excep; } // 2. skip contents CMbr mbr; for (i=0; i ErrorAskFirstVolume(szImageName); else g_interface -> ErrorInvalidImagefile(szImageName); closeFilesRestore(true, *options, &image, fDeviceFile); RETURN_int(-1); }*/ // ----------- check image version /* if (strcmp(headMain.szVersion, CURRENT_IMAGE_FORMAT) > 0) { RETURN_int(-1); } else if (strcmp(headMain.szVersion, CURRENT_IMAGE_FORMAT) < 0) { RETURN_int(-1); } */ //image.set_bIsSplitted(!!(headMain.dwMainFlags & FLAG_SPLITTED)); // ----------- image ?= splitted //image.set_szOriginalFilename(headMain.szFirstImageFilepath, MAXPATHLEN); //image.set_qwIdentificator(headMain.qwIdentificator); //image.set_bIsSplitted( (bool) (headMain.dwMainFlags & FLAG_SPLITTED)); // check the destination partition is large enough to restore data qwPartitionSize = getPartitionSize(szDevice); if (qwPartitionSize < headMain.qwPartSize) THROW(ERR_PART_TOOSMALL, headMain.qwPartSize, qwPartitionSize); // -------- show the description if (options->bBatchMode == false) { headMain.szPartDescription[MAX_DESCRIPTION-1] = 0; if (*headMain.szPartDescription) g_interface->msgBoxOk(i18n("Partition description"), headMain.szPartDescription); // show operation window nRes = guiOpt.runForm(); guiOpt.getValues(options); guiOpt.destroyForm(); if (nRes == KEY_EXIT) THROW(ERR_CANCELED); if (nRes == KEY_BACK) THROW(ERR_COMEBACK); /*if (nRes == -1) throw neew CExceptions("restorePartition", ERR_CANCELED);*/ // check options nRes = checkOptions(*options, szDevice, szImageName); if (nRes == -1) THROW(ERR_CANCELED); } // copy options to debug file showDebugOptions(options); // open the partition file FILE *fDeviceFile; if (options->bSimulateMode) g_interface -> WarnSimulate(); if (options->bSimulateMode) fDeviceFile = fopen(szDevice, "rb"); // read only mode else fDeviceFile = fopen(szDevice, "r+b");// read write mode (open at beginning) if (fDeviceFile == NULL) THROW(ERR_OPENING_DEVICE, errno); // lock the partition try { lockFile(fileno(fDeviceFile), szDevice); } catch ( CExceptions * excep ) { throw excep; } // gui = no if (strlen(options->szFullyBatchMode)>0) { showDebug(3,"szFullyBatchMode=%s\n, len=%d",options->szFullyBatchMode,strlen(options->szFullyBatchMode)); options->dwCompression = (DWORD) image.getCompressionLevelForImage(szImageName); fprintf(stderr,"partimage: status: Partimage: %s\n", headMain.szVersion); if (options->dwCompression == 0) fprintf(stderr,"partimage: status: Image type: NONE\n"); else if (options->dwCompression == 1) fprintf(stderr,"partimage: status: Image type: GZIP\n"); else if (options->dwCompression == 2) fprintf(stderr,"partimage: status: Image type: BZIP2\n"); else if (options->dwCompression == 3) fprintf(stderr,"partimage: status: Image type: LZO\n"); } g_interface -> StatusLine(i18n("Restoring partition from the image file...")); // --------- initialize info window ------------- guiInfo.create(szDevice, szImageName, qwPartitionSize, options->dwCompression, headMain.szOriginalDevice, headMain.szFileSystem, headMain.dateCreate, headMain.qwPartSize, options); image.setGuiRestore(&guiInfo); /*if (image.get_bIsSplitted()) guiInfo.showSplittedInfo(i18n("The image was splitted")); else guiInfo.showSplittedInfo(i18n("The image was not splitted")); */ //guiInfo.showPartitionInfo(szDevice, qwPartitionSize); // ----------- print informations about image file //guiInfo.showPartitionInfos(options->dwCompression, headMain.szOriginalDevice, headMain.szFileSystem, headMain.dateCreate, headMain.qwPartSize); // guiInfo.showImageFileInfo(szImageName, -1, options->szFullyBatchMode); // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- CFSBase *FS = NULL; if ((strcmp(headMain.szFileSystem, "ext2fs") == 0) || (strcmp(headMain.szFileSystem, "ext3fs") == 0)) // if EXT2 / EXT3 FS = new CExt2Part(szDevice, fDeviceFile, headMain.qwPartSize); else if (strncmp(headMain.szFileSystem, "reiserfs", 8) == 0) // if REISER FS = new CReiserPart(szDevice, fDeviceFile, headMain.qwPartSize); else if ((strncmp(headMain.szFileSystem, "fat16", 5) == 0) || (strncmp(headMain.szFileSystem, "fat32", 5) == 0)) // if FAT //else if (strncmp(headMain.szFileSystem, "fat", 3) == 0) // if FAT FS = new CFatPart(szDevice, fDeviceFile, headMain.qwPartSize); else if (strcmp(headMain.szFileSystem, "hpfs") == 0) // if HPFS FS = new CHpfsPart(szDevice, fDeviceFile, headMain.qwPartSize); else if (strcmp(headMain.szFileSystem, "hfs") == 0) // if HFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("HFS"); FS = new CHfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(headMain.szFileSystem, "jfs") == 0) // if JFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("JFS"); FS = new CJfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(headMain.szFileSystem, "xfs") == 0) // if XFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("XFS"); FS = new CXfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(headMain.szFileSystem, "afs") == 0) // if AFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("AFS"); FS = new CAfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(headMain.szFileSystem, "ntfs") == 0) // if NTFS { if (!options->bBatchMode) g_interface -> WarnFS("NTFS"); FS = new CNtfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else if (strcmp(headMain.szFileSystem, "ufs") == 0) // if UFS { if (!options->bBatchMode) g_interface -> WarnFsBeta("UFS"); FS = new CUfsPart(szDevice, fDeviceFile, headMain.qwPartSize); } else // if UNKNOWN THROW(ERR_WRONG_FS); if (FS) { showDebug(1, "begin of virtual saveToImage()\n"); try { FS -> restoreFromImage(&image, options, &guiInfo); } catch ( CExceptions * excep ) { showDebug(9, "end of virtual saveToImage(), failed\n"); closeFilesRestore(true, *options, &image, fDeviceFile); delete FS; throw excep; } showDebug(9, "end of virtual saveToImage(), ok\n"); delete FS; } // -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- // ---- check tail CMainTail tailMain; try { image.readAndCheckMagic(MAGIC_BEGIN_TAIL); image.read((char*)&tailMain, sizeof(CMainTail), false); } catch (CExceptions * excep) { showDebug(1,"ERROR reading MAGIC-BEGIN-TAIL\n"); nRes = g_interface -> msgBoxContinueCancel(i18n("Error in Main Tail"), i18n("Impossible to read the magic: the image is damaged")); if (nRes != MSGBOX_CONTINUE) { closeFilesRestore(true, *options, &image, fDeviceFile); throw excep; } } // check CRC 64 if (image.get_qwCRC() != tailMain.qwCRC) { showDebug(1, "CRC64 are differents: image.get_qwCRC()=%llu, tailMain.qwCRC=%llu\n",image.get_qwCRC(), tailMain.qwCRC); closeFilesRestore(true, *options, &image, fDeviceFile); nRes = g_interface -> msgBoxContinueCancel(i18n("Error in Main Tail"), i18n("CRC changed: the image is damaged")); if (nRes != MSGBOX_CONTINUE) THROW(ERR_CHECK_CRC, image.get_qwCRC(), tailMain.qwCRC); } // check volumes number if (image.get_dwVolumeNumber() != tailMain.dwVolumeNumber) { showDebug(1, "volume numbers are differents: image.get_dwVilumeNumber()=%lu, tailMain.dwVolumeNumber=%lu\n",image.get_dwVolumeNumber(), tailMain.dwVolumeNumber); nRes = g_interface -> msgBoxContinueCancel(i18n("Error in Main Tail"), i18n("volume numbers changed: the image is damaged")); if (nRes != MSGBOX_CONTINUE) { closeFilesRestore(true, *options, &image, fDeviceFile); THROW(ERR_VOLUMENUMBER, image.get_dwVolumeNumber(), tailMain.dwVolumeNumber); } } // ---- close files closeFilesRestore(false, *options, &image, fDeviceFile); RETURN; } // ======================================================= // on_error: call with true only if error is detected void closeFilesSave(bool on_error, COptions options, CImage *image, FILE *fDeviceFile) { BEGIN; if (fDeviceFile) { if (flock(fileno(fDeviceFile), LOCK_UN) == -1) THROW(ERR_ERRNO, errno); fclose(fDeviceFile); fDeviceFile = 0; } //if (!on_error) (Removed this line in order to fix a bug in 0.6.0-final: the '*' key made pi to freeze, and the thread2 was not closed) { try { image->closeWriting(); } catch ( CExceptions * excep) { throw excep; } } RETURN; } // ======================================================= // on_error: call with true only if error is detected void closeFilesRestore(bool on_error, COptions options, CImage *image, FILE *fDeviceFile) { BEGIN; if (fDeviceFile) { if (flock(fileno(fDeviceFile), LOCK_UN) == -1) showDebug(1, "WARNING: unlocking file failed %s\n", strerror(errno)); // THROW(ERR_ERRNO, errno); fclose(fDeviceFile); fDeviceFile = 0; } if (!on_error) // close was called after an error was detected { try { image->closeReading(); } catch ( CExceptions * excep) { showDebug(1, "WARNING: closeReading failed\n"); } // { throw excep; } } RETURN; } // ============================================================================= bool isFileSystemSupported(char *szFileSystem) { char *szPtr; char szTemp[1024]; WORD i; showDebug(1, "SUPPORTED_FS=[%s]\n", g_szSupportedFileSystems); szPtr = g_szSupportedFileSystems; while (*szPtr) { // extract current name memset(szTemp, 0, sizeof(szTemp)); for (i=0; (i < sizeof(szTemp)) && (*szPtr) && (*szPtr != '*') && (*szPtr != ','); i++, szPtr++) szTemp[i] = *szPtr; if (*szPtr) szPtr++; // compare names if (strncmp(szTemp, szFileSystem, sizeof(szTemp)) == 0) return true; } return false; } // ============================================================================= // always LOCK_EX because here we lock only partitions // images are locked in CImageDisk. void lockFile(int nFileDesc, char *szDevice) { BEGIN; int nRes; errno = 0; nRes = flock(nFileDesc, LOCK_EX | LOCK_NB); if (nRes == -1) { showDebug(1, "lockFile: (%d) %s already locked\n", nFileDesc, szDevice); THROW(ERR_LOCKED, szDevice); } RETURN; } // ======================================================= void initCrcTable(DWORD *dwCrcTable) { DWORD c; unsigned int n, k; DWORD poly; // polynomial exclusive-or pattern // terms of polynomial defining this crc (except x^32): static const BYTE p[] = {0,1,2,4,5,7,8,10,11,12,16,22,23,26}; // make exclusive-or pattern from polynomial (0xedb88320L) poly = 0L; for (n = 0; n < sizeof(p)/sizeof(BYTE); n++) poly |= 1L << (31 - p[n]); for (n = 0; n < 256; n++) { c = (DWORD)n; for (k = 0; k < 8; k++) c = c & 1 ? poly ^ (c >> 1) : c >> 1; dwCrcTable[n] = c; } } // ======================================================= // copy options to debug file void showDebugOptions(COptions *options) { showDebug(1, "\n\n============= begin OPTIONS =====================\n" "options.bOverwrite = %d\n" //"options.dwSplitMode = %lu\n" "options.qwSplitSize = %llu\n" "options.bEraseWithNull = %d\n" "options.dwCompression = %lu\n" "options.bCheckBeforeSaving = %d\n" "options.bFailIfMounted = %d\n" "options.bAskDesc = %d\n" "options.dwFinish = %lu\n" "options.szServerName = %s\n" "options.dwServerPort = %lu\n" "options.bBatchMode = %d\n" "options.bSplitWait = %d\n" "options.bSync = %d\n" "options.bMustLogin = %d\n" "options.bUseSSL = %d\n" "options.dwDebugLevel = %lu\n" "options.bBackupMBR = %d\n" "options.bSimulateMode = %d\n" "options.szAutoMount = %s\n" "options.szFullyBatchMode = %s\n" "============= end OPTIONS =====================\n\n\n", (int) options->bOverwrite, //options->dwSplitMode, options->qwSplitSize, (int) options->bEraseWithNull, options->dwCompression, (int) options->bCheckBeforeSaving, (int)options->bFailIfMounted, (int) options->bAskDesc, options->dwFinish, options->szServerName, options->dwServerPort, (int) options->bBatchMode, (int)options->bSplitWait, (int)options->bSync, (int)options->bMustLogin, (int)options->bUseSSL, options->dwDebugLevel, (int)options->bBackupMBR, (int)options->bSimulateMode, options->szAutoMount, options->szFullyBatchMode); } // ======================================================= /*bool isMountedOld(const char *szDevice, char *szMountPoint) { FILE * f; struct mntent * mnt; bool bMounted = false; if ((f = setmntent (MOUNTED, "r")) == 0) RETURN_int(-1); while ((mnt = getmntent (f)) != 0) { if (strcmp(szDevice, mnt->mnt_fsname) == 0) { bMounted = true; strcpy(szMountPoint, mnt->mnt_dir); } } endmntent (f); return bMounted; }*/ // ======================================================= /*int isMountedVer1(const char *szDevice, char *szMountPoint) { FILE * f; struct mntent * mnt; bool bMounted = false; char buf [MAXPATHLEN+1]; char rbuf [MAXPATHLEN+1]; char * ptrDevice; if ((f = setmntent (MOUNTED, "r")) == 0) RETURN_int(-1); while (((mnt = getmntent (f)) != 0) && (!bMounted)) { ptrDevice = (char*) szDevice; if (realpath(ptrDevice, rbuf) != NULL) ptrDevice = rbuf; //IS_MOUNTED(ptrDevice, mnt->mnt_fsname); if (strcmp(ptrDevice, mnt->mnt_fsname) == 0) { bMounted = true; strcpy(szMountPoint, mnt->mnt_fsname); } memset(buf, 0, MAXPATHLEN); if (readlink (szDevice, buf, MAXPATHLEN-1) != -1) { if (realpath(buf, rbuf) != NULL) buf = rbuf; //IS_MOUNTED(buf, mnt->mnt_fsname); if (strncmp(buf, mnt->mnt_fsname, sizeof(buf)) == 0) { bMounted = true; strcpy(szMountPoint, mnt->mnt_fsname); } } if (strcmp(szDevice, mnt->mnt_fsname) == 0) { bMounted = true; strcpy(szMountPoint, mnt->mnt_dir); } } endmntent (f); return bMounted; }*/ // ======================================================= #ifdef OS_LINUX int isMounted(const char *szDevice, char *szMountPoint) { FILE *f; struct mntent *mnt; bool bMounted; char szBuf1 [MAXPATHLEN+1]; char szBuf2 [MAXPATHLEN+1]; char *ptrDevice; // init bMounted = false; memset(szBuf1, 0, MAXPATHLEN); memset(szBuf2, 0, MAXPATHLEN); if ((f = setmntent (MOUNTED, "r")) == 0) RETURN_int(-1); // relative path -> full path [result in ptrDevice] ptrDevice = (char*)szDevice; if (realpath(ptrDevice, szBuf1) != NULL) ptrDevice = szBuf1; // symbolic link -> regular device file [result in ptrDevice] if (readlink (ptrDevice, szBuf2, MAXPATHLEN-1) != -1) ptrDevice = szBuf2; showDebug(3, "isMounted(%s) = isMounted(%s)\n",szDevice, ptrDevice); // loop: compare device with each mounted device while (((mnt = getmntent (f)) != 0) && (!bMounted)) { if (strcmp(ptrDevice, mnt->mnt_fsname) == 0) { bMounted = true; strcpy(szMountPoint, mnt->mnt_dir); showDebug(3, "partition [%s] mounted on [%s]\n",mnt->mnt_fsname,szMountPoint); } } endmntent (f); return bMounted; } #else // OS_LINUX int isMounted(const char *szDevice, char *szMountPoint) { #warning isMounted always return false return 0; } #endif // ======================================================= // return true if this is a stable version (x.y.z with y even) // false an unstable y odd bool isVersionStable(const char *szVersion) { int i; char szMinor[512]; memset(szMinor, 0, sizeof(szMinor)); for (; *szVersion && *szVersion != '.'; szVersion++); szVersion++; // skip the '.' for (i=0; szVersion[i] && szVersion[i] != '.'; i++) szMinor[i] = szVersion[i]; // copy the minor return ((atoi(szMinor) % 2) == 0); } // ======================================================= QWORD getPartitionSize(const char *szDevice) { QWORD qwSize; long lSize; int fdDevice; qwSize = 0; fdDevice = open(szDevice, O_RDONLY); if (fdDevice < 0) return 0LL; #ifdef OS_LINUX if (ioctl(fdDevice, BLKGETSIZE, &lSize) >= 0) qwSize = ((QWORD) 512) * ((QWORD) lSize); #endif #ifdef OS_FBSD #warning qwSize not initialized #endif close(fdDevice); return qwSize; } // ======================================================= int showUfsDisklabel(char *szDevice) { FILE *fStream; char cBoot[512]; CUFSDiskLabel dl; int i=0, j; int nRes; CUFSPartition part; char letter='a'; char szTemp[512]; // open the partition fStream = fopen(szDevice, "rb"); if (!fStream) { RETURN_int(-1); } // read the super block nRes = fread(cBoot, 512, 1, fStream); if (nRes != 1) { RETURN_int(-1); } // TODO: check the magic number /*DWORD dwUfsMagic = UFS_MAGIC; if (memcmp(cBuffer+5678, &dwUfsMagic, 4) != 0) { fclose(fStream); RETURN_int(-1); }*/ //for (i=0; (dl.d_magic == MAGIC) || (i==0); i++) { nRes = fread(&dl, sizeof(CUFSDiskLabel), 1, fStream); if (nRes != 1) RETURN_int(-1); printf("%s\n", dl.d_typename); for (j=0; j < dl.d_npartitions; j++) { SNPRINTF(szTemp, "%s%c", dl.d_typename, letter); part = dl.d_partitions[j]; /*printf(" %s: sectors=%lu, startsect=%lu, fragsize=%lu, fragperblk=%lu, type=%s\n", szTemp, (DWORD)part.p_size, (DWORD)part.p_offset, (DWORD)part.p_fsize, (DWORD)part.p_frag, fstypenames[part.p_fstype]);*/ letter++; } i++; } // close the partition fclose(fStream); return 0; } // ======================================================= int detectFileSystem(const char *szDevice, char *szFileSys) { FILE *fDeviceFile; int nRes; const int nBufSize = 128 * 1024; // 128 KB BYTE cBuffer[nBufSize]; BEGIN; // init strcpy(szFileSys, "-unknown-"); // 0. Open device fDeviceFile = fopen(szDevice, "rb"); if (fDeviceFile == NULL) { showDebug(4, "cannot open device [%s]\n", szDevice); RETURN_int(-1); } showDebug(4, "001 = after fopen\n"); showDebug(4, "======= DETECT FOR %s =========\n", szDevice); // 1. Read boot sector / beginning of the memory nRes = fseek(fDeviceFile, 0L, SEEK_SET); if (nRes == -1) RETURN_int(-1); nRes = fread(cBuffer, nBufSize, 1, fDeviceFile); if (nRes != 1) RETURN_int(-1); showDebug(4, "002 = after fread\n"); // **** check for UFS file system {magic @ 72020} nRes = CUfsPartdetect(cBuffer, szFileSys, fDeviceFile); if (nRes > 0) return nRes; /*DWORD dwUfsMagic = UFS_MAGIC; if (memcmp(cBuffer+512, &dwUfsMagic, 4) == 0) { strcpy(szFileSys, "ufs"); return FS_UFS; } */ fclose(fDeviceFile); showDebug(4, "003 = after UFS\n"); // **** check for REISER3 file system [magic @ 65536] nRes = CReiser3Partdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; // **** check for REISER4 file system [magic @ 65536] nRes = CReiser4Partdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "004 = after reiser\n"); // **** check for JFS file system [magic @ 32768] nRes = CJfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "005 = after Jfs\n"); // **** check for AFS file system [magic @ 1092] nRes = CAfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "006 = after Afs\n"); // **** check for EXT2FS file system [magic @ 1080] nRes = CExt2Partdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "007 = after Ext2\n"); // **** check for HFS file system [magic @ 1024] nRes = CHfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "008 = after Hfs\n"); // **** check for BeFS file system [magic @ 544] nRes = CBefsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "009 = after Befs\n"); // **** check for NTFS file system [magic @ 3] nRes = CNtfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "010 = after Ntfs\n"); // **** check for HPFS file system [magic @ 54] nRes = CHpfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "011 = after Hpfs\n"); // **** check for XFS file system [magic @ 0] nRes = CXfsPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "012 = after Xfs\n"); // **** check for swap space char cTemp[512]; memset(cTemp, 0, 511); memcpy(cTemp, cBuffer+getpagesize()-10, 10); //*(cTemp+10) = '\0'; if (strcmp(cTemp, "SWAP-SPACE")==0) { strcpy(szFileSys, "swap (v0)"); return FS_SWAP0; } else if (strcmp(cTemp, "SWAPSPACE2")==0) { strcpy(szFileSys, "swap (v1)"); return FS_SWAP1; } showDebug(4, "013 = after swap\n"); // **** check for FAT file system nRes = CFatPartdetect(cBuffer, szFileSys); if (nRes > 0) return nRes; showDebug(4, "014 = after FAT\n"); // G. Extended ==> TODO /*if (0) { fclose(fDeviceFile); strcpy(szFileSys, "extended"); delete []cBuffer; return FS_EXTENDED; }*/ // end on error RETURN_int(-1); } // ======================================================= int getMajorMinor(char *szDevice, int *nMajor, int *nMinor) { char szTemp[MAXPATHLEN]; struct stat fStat; int i, j; int nRes; // get the major/minor number of the device memset(szTemp, 0, MAXPATHLEN); strncpy(szTemp, szDevice, MAXPATHLEN-1); szTemp[MAXPATHLEN-1] = '\0'; i = strlen(szTemp)-1; while (i && isdigit(szTemp[i])) szTemp[i--] = '\0'; // devfs: change part into disc if (i > 3 && !strncmp("part", szTemp+i-3, 4)) strcpy(szTemp+i-3, "disc"); showDebug(1, "getMajorMinor: device=%s\n", szTemp); nRes = stat(szTemp, &fStat); if (nRes == -1) { showDebug(1, "stat failed: %d\n", errno); RETURN_int(-1); } *nMajor = major(fStat.st_rdev); *nMinor = minor(fStat.st_rdev); // it is often 64 (for hdb, hdd, ...) or 0 (hda, hdc, ...) // get the minor number memset(szTemp, 0, MAXPATHLEN); for (i=0; (i < MAXPATHLEN) && (szDevice[i]) && (!isdigit(szDevice[i])); i++); for (j=0; (i < MAXPATHLEN) && (szDevice[i]) && (isdigit(szDevice[i])); i++, j++) szTemp[j] = szDevice[i]; *nMinor += atoi(szTemp); //debugWin("for device %s, maj=%d and min=%d",szDevice,*nMajor,*nMinor); return 0; } // ======================================================= int checkInodeForDevice(char *szDevice, char *szFullyBatchMode) // NEW FUNCTION { int nRes; struct stat fStat; int nMajor, nMinor; // must fail if the szDevice does not begins with "/dev/" if (strncmp(szDevice, "/dev/", 5) != 0) RETURN_int(-1); // check the inode exists (for example, hda17 can be missing in /dev) nRes = access(szDevice, F_OK); if (nRes == -1) { if(strlen(szFullyBatchMode)<=0) { nRes = g_interface->msgBoxYesNo(i18n("inode missing"), i18n("%s inode doesn't exists. Partimage can create it for you. You can also use the manual mknod " "command. Do you want this inode to be created for you now ?"), szDevice); if (nRes == MSGBOX_NO) RETURN_int(-1); } nRes = getMajorMinor(szDevice, &nMajor, &nMinor); if (nRes == -1) RETURN_int(-1); // create the inode nRes = mknod(szDevice, S_IFBLK | S_IREAD | S_IWRITE | S_IRGRP | S_IROTH, makedev(nMajor, nMinor)); } // check the device is a block one nRes = stat(szDevice, &fStat); if (nRes == -1 || !S_ISBLK(fStat.st_mode)) { g_interface->msgBoxError(i18n("%s is not a block device."), szDevice); RETURN_int(-1); } return 0; } // ======================================================= int bigFseek(FILE *fStream, QWORD qwOffset) // SEEK_SET forced { const long lGigaByte = (QWORD) (1024L * 1024L * 1024L); int nRes; // go to the beginning nRes = fseek(fStream, 0L, SEEK_SET); while (qwOffset > 0) { //showDebug(1, "big_fseek: qwOffset=%llu\n", qwOffset); if (qwOffset >= (QWORD)lGigaByte) { nRes = fseek(fStream, (long)lGigaByte, SEEK_CUR); //showDebug(1, "big_fseek: big seek\n"); if (nRes == -1) RETURN_int(-1); qwOffset -= ((QWORD)lGigaByte); } else { //showDebug(1, "big_fseek: small seek: %llu\n", qwOffset); nRes = fseek(fStream, (long)qwOffset, SEEK_CUR); return nRes; } } return 0; } /* * -1: fatal error * 1: devfs mounted * 0: devfs not mounted */ int isDevfsMounted() { FILE *f; char buf[256]; if (access("/proc/mounts",R_OK)==-1) { g_interface->msgBoxError(i18n("You haven't access to /proc/mounts.")); return(-1); } if ((f=fopen("/proc/mounts","r"))==NULL) { g_interface->msgBoxError(i18n("An error occurred trying to read /proc/mounts.")); return(-1); } while (!feof(f)) { fscanf(f,"%255s",buf); *(buf+255)='\0'; if (!strcmp(buf,"devfs")) { fclose(f); return(1); } } fclose(f); return(0); } // ======================================================= int isDevfsEnabled() { FILE *fPart; char cBuffer[32768]; char *cPtr; int nSize; errno = 0; fPart = fopen("/proc/partitions", "rb"); if (!fPart) { g_interface->msgBoxError(i18n("Cannot read \"/proc/partitions\" (%s). " "Then, you must use the " "command line to run Partition Image. Type \"partimage --help\" " "for help."), strerror(errno)); RETURN_int(-1); } nSize = 0; memset(cBuffer, 0, 32767); while (!feof(fPart)) { cBuffer[nSize] = fgetc(fPart); nSize++; } cPtr = cBuffer; fclose(fPart); if (strstr(cBuffer, "part")) return 1; // devfs is enabled else return 0; // devfs is disabled } // ======================================================= char *decodePartitionEntry(char *cPtr, int *nMajor, int *nMinor, int *nBlocks, int *nPartNum, char *szDevice) { char cTemp[128]; char *cCur; char *cDevPtr1; char *cDevPtr2; showDebug(9, "start decoding entry\n"); // Major number while (!isalnum(*cPtr)) cPtr++; memset(cTemp, 0, 127); cCur = cTemp; while(isalnum(*cPtr)) { *cCur = *cPtr; cCur++; cPtr++; } *nMajor = atoi(cTemp); // Minor number while (!isalnum(*cPtr)) cPtr++; memset(cTemp, 0, 127); cCur = cTemp; while(isalnum(*cPtr)) { *cCur = *cPtr; cCur++; cPtr++; } *nMinor = atoi(cTemp); // Block number while (!isalnum(*cPtr)) cPtr++; memset(cTemp, 0, 127); cCur = cTemp; while(isalnum(*cPtr)) { *cCur = *cPtr; cCur++; cPtr++; } *nBlocks = atoi(cTemp); // Device while (!isalnum(*cPtr)) cPtr++; memset(szDevice, 0, 127); cCur = szDevice; while(isgraph(*cPtr)) { *cCur = *cPtr; cCur++; cPtr++; } // go to the next line while((*cPtr != '\n') && (*cPtr != 0)) cPtr++; // extract number from device cDevPtr1 = szDevice; cDevPtr2 = cTemp; memset(cTemp, 0, 127); strcpy(cTemp, "0"); char *cDevTmpPtr = strrchr(cDevPtr1, '/'); if (cDevTmpPtr) cDevPtr1 = ++cDevTmpPtr; while (isalpha(*cDevPtr1)) // skip letters { cDevPtr1++; } while (isdigit(*cDevPtr1)) { *cDevPtr2 = *cDevPtr1; cDevPtr1++; cDevPtr2++; } *nPartNum = atoi(cTemp); showDebug(9, "entry found: %s %d %d %d %d\n", szDevice, nMajor, nMinor, nBlocks, nPartNum); return cPtr; } // ======================================================= int systemChecks(char *szDevice, bool bFailIfMounted, char *szFullyBatchMode) { char szMountPoint[1024]; int nRes; // ----------- check for inode nRes = checkInodeForDevice(szDevice, szFullyBatchMode); if (nRes == -1) RETURN_int(-1); // ----------- check the user is logged as root if (geteuid() != 0) // 0 is the UID of the root { nRes = g_interface->msgBoxContinueCancel(i18n("Warning"), i18n("You are not logged as root. You may have \"access denied\" errors when working.")); if (nRes == MSGBOX_CANCEL) RETURN_int(-1); } // ----------- check the partition is not mounted if ((bFailIfMounted == true) && (isMounted(szDevice, szMountPoint) != false)) { nRes = g_interface->msgBoxContinueCancel(i18n("Error"), i18n("The %s partition is mounted. Partition Image can't work on mounted partitions. " "Please, unmount it before. You can do it with \"umount %s\""), szDevice, szMountPoint); if (nRes == MSGBOX_CANCEL) RETURN_int(-1); } return 0; } // ======================================================= int checkOptions(COptions options, char *szDevice, char *szImageFile) { int i; int nCount; struct stat fStat; // incorrect split size //if ((options.dwSplitMode == SPLIT_SIZE) && (options.qwSplitSize < (QWORD)(1024*1024))) if ((options.qwSplitSize) && (options.qwSplitSize < (QWORD)(1024*1024))) { g_interface->msgBoxError(i18n("Split volumes size must be an integer greater than 1024 (size >= 1024 KB)")); RETURN_int(-1); } // invalid port number if ((options.dwServerPort < 1) || (options.dwServerPort > 65535)) { g_interface->msgBoxError(i18n("server's port must be between 1 and 65535\n")); RETURN_int(-1); } // check mount options if (*options.szAutoMount) // if enabled { nCount=0; for (i=0; (i < MAXPATHLEN) && (options.szAutoMount[i]); i++) if (options.szAutoMount[i] == '#') nCount++; if (nCount != 2) { g_interface->msgBoxError(i18n("Invalid automount options. Read the manual for more details")); RETURN_int(-1); } } // check for a valid device if ((szDevice) && (*szDevice) && ((strncmp(szDevice, "/dev/", 5) != 0) || ((stat(szDevice, &fStat) != -1) && (!S_ISBLK(fStat.st_mode))))) { g_interface->msgBoxError(i18n("The second argument [%s] must be a valid device (ex: /dev/hda1)"), szDevice); RETURN_int(-1); } // check for an image file if ((szImageFile) && (*szImageFile) && (stat(szImageFile, &fStat) != -1)) { if (!S_ISREG(fStat.st_mode)) { g_interface->msgBoxError(i18n("The third argument [%s] must be a valid regular file (not a directory, a symlink, ...)"), szImageFile); RETURN_int(-1); } } return 0; } // ======================================================= int CReiser3Partdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; if (memcmp(cBootSect+REISERFS_DISK_OFFSET_IN_BYTES+52, REISERFS_SUPER_MAGIC_STRING, strlen(REISERFS_SUPER_MAGIC_STRING)) == 0) { strcpy(szFileSystem, "reiserfs-3.5"); return FS_REISER_3_5; } showDebug(4, "001 = after check for Reiser-3.5\n"); if (memcmp(cBootSect+REISERFS_DISK_OFFSET_IN_BYTES+52, REISER2FS_SUPER_MAGIC_STRING, strlen(REISER2FS_SUPER_MAGIC_STRING)) == 0) { strcpy(szFileSystem, "reiserfs-3.6"); return FS_REISER_3_6; } showDebug(4, "002 = after check for Reiser-3.6\n"); RETURN_int(0); // Not a REISER partition } // ======================================================= int CReiser4Partdetect(u8 *cBootSect, char *szFileSystem) { BEGIN; if (memcmp(cBootSect+REISER4FS_DISK_OFFSET_IN_BYTES, REISER4FS_SUPER_MAGIC_STRING, strlen(REISER4FS_SUPER_MAGIC_STRING)) == 0) { strcpy(szFileSystem, "reiserfs-4.0"); return FS_REISER_4_0; } showDebug(4, "001 = after check for Reiser-4.0\n"); RETURN_int(0); // Not a REISER partition } // ======================================================= int CExt2Partdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; //WORD wTemp; CExt2Super sb; memcpy(&sb, cBootSect+1024, sizeof(sb)); //memcpy(&wTemp, cBootSect+0x0438, sizeof(WORD)); if (sb.s_magic == CpuToLe16(EXT2_SUPER_MAGIC)) { // is it ext2fs or ext3fs ? if (sb.s_feature_compat & EXT3_FEATURE_COMPAT_HAS_JOURNAL) { strcpy(szFileSystem, "ext3fs"); RETURN_int(FS_EXT3); } else { strcpy(szFileSystem, "ext2fs"); RETURN_int(FS_EXT2); } } else RETURN_int(0); } // ======================================================= int CJfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; DWORD dwTemp; memcpy(&dwTemp, cBootSect+32768, sizeof(DWORD)); if (dwTemp == CpuToLe32(JFS_SUPER_MAGIC)) { strcpy(szFileSystem, "jfs"); RETURN_int(FS_JFS); } else RETURN_int(0); } // ======================================================= int CXfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; DWORD dwTemp; memcpy(&dwTemp, cBootSect, sizeof(DWORD)); //if (INT_GET(dwTemp, ARCH_CONVERT) == XFS_SUPER_MAGIC) if (CpuToBe32(dwTemp) == XFS_SUPER_MAGIC) { strcpy(szFileSystem, "xfs"); RETURN_int(FS_XFS); } else RETURN_int(0); } // ======================================================= int CHfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; WORD wTemp; memcpy(&wTemp, cBootSect+1024, sizeof(WORD)); if (CpuToBe16(wTemp) == HFS_SUPER_MAGIC) { strcpy(szFileSystem, "hfs"); RETURN_int(FS_HFS); } else if (memcmp(cBootSect+1024, "H+", 2) == 0) { strcpy(szFileSystem, "hfs+"); RETURN_int(FS_HFSPLUS); } else RETURN_int(0); } // ======================================================= int CFatPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; WORD wTemp; DWORD dwTemp; WORD wBytesPerSector; BYTE cSectorsPerCluster; WORD wReservedSectorsCount; BYTE cNumberOfFATs; DWORD dwTotalSectorsCount; WORD wRootEntriesCount; DWORD dwClustersCount; DWORD dwSectorsPerFAT; DWORD dwDataSectors; DWORD dwRootDirSectors; if ((cBootSect[510] == 0x55) && (cBootSect[511] == 0xAA)) { showDebug(4, "FAT-001\n"); // 2. calculate infos memcpy(&wBytesPerSector, cBootSect+11, 2); wBytesPerSector = Le16ToCpu(wBytesPerSector); memcpy(&cSectorsPerCluster, cBootSect+13, 1); memcpy(&wReservedSectorsCount, cBootSect+14, 2); wReservedSectorsCount = Le16ToCpu(wReservedSectorsCount); memcpy(&cNumberOfFATs, cBootSect+16, 1); memcpy(&wRootEntriesCount, cBootSect+17, 2); wRootEntriesCount = Le16ToCpu(wRootEntriesCount); // check data if ((wBytesPerSector % 512 != 0) || (wBytesPerSector < 512)) RETURN_int(-1); if (cSectorsPerCluster == 0) RETURN_int(-1); if (wReservedSectorsCount == 0) RETURN_int(-1); if ((cNumberOfFATs < 1) || (cNumberOfFATs > 4)) RETURN_int(-1); // Total number of sectors memcpy(&wTemp, cBootSect+19, 2); wTemp = Le16ToCpu(wTemp); memcpy(&dwTemp, cBootSect+32, 4); dwTemp = Le32ToCpu(dwTemp); if (wTemp) dwTotalSectorsCount = (DWORD)wTemp; else dwTotalSectorsCount = dwTemp; // Count of sectors occupied by one FAT memcpy(&wTemp, cBootSect+22, 2); wTemp = Le16ToCpu(wTemp); memcpy(&dwTemp, cBootSect+36, 4); dwTemp = Le32ToCpu(dwTemp); if (wTemp) dwSectorsPerFAT = (DWORD)wTemp; else dwSectorsPerFAT = dwTemp; // calculate the FAT Type with the cluster count (FAT12 or FAT16 or FAT32) dwRootDirSectors = ((wRootEntriesCount * 32) + (wBytesPerSector-1)) / wBytesPerSector; dwDataSectors = dwTotalSectorsCount - (wReservedSectorsCount + (cNumberOfFATs * dwSectorsPerFAT) + dwRootDirSectors); if (cSectorsPerCluster == 0) RETURN_int(-1); dwClustersCount = dwDataSectors / cSectorsPerCluster; if (dwClustersCount < 4085) { strcpy(szFileSystem,"fat12"); RETURN_int(FS_FAT12); } else if (dwClustersCount < 65525) { strcpy(szFileSystem,"fat16"); RETURN_int(FS_FAT16); } else { strcpy(szFileSystem,"fat32"); RETURN_int(FS_FAT32); } showDebug(4, "FAT-002\n"); } RETURN_int(0); // Not a FAT partition } // ======================================================= int CHpfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; if (memcmp(cBootSect+54, "HPFS", 4) == 0) { strcpy(szFileSystem, "hpfs"); RETURN_int(FS_HPFS); } else RETURN_int(0); // Not an HPFS partition } // ======================================================= int CNtfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; if (memcmp(cBootSect+3, "NTFS", 4) == 0) { strcpy(szFileSystem, "ntfs"); RETURN_int(FS_NTFS); } else RETURN_int(0); // Not an NTFS partition } // ======================================================= int CUfsPartdetect(BYTE *cBootSect, char *szFileSystem, FILE *fDeviceFile) { BEGIN; ufsSuperBlock sbUfs; cylinderGroupHeader cgp; DWORD i; int nRes; off_t off; u_int dev_bsize = 512; /* XXX check block size in the disk label */ // init memcpy(&sbUfs, cBootSect+8192, sizeof(sbUfs)); if (CpuToLe32(sbUfs.fs_magic) != ((DWORD)UFS_SUPER_MAGIC) && (CpuToBe32(sbUfs.fs_magic) != ((DWORD)UFS_SUPER_MAGIC))) RETURN_int(0); for (i=0; i < (DWORD)sbUfs.fs_ncg; i++) { //nRes = bigFseek(fDeviceFile, ufs_cgcmin_sb(sbUfs,i)*1024); off = (off_t)fsbtodb(&sbUfs, cgtod(&sbUfs, i)) * dev_bsize; nRes = bigFseek(fDeviceFile, off); if (nRes == -1) { showDebug(2, "DETECT_UFS: bigFseek() failed\n"); RETURN_int(0); } nRes = fread(&cgp, sizeof(cgp), 1, fDeviceFile); if (nRes != 1) { showDebug(2, "DETECT_UFS: readData() failed\n"); RETURN_int(0); } if ((DWORD)cgp.cg_magic != (DWORD)CG_MAGIC) { showDebug(2, "DETECT_UFS: Bad magic number\n"); RETURN_int(0); } } // found an UFS partition strcpy(szFileSystem, "ufs"); RETURN_int(FS_UFS); } // ======================================================= int CAfsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; CAfsSuper sbAfs; // init memcpy(&sbAfs, cBootSect+AFS_SUPERBLOCK_OFFSET, sizeof(sbAfs)); //showDebug(1, "magic1=%lu\n", ((DWORD)&sbAfs.as_nMagic1) - ((DWORD)&sbAfs)); //showDebug(1, "magic2=%lu\n", ((DWORD)&sbAfs.as_nMagic2) - ((DWORD)&sbAfs)); //showDebug(1, "magic3=%lu\n", ((DWORD)&sbAfs.as_nMagic3) - ((DWORD)&sbAfs)); if (CpuToLe32(sbAfs.as_nMagic1) != SUPER_BLOCK_MAGIC1) RETURN_int(0); if (CpuToLe32(sbAfs.as_nMagic2) != SUPER_BLOCK_MAGIC2) RETURN_int(0); //if (CpuToLe32(sbAfs.as_nMagic3) != SUPER_BLOCK_MAGIC3) // RETURN_int(0); // found an AFS partition strcpy(szFileSystem, "afs"); RETURN_int(FS_AFS); } // ======================================================= int CBefsPartdetect(BYTE *cBootSect, char *szFileSystem) { BEGIN; CBefsSuper sbBefs; // init memcpy(&sbBefs, cBootSect+512, sizeof(sbBefs)); if (sbBefs.magic1 != BEFS_SUPER_BLOCK_MAGIC1) // native endian RETURN_int(0); if (sbBefs.magic2 != BEFS_SUPER_BLOCK_MAGIC2) // native endian RETURN_int(0); if (sbBefs.magic3 != BEFS_SUPER_BLOCK_MAGIC3) // native endian RETURN_int(0); // found an AFS partition strcpy(szFileSystem, "befs"); RETURN_int(FS_BEFS); } static int str_begins_with(const char *s, const char *prefix) { return strncmp(s, prefix, strlen(prefix)) == 0; } static char *sfdisk_line_to_disk_device(const char *line) { static const char *new_disk_prefix = "# partition table of "; if (str_begins_with(line, new_disk_prefix)) { const char *device = line + strlen(new_disk_prefix); return strndup(device, strlen(device) - 1); } else { return NULL; } } static char *sfdisk_line_to_partition_device(const char *line) { if (const char *p = strchr(line, ':')) { while (p[-1] == ' ' && p > line) p--; return strndup(line, p - line); } else { return NULL; } } static char *full_device_to_device(char *device) { char *p; if (str_begins_with(device, "/dev/")) { p = device + strlen("/dev/"); } else { showDebug(2, "full_device_to_device: weird device %s\n", device); p = strrchr(device, '/'); p = p ? p + 1 : device; } p = strdup(p); char *q; while ((q = strchr(p, '/'))!=NULL) *q = '_'; return p; } static void my_pclose(FILE *f) { int status = pclose(f); if (status != 0) showDebug(1, "ERROR: command failed (%d)\n", status); } static void write_unsigned(CImage *image, unsigned int nb) { image->write((char *) &nb, sizeof(nb), true); } static void write_string(CImage *image, const char *s) { unsigned int len = strlen(s); write_unsigned(image, len); image->write((void *) s, len, true); } static unsigned int read_unsigned(CImage *image) { unsigned int nb; image->read((char *) &nb, sizeof(nb), true); return nb; } static char *read_string(CImage *image) { unsigned int len = read_unsigned(image); if (len == 0) return NULL; char *s = (char *) malloc(len + 1); image->read(s, len, true); s[len] = '\0'; return s; } void save_all(char *szImageDir, COptions *options) { BEGIN; char *sfdisk[1024]; unsigned int sfdisk_nb_lines = 0; { FILE *f = popen("LC_ALL=C sfdisk -d", "r"); char tmp[1024]; while (1) { if (!fgets(tmp, sizeof(tmp), f)) break; if (sfdisk_nb_lines >= sizeof(sfdisk)) break; sfdisk[sfdisk_nb_lines++] = strdup(tmp); } my_pclose(f); } char aux[MAXPATHLEN]; CImage image(options); SNPRINTF(aux, "%s/sfdisk.lst", szImageDir); image.set_szImageFilename(aux); image.openWriting(); write_unsigned(&image, sfdisk_nb_lines); for (unsigned int i = 0; i < sfdisk_nb_lines; i++) write_string(&image, sfdisk[i]); for (unsigned int i = 0; i < sfdisk_nb_lines; i++) if (char *device = sfdisk_line_to_disk_device(sfdisk[i])) { showDebug(2, "opening %s to get its MBR\n", device); FILE *f = fopen(device, "r"); char mbr[512]; if (f && fread(mbr, 512, 1, f) == 1) { write_string(&image, device); image.write(mbr, sizeof(mbr), true); } else showDebug(1, "ERROR: can't read MBR of device %s\n", device); if (f) fclose(f); } write_unsigned(&image, 0); closeFilesSave(false, *options, &image, NULL); COptions save_part_options(*options); save_part_options.qwSplitSize = 0; save_part_options.bAskDesc = false; save_part_options.bBackupMBR = false; save_part_options.bCheckBeforeSaving = false; // checking always find an error, so... for (unsigned int i = 0; i < sfdisk_nb_lines; i++) { if (!strstr(sfdisk[i], "Id=83")) continue; char *device = sfdisk_line_to_partition_device(sfdisk[i]); if (!device) continue; char *short_device = full_device_to_device(device); SNPRINTF(aux, "%s/part_%s", szImageDir, short_device); free(short_device); showDebug(1, "savePartition(%s, %s, ...)\n", device, aux); savePartition(device, aux, &save_part_options); free(device); } RETURN; } void rest_all(char *szImageDir, COptions *options) { BEGIN; char **sfdisk; unsigned int sfdisk_nb_lines = 0; char aux[MAXPATHLEN]; CImage image(options); { SNPRINTF(aux, "%s/sfdisk.lst", szImageDir); image.set_szImageFilename(aux); image.openReading(); sfdisk_nb_lines = read_unsigned(&image); showDebug(2, "rest_all got sfdisk_nb_lines = %d\n", sfdisk_nb_lines); sfdisk = (char **) alloca(sizeof(char *) * sfdisk_nb_lines); for (unsigned int i = 0; i < sfdisk_nb_lines; i++) { sfdisk[i] = read_string(&image); showDebug(2, "rest_all got line = %s\n", sfdisk[i]); } while (1) { char *device = read_string(&image); if (!device) break; char mbr[512]; image.read(mbr, 512, true); FILE *f = fopen(device, "r+b"); if (f && fwrite(mbr, 512, 1, f) == 1) showDebug(1, "MBR of %s restored\n", device); else showDebug(1, "ERROR: restoring MBR of device %s failed: %s\n", device, strerror(errno)); if (f) fclose(f); } // since sfdisk.lst is not really nice to the library, we can't close the thread from procReadBufferFromImage which has already exited image.closeReading(false); } { FILE *f = NULL; for (unsigned int i = 0; i < sfdisk_nb_lines; i++) { if (char *device = sfdisk_line_to_disk_device(sfdisk[i])) { if (f) my_pclose(f); SNPRINTF(aux, "sfdisk %s >>" PARTIMAGE_LOG " 2>>" PARTIMAGE_LOG, device); showDebug(1, "calling %s\n", aux); f = popen(aux, "w"); free(device); } if (f) fputs(sfdisk[i], f); else showDebug(1, "dropping line: %s", sfdisk[i]); } if (f) my_pclose(f); } for (unsigned int i = 0; i < sfdisk_nb_lines; i++) { char *device = sfdisk_line_to_partition_device(sfdisk[i]); if (!device) continue; if (strstr(sfdisk[i], "Id=83")) { char *short_device = full_device_to_device(device); SNPRINTF(aux, "%s/part_%s", szImageDir, short_device); free(short_device); if (image.getImageDisk()->doesFileExists(aux)) { showDebug(1, "restorePartition(%s, %s, ...)\n", device, aux); restorePartition(device, aux, options); } else showDebug(1, "no such %s image disk, not restoring it\n", aux); } else if (strstr(sfdisk[i], "Id=82")) { SNPRINTF(aux, "mkswap %s >>" PARTIMAGE_LOG, device); showDebug(2, "%s\n", aux); system(aux); } free(device); } RETURN; } void save_file(char *szImageFile, COptions *options) { BEGIN; int in_offset = 0; char *in = (char *) malloc(MAXPATHLEN); CImage image(options); image.set_szImageFilename(szImageFile); image.openWriting(); while (1) { int len = fread(in + in_offset, 1, MAXPATHLEN, stdin); showDebug(1, "read %d chars on stdin\n", len); if (!len) break; in = (char *) realloc(in, MAXPATHLEN + (in_offset += len)); } showDebug(1, "writing %d chars in %s\n", in_offset, szImageFile); write_unsigned(&image, in_offset); image.write((void *) in, in_offset, true); free(in); closeFilesSave(false, *options, &image, NULL); RETURN; } void rest_file(char *szImageFile, COptions *options) { BEGIN; CImage image(options); { image.set_szImageFilename(szImageFile); image.openReading(); unsigned int len = read_unsigned(&image); char *s = (char *) malloc(len + 1); image.read(s, len, true); fwrite(s, 1, len, stdout); free(s); // since sfdisk.lst is not really nice to the library, we can't close the thread from procReadBufferFromImage which has already exited image.closeReading(false); } RETURN; } partimage-0.6.8/src/client/gui_text.cpp0000644000000000000000000010452711252653177016617 0ustar rootroot/*************************************************************************** gui_text.cpp - description ------------------- begin : Tue Aug 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "gui_text.h" #include "partimage.h" #include "misc.h" #include "interface_newt.h" #include #include #include #include #define __STDC_FORMAT_MACROS #include // ======================================================= void CRestoreMbrWindow::addHardDisk(char *szText, DWORD dwNumber) { BEGIN; newtListboxAppendEntry(m_list1, szText, (void*)dwNumber); RETURN; } // ======================================================= void CRestoreMbrWindow::addMbr(char *szText, DWORD dwNumber) { BEGIN; newtListboxAppendEntry(m_list2, szText, (void*)dwNumber); RETURN; } // ======================================================= int CRestoreMbrWindow::create() { BEGIN; char szTemp[2048]; SNPRINTF(szTemp, "%s", i18n("Restore an MBR to the hard disk")); newtCenteredWindow(78, 20, szTemp); m_labelList1 = newtLabel(1, 1, i18n("Disk with the MBR to restore")); m_list1 = newtListbox(1, 2, 8, NEWT_FLAG_SCROLL); m_labelList2 = newtLabel(35, 1, i18n("Original MBR to use")); m_list2 = newtListbox(35, 2, 8, NEWT_FLAG_SCROLL); m_labelType = newtLabel(1, 12, i18n("What to restore:")); m_radioFull = newtRadiobutton(1, 13, i18n("The whole MBR"), true, NULL); m_radioBoot = newtRadiobutton(1, 14, "Only the boot loader", false, m_radioFull); m_radioTable = newtRadiobutton(1, 15, "Only the primary partitions table", false, m_radioBoot); addButtons(); m_formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(m_formMain, m_labelList1, m_list1, m_labelList2, m_list2, m_labelType, m_radioFull, m_radioBoot, m_radioTable, NULL); //m_btnOkay, m_btnCancel, NULL); addHotKeys(); newtDrawForm(m_formMain); RETURN_int(0); } // ======================================================= void CRestoreMbrWindow::getValues(uintptr_t *dwCurrentMbrNb, uintptr_t *dwOriginalMbrNb, int *nRestoreMode) { BEGIN; *dwCurrentMbrNb = (uintptr_t) newtListboxGetCurrent(m_list1); *dwOriginalMbrNb = (uintptr_t) newtListboxGetCurrent(m_list2); if (newtRadioGetCurrent(m_radioFull) == m_radioFull) *nRestoreMode = MBR_RESTORE_WHOLE; else if (newtRadioGetCurrent(m_radioFull) == m_radioBoot) *nRestoreMode = MBR_RESTORE_BOOT; else if (newtRadioGetCurrent(m_radioFull) == m_radioTable) *nRestoreMode = MBR_RESTORE_TABLE; RETURN; } // ======================================================= char *skipPartitionsEntries(char *cPtr) { char *cOldPtr; int nMajor, nMinor, nBlocks; int nPartNum; char szDevice[128]; cOldPtr = cPtr; nPartNum = 1; while (*(cPtr) && *(cPtr+1) && *(cPtr+2) && nPartNum) { cPtr = decodePartitionEntry(cPtr, &nMajor, &nMinor, &nBlocks, &nPartNum, szDevice); if (nPartNum) cOldPtr = cPtr; } return cOldPtr; } // ======================================================= char *processHardDrive(char *cPtr, newtComponent editPartition) { char *cOldPtr; char *FullyBatchMode = ""; int nMajor, nMinor, nBlocks; int nPartNum; char szDevice[128]; char szFullDevice[128]; char cFormat[1024]; char szTemp[1024]; char *szDeviceName; int nRes; QWORD qwSize; cOldPtr = cPtr; nPartNum = 1; showDebug(9, "decode HD\n"); while (*(cPtr) && *(cPtr+1) && *(cPtr+2) && nPartNum) { cPtr = decodePartitionEntry(cPtr, &nMajor, &nMinor, &nBlocks, &nPartNum, szDevice); if (nPartNum) { cOldPtr = cPtr; memset(cFormat, ' ', 50); memset(cFormat+50, 0, 50); memcpy(cFormat, szDevice, strlen(szDevice)); // Device SNPRINTF(szFullDevice, "/dev/%s", szDevice); checkInodeForDevice(szFullDevice, FullyBatchMode); if (nBlocks > 1) // a standard device { nRes = detectFileSystem(szFullDevice, szTemp); memcpy(cFormat+37, szTemp, strlen(szTemp)); // File system qwSize = getPartitionSize(szFullDevice); formatSize(qwSize, szTemp); memcpy(cFormat+50, szTemp, strlen(szTemp)); // Size } else if (nBlocks == 1) // an extended partition { SNPRINTF(szTemp, "-extended-"); memcpy(cFormat+37, szTemp, strlen(szTemp)); // File system } szDeviceName = strdup(szFullDevice); // TOTO: never freed newtListboxAppendEntry(editPartition, cFormat, (void*)szDeviceName); showDebug(9, "inserted[2]: %s\n", cFormat); //debugWin("add[%s] and *cPtr=%d and 1=%d and 2=%d and 3=%d and 4=%d", cFormat, *(cPtr), *(cPtr+1), *(cPtr+2), *(cPtr+3), *(cPtr+4)); } } return cOldPtr; } // ======================================================= int fillPartitionList(newtComponent editPartition) { BEGIN; FILE *fPart; int nMajor, nMinor, nBlocks; char szDevice[128]; char szFullDevice[128]; char cBuffer[32768]; char cFormat[1024]; char szTemp[1024]; char *cPtr; char *FullyBatchMode = ""; int nLines; unsigned int nSize; QWORD qwSize; int i; int nRes; char *szDeviceName; int nPartNum; errno = 0; fPart = fopen("/proc/partitions", "rb"); if (!fPart) { g_interface->msgBoxError(i18n("Cannot read \"/proc/partitions\" (%s). Then, you must use the " "command line to run Partition Image. Type \"partimage --help\" for help."), strerror(errno)); RETURN_int(-1); } nSize = 0; nLines = 0; memset(cBuffer, 0, sizeof(cBuffer)); showDebug(9, "Reading /proc/partitions file\n"); while (nSize < sizeof(cBuffer) && !feof(fPart)) { nRes = fgetc(fPart); if (nRes != -1) cBuffer[nSize] = nRes; else showDebug(9, "error in fgetc\n"); if (cBuffer[nSize] == '\n') { ++nLines; showDebug(9, "%d lines read\n", nLines); } ++nSize; } if (nSize < sizeof(cBuffer)) cBuffer[nSize] = '\0'; else cBuffer[sizeof(cBuffer)-1] = '\0'; fclose(fPart); showDebug(9, "/proc/partitions read -> \n%s\n", cBuffer); cPtr = cBuffer; // skip two first lines nLines -= 2; for (i=0; i < 2; i++) { while (*cPtr != '\n') cPtr++; cPtr++; } while (*(cPtr) && *(cPtr+1)&& *(cPtr+2)) //for (i=0; i < nLines; i++) // TO BE CHANGED { cPtr = decodePartitionEntry(cPtr, &nMajor, &nMinor, &nBlocks, &nPartNum, szDevice); // detect file system of the hard disk SNPRINTF(szFullDevice, "/dev/%s", szDevice); checkInodeForDevice(szFullDevice, FullyBatchMode); nRes = detectFileSystem(szFullDevice, szTemp); showDebug(9, "device %s\n", szDevice); if (nRes != -1) // if a removable media { showDebug(9, "removable media found: %s\n", szTemp); // add media memset(cFormat, ' ', 50); memset(cFormat+50, 0, 50); memcpy(cFormat, szDevice, strlen(szDevice)); // Device memcpy(cFormat+37, szTemp, strlen(szTemp)); // File system qwSize = getPartitionSize(szFullDevice); formatSize(qwSize, szTemp); memcpy(cFormat+50, szTemp, strlen(szTemp)); // Size szDeviceName = strdup(szFullDevice); // TODO: never freed newtListboxAppendEntry(editPartition, cFormat, (void*)szDeviceName); showDebug(9, "inserted: %s\n", cFormat); // skip partitions cPtr = skipPartitionsEntries(cPtr); } else // if an hard disk { cPtr = processHardDrive(cPtr, editPartition); } } RETURN_int(0); } // ======================================================= void COptionsWindow::destroyForm() { BEGIN; newtFormDestroy(m_formMain); newtPopWindow(); RETURN; } // ======================================================= void COptionsWindow::addHotKeys() { newtFormAddComponents(m_formMain, m_btnOkay, m_btnExit, m_btnBack, NULL); newtFormAddHotKey(m_formMain, KEY_EXIT); // Exit newtFormAddHotKey(m_formMain, KEY_OKAY); // Okay newtFormAddHotKey(m_formMain, KEY_BACK); // Back } // ======================================================= void COptionsWindow::addButtons() { m_btnOkay = newtCompactButton(7, 19, i18n("Continue (F5)")); m_btnExit = newtCompactButton(30, 19, i18n("Exit (F6)")); m_btnBack = newtCompactButton(52, 19, i18n("Main window (F7)")); } // ======================================================= int CSaveOptWindow::create(char *szImageFile, COptions options) { BEGIN; char szTemp[2048]; newtCenteredWindow(78, 20, i18n("save partition to image file")); m_labelCompression = newtLabel(1, 1, i18n("Compression level")); m_radioCompNone = newtRadiobutton(1, 2, i18n("None (very fast + very big file)"), options.dwCompression == COMPRESS_NONE, NULL); m_radioCompGzip = newtRadiobutton(1, 3, "Gzip (.gz: medium speed + small image file)", options.dwCompression == COMPRESS_GZIP, m_radioCompNone); m_radioCompBzip2 = newtRadiobutton(1, 4, "Bzip2 (.bz2: very slow + very small image file)", options.dwCompression == COMPRESS_BZIP2, m_radioCompGzip); m_labelOptions = newtLabel(1, 7, i18n("Options")); m_checkCheckBeforeSaving = newtCheckbox(1, 8, i18n("Check partition before saving"), (!!options.bCheckBeforeSaving ? 'X' : ' '), " X", NULL); m_checkAskDesc = newtCheckbox(1, 9, i18n("Enter description"), (!!options.bAskDesc ? 'X' : ' '), " X", NULL); m_checkOverwrite = newtCheckbox(1, 10, i18n("Overwrite without prompt"), (!!options.bOverwrite ? 'X' : ' '), " X", NULL); m_labelSplit = newtLabel(1, 12, i18n("Image split mode")); m_radioSplitAuto = newtRadiobutton(1, 13, i18n("Automatic split (when no space left)"), !options.qwSplitSize, NULL); m_radioSplitSize = newtRadiobutton(1, 14, i18n("Into files whose size is:............"), !!options.qwSplitSize, m_radioSplitAuto); SNPRINTF(szTemp, "%"PRIu64"", (!!options.qwSplitSize) ? (options.qwSplitSize/1024/1024) : 2048); m_editSplitSize = newtEntry(43, 14, szTemp, 8, NULL, 0); m_labelSplitSizeKB = newtLabel(52, 14, i18n("MiB")); m_checkSplitWait = newtCheckbox(1, 15, i18n("Wait after each volume change"), (!!options.bSplitWait ? 'X' : ' '), " X", NULL); m_labelFinish = newtLabel(43, 7, i18n("If finished successfully:")); m_radioFinishWait = newtRadiobutton(43, 8, i18n("Wait"), options.dwFinish == FINISH_WAIT, NULL); m_radioFinishHalt = newtRadiobutton(43, 9, i18n("Halt"), options.dwFinish == FINISH_HALT, m_radioFinishWait); m_radioFinishReboot = newtRadiobutton(43, 10, i18n("Reboot"), options.dwFinish == FINISH_REBOOT, m_radioFinishHalt); m_radioFinishQuit = newtRadiobutton(43,11,i18n("Quit"), options.dwFinish == FINISH_QUIT, m_radioFinishReboot); m_radioFinishLast = newtRadiobutton(43,12,i18n("Last"), options.dwFinish == FINISH_LAST, m_radioFinishQuit); addButtons(); m_formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(m_formMain, m_labelCompression, m_labelOptions, m_labelSplit, NULL); newtFormAddComponents(m_formMain, m_radioCompNone, m_radioCompGzip, m_radioCompBzip2, m_checkCheckBeforeSaving, m_checkAskDesc, m_checkOverwrite, NULL); newtFormAddComponents(m_formMain, m_labelFinish, m_radioFinishWait, m_radioFinishHalt, m_radioFinishReboot, m_radioFinishQuit, m_radioFinishLast, NULL); newtFormAddComponents(m_formMain, m_radioSplitAuto, m_radioSplitSize, m_labelSplitSizeKB, m_editSplitSize, m_checkSplitWait, NULL); addHotKeys(); newtDrawForm(m_formMain); RETURN_int(0); } // ======================================================= int CSaveOptWindow::getValues(COptions *options) { BEGIN; // get options options->bAskDesc = (newtCheckboxGetValue(m_checkAskDesc) == 'X'); options->bCheckBeforeSaving = (newtCheckboxGetValue(m_checkCheckBeforeSaving) == 'X'); options->bOverwrite = (newtCheckboxGetValue(m_checkOverwrite) == 'X'); options->bSplitWait = (newtCheckboxGetValue(m_checkSplitWait) == 'X'); // get compression level if (newtRadioGetCurrent(m_radioCompNone) == m_radioCompNone) options->dwCompression = COMPRESS_NONE; else if (newtRadioGetCurrent(m_radioCompNone) == m_radioCompGzip) options->dwCompression = COMPRESS_GZIP; else if (newtRadioGetCurrent(m_radioCompNone) == m_radioCompBzip2) options->dwCompression = COMPRESS_BZIP2; // get finish level if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishWait) options->dwFinish = FINISH_WAIT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishHalt) options->dwFinish = FINISH_HALT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishReboot) options->dwFinish = FINISH_REBOOT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishQuit) options->dwFinish = FINISH_QUIT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishLast) options->dwFinish = FINISH_LAST; // get split mode if (newtRadioGetCurrent(m_radioSplitAuto) == m_radioSplitAuto) options->qwSplitSize = 0LL;//options->dwSplitMode = SPLIT_AUTO; else if (newtRadioGetCurrent(m_radioSplitAuto) == m_radioSplitSize) { //options->dwSplitMode = SPLIT_SIZE; #ifdef HAVE_ATOLL options->qwSplitSize = atoll(newtEntryGetValue(m_editSplitSize)) * 1024 * 1024; #else #ifdef HAVE_STRTOLL options->qwSplitSize = strtoll(newtEntryGetValue(m_editSplitSize), NULL, 10) * 1024 * 1024; #else #error "no function to convert string to long long int" #endif // HAVE_STRTOLL #endif // HAVE_ATOLL showDebug(1, "qwSplitSize = %llu\n", options->qwSplitSize); } /*else if (newtRadioGetCurrent(m_radioSplitNone) == m_radioSplitAuto) { options->dwSplitMode = SPLIT_AUTO; options->dwSplitSize = 0; }*/ RETURN_int(0); } // ======================================================= int COptionsWindow/*CSaveOptWindow*/::runForm() { BEGIN; newtComponent widgetTemp; newtExitStruct event; /*widgetTemp = */newtFormRun(m_formMain, &event); widgetTemp = newtFormGetCurrent(m_formMain); if (((event.reason == event.NEWT_EXIT_HOTKEY) && (event.u.key == KEY_EXIT)) || ((event.reason == event.NEWT_EXIT_COMPONENT) && (widgetTemp == m_btnExit))) RETURN_int(KEY_EXIT); if (((event.reason == event.NEWT_EXIT_HOTKEY) && (event.u.key == KEY_OKAY)) || ((event.reason == event.NEWT_EXIT_COMPONENT) && (widgetTemp == m_btnOkay))) RETURN_int(KEY_OKAY); if (((event.reason == event.NEWT_EXIT_HOTKEY) && (event.u.key == KEY_BACK)) || ((event.reason == event.NEWT_EXIT_COMPONENT) && (widgetTemp == m_btnBack)) ) RETURN_int(KEY_BACK); RETURN_int(-1); } // ======================================================= int CSavingWindow::create(const char *szDevice, const char *szImageFile, const char *szFilesystem, QWORD qwPartSize, COptions options) { BEGIN; char szTemp[1024]; char szTemp2[1024]; SNPRINTF(szTemp, i18n("save partition to image file")); newtCenteredWindow(78, 20, szTemp); SNPRINTF(szTemp, i18n("Partition to save:...........%s"), szDevice); m_labelPartition = newtLabel(1, 0, szTemp); SNPRINTF(szTemp, i18n("Size of the Partition:.......%s = %"PRIu64" bytes"), formatSize(qwPartSize, szTemp2), qwPartSize); m_labelPartitionSize = newtLabel(1, 1, szTemp); SNPRINTF(szTemp, i18n("Image file to create.........%s"), szImageFile); m_labelImageFile = newtLabel(1, 2, szTemp); m_labelImageFileSize = newtLabel(1, 3, ""); m_labelFreeSpace = newtLabel(1, 4, ""); SNPRINTF(szTemp, i18n("Detected file system:........%s"), szFilesystem); m_labelFS = newtLabel(1, 5, szTemp); switch (options.dwCompression) { case COMPRESS_NONE: SNPRINTF(szTemp, i18n("Compression level:...........None")); break; case COMPRESS_GZIP: SNPRINTF(szTemp, i18n("Compression level:...........gzip")); break; case COMPRESS_BZIP2: SNPRINTF(szTemp, i18n("Compression level:...........bzip2")); break; case COMPRESS_LZO: SNPRINTF(szTemp, i18n("Compression level:...........lzo")); break; } m_labelCompression = newtLabel(1, 6, szTemp); // stats m_labelStatsTime = newtLabel(1, 9, ""); m_labelStatsTimeRemaining = newtLabel(1, 10, ""); m_labelStatsSpeed = newtLabel(1, 11, ""); m_labelStatsSpace = newtLabel(1, 12, ""); m_progressSaving = newtScale(1, 18, 70, 100); m_labelPercent = newtLabel(72, 18, ""); m_formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(m_formMain, m_labelPartition, m_labelPartitionSize, m_labelImageFile, m_labelImageFileSize, m_labelFreeSpace, m_labelFS, m_labelCompression, NULL); newtFormAddComponents(m_formMain, m_labelStatsTime, m_labelStatsTimeRemaining, m_labelStatsSpeed, m_labelStatsSpace, NULL); newtFormAddComponents(m_formMain, m_progressSaving, m_labelPercent, NULL); newtRefresh(); newtDrawForm(m_formMain); RETURN_int(0); } // ======================================================= void CSavingWindow::showStats(const time_t timeStart, QWORD qwBlockSize, QWORD qwBlocksDone, QWORD qwBlocksTotal, char *szFullyBatchMode) { BEGIN; char szTemp[1024]; char szTemp2[1024]; char szTemp3[1024]; time_t timeElapsed, timeRemaining; QWORD qwBytesPerMin; float fMinElapsed; QWORD qwPercent; // progress bar qwPercent = (100 * qwBlocksDone) / qwBlocksTotal; SNPRINTF(szTemp, "%d %%", (int)qwPercent); newtScaleSet(m_progressSaving, (int)qwPercent); newtLabelSetText(m_labelPercent, szTemp); // stats if (timeStart != 0) { QWORD qwDone = qwBlockSize * qwBlocksDone; QWORD qwTotal = qwBlockSize * qwBlocksTotal; timeElapsed = time(0) - timeStart; timeRemaining = (timeElapsed * (qwTotal - qwDone)) / qwDone; SNPRINTF(szTemp, i18n("Time elapsed:................%s"), formatTime((DWORD)timeElapsed, szTemp2)); newtLabelSetText(m_labelStatsTime, szTemp); SNPRINTF(szTemp, i18n("Estimated time remaining:....%s"), formatTime((DWORD)timeRemaining, szTemp2)); newtLabelSetText(m_labelStatsTimeRemaining, szTemp); fMinElapsed = ((float)timeElapsed) / 60.0; qwBytesPerMin = (QWORD) (((float)qwDone) / fMinElapsed); SNPRINTF(szTemp, i18n("Speed:.......................%s/min"), formatSize(qwBytesPerMin, szTemp2)); newtLabelSetText(m_labelStatsSpeed, szTemp); SNPRINTF(szTemp, i18n("Data copied:.................%s / %s"), formatSize(qwDone, szTemp2), formatSize(qwTotal, szTemp3)); newtLabelSetText(m_labelStatsSpace, szTemp); //option -B gui=no show stats if ((szFullyBatchMode) && (strlen(szFullyBatchMode)>0)) { fprintf(stderr,"\r\t\t\t\b\b"); SNPRINTF(szTemp, i18n("T:%-s/%-s"), formatTimeNG((DWORD)timeElapsed, szTemp2), formatTimeNG((DWORD)timeRemaining, szTemp3)); fprintf(stderr,"%-s ",szTemp); SNPRINTF(szTemp, i18n("R:%s/min"), formatSizeNG(qwBytesPerMin, szTemp2)); fprintf(stderr,"%-s ",szTemp); SNPRINTF(szTemp, "P:%3d%%", (int)qwPercent); fprintf(stderr,"%-s",szTemp); } } newtRefresh(); RETURN; } // ======================================================= int CSavingWindow::runForm() { BEGIN; newtRefresh(); RETURN_int(0); } // ======================================================= void CSavingWindow::destroyForm() { BEGIN; newtPopWindow(); RETURN; } // ======================================================= void CSavingWindow::showImageFileInfo(char *szImageFile, QWORD qwFreeSpace, QWORD qwImageSize, char *szFullyBatchMode) { BEGIN; char szTemp[2048]; char szTemp2[2048]; char szTemp3[2048]; char f1[9]; char f2[5]; char d[]="./"; if (strncmp(szImageFile,d,2)==0) szImageFile=szImageFile+strlen(d); SNPRINTF(szTemp, i18n("Current image file:..........%s"), szImageFile); newtLabelSetText(m_labelImageFile, szTemp); if (qwImageSize) { SNPRINTF(szTemp, i18n("Image file size:.............%s"), formatSize(qwImageSize, szTemp2)); newtLabelSetText(m_labelImageFileSize, szTemp); } SNPRINTF (szTemp, i18n("Available space for image:...%s = %"PRIu64" bytes"), formatSize(qwFreeSpace, szTemp2), qwFreeSpace); newtLabelSetText(m_labelFreeSpace, szTemp); //option -B gui=no if ((szFullyBatchMode) && (strlen(szFullyBatchMode)>0)) { if(strrchr(szImageFile,'/')) szImageFile = strrchr(szImageFile,'/')+1; if (strlen(szImageFile) > 12) { snprintf(f1, 9, i18n("%-s"), szImageFile); snprintf(f2, 5, i18n("%-s"), strrchr(szImageFile,'.')); if (strrchr(szImageFile,'.') != 0) { SNPRINTF(szTemp,"%-s~%-s",f1,f2); }else{ snprintf(szTemp, 12, i18n("%-s"), szImageFile); } }else{ snprintf(szTemp, 12, i18n("%-s"), szImageFile); } SNPRINTF(szTemp3, i18n("%-12s S:%-s "), szTemp, formatSizeNG(qwImageSize, szTemp2)); fprintf(stderr,"\r%-s",szTemp3); } RETURN; } // ======================================================= int CRestoreOptWindow::create(char *szDevice, char *szImageFile, COptions options) { BEGIN; char szTemp[1024]; SNPRINTF(szTemp, i18n("restore partition from image file")); newtCenteredWindow(78, 20, szTemp); m_labelOptions = newtLabel(1, 1, i18n("Options")); m_checkEraseWithNull = newtCheckbox(1, 3, i18n("Erase free blocks with zero values"), (!!options.bEraseWithNull ? 'X' : ' '), " X", NULL); m_checkSimulateMode = newtCheckbox(1, 2, i18n("Simulation of the restoration (nothing is written)"), (!!options.bSimulateMode ? 'X' : ' '), " X", NULL); m_labelFinish = newtLabel(1, 5, i18n("If finished successfully:")); m_radioFinishWait = newtRadiobutton(1, 6, i18n("Wait"), options.dwFinish == FINISH_WAIT, NULL); m_radioFinishHalt = newtRadiobutton(1, 7, i18n("Halt"), options.dwFinish == FINISH_HALT, m_radioFinishWait); m_radioFinishReboot = newtRadiobutton(1, 8, i18n("Reboot"), options.dwFinish == FINISH_REBOOT, m_radioFinishHalt); m_radioFinishQuit = newtRadiobutton(1, 9, i18n("Quit"), options.dwFinish == FINISH_QUIT, m_radioFinishReboot); addButtons(); m_formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(m_formMain, m_labelOptions, m_checkSimulateMode, m_checkEraseWithNull, NULL); newtFormAddComponents(m_formMain, m_labelFinish, m_radioFinishWait, m_radioFinishHalt, m_radioFinishReboot, m_radioFinishQuit, NULL); //newtFormAddComponents(m_formMain, m_btnRestore, m_btnExit, NULL); addHotKeys(); newtDrawForm(m_formMain); RETURN_int(0); } // ======================================================= int CRestoreOptWindow::getValues(COptions *options) { BEGIN; // get options options->bEraseWithNull = (newtCheckboxGetValue(m_checkEraseWithNull) == 'X'); options->bSimulateMode = (newtCheckboxGetValue(m_checkSimulateMode) == 'X'); // get finish level if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishWait) options->dwFinish = FINISH_WAIT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishHalt) options->dwFinish = FINISH_HALT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishReboot) options->dwFinish = FINISH_REBOOT; else if (newtRadioGetCurrent(m_radioFinishWait) == m_radioFinishQuit) options->dwFinish = FINISH_QUIT; RETURN_int(0); } static char *asctime_portable (const struct portable_tm *__tp) { struct tm tms; tms.tm_sec=__tp->tm_sec; tms.tm_min=__tp->tm_min; tms.tm_hour=__tp->tm_hour; tms.tm_mday=__tp->tm_mday; tms.tm_mon=__tp->tm_mon; tms.tm_year=__tp->tm_year; tms.tm_wday=__tp->tm_wday; tms.tm_yday=__tp->tm_yday; tms.tm_isdst=__tp->tm_isdst; tms.tm_gmtoff=__tp->tm_gmtoff; tms.tm_zone="UTC"; return asctime (&tms); } // ======================================================= int CRestoringWindow::create(char *szDevice, char *szImageFile, QWORD qwCurPartSize, DWORD dwCompressionMode, char *szOriginalDevice, char *szFileSystem, struct portable_tm dateCreate, QWORD qwOrigPartSize, COptions * options) { BEGIN; char szTemp[2048]; char szTemp2[2048]; if (options->bSimulateMode) SNPRINTF(szTemp, i18n("simulate partition restoration from image file")); else SNPRINTF(szTemp, i18n("restore partition from image file")); newtCenteredWindow(78, 20, szTemp); SNPRINTF(szTemp, i18n("Partition to restore:.............%s"), szDevice); m_labelPartition = newtLabel(1, 0, szTemp); SNPRINTF(szTemp, i18n("Size of partition to restore:.....%s = %"PRIu64" bytes"), formatSize(qwCurPartSize, szTemp2), qwCurPartSize); m_labelPartitionSize = newtLabel(1, 1, szTemp); SNPRINTF(szTemp, i18n("Image file to use.................%s"), szImageFile); m_labelImageFile = newtLabel(1, 2, szTemp); SNPRINTF(szTemp, i18n("File system:......................%s"), szFileSystem); m_labelFS = newtLabel(1, 3, szTemp); m_labelCompression = newtLabel(1, 4, ""); SNPRINTF(szTemp, i18n("Partition was on device:..........%s\n"), szOriginalDevice); m_labelOldDevice = newtLabel(1, 5, szTemp); SNPRINTF(szTemp, i18n("Image created on:.................%s\n"), asctime_portable(&dateCreate)); m_labelDate = newtLabel(1, 6, szTemp); SNPRINTF(szTemp, i18n("Size of the original partition:...%s = %"PRIu64" bytes"), formatSize(qwOrigPartSize, szTemp2), qwOrigPartSize); m_labelOriginalPartitionSize = newtLabel(1, 7, szTemp); // stats m_labelStatsTime = newtLabel(1, 9, ""); m_labelStatsTimeRemaining = newtLabel(1, 10, ""); m_labelStatsSpeed = newtLabel(1, 11, ""); m_labelStatsSpace = newtLabel(1, 12, ""); m_progressRestoring = newtScale(1, 18, 70, 100); m_labelPercent = newtLabel(72, 18, ""); m_formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(m_formMain, m_labelPartition, m_labelPartitionSize, m_labelImageFile, m_labelFS, m_labelCompression, NULL); newtFormAddComponents(m_formMain, m_labelOldDevice, m_labelDate, m_labelOriginalPartitionSize, NULL); newtFormAddComponents(m_formMain, m_labelStatsTime, m_labelStatsTimeRemaining, m_labelStatsSpeed, m_labelStatsSpace, NULL); newtFormAddComponents(m_formMain, m_progressRestoring, m_labelPercent, NULL); newtDrawForm(m_formMain); newtRefresh(); RETURN_int(0); } // ======================================================= void CRestoringWindow::showStats(const time_t timeStart, QWORD qwBlockSize, QWORD qwBlocksDone, QWORD qwBlocksUsed, QWORD qwBlocksTotal, bool bEraseWithNull, char *szFullyBatchMode) { BEGIN; char szTemp[1024]; char szTemp2[1024]; char szTemp3[1024]; time_t timeElapsed, timeRemaining; QWORD qwBytesPerMin; float fMinElapsed; QWORD qwPercent; QWORD qwTotal; QWORD qwDone; if (bEraseWithNull == false) { qwPercent = (100 * qwBlocksDone) / qwBlocksUsed; qwTotal = qwBlockSize * qwBlocksUsed; } else { qwPercent = (100 * qwBlocksDone) / qwBlocksTotal; qwTotal = qwBlockSize * qwBlocksTotal; } SNPRINTF(szTemp, "%d %%", (int)qwPercent); newtScaleSet(m_progressRestoring, (int)qwPercent); newtLabelSetText(m_labelPercent, szTemp); if (timeStart != 0) { qwDone = qwBlockSize * qwBlocksDone; timeElapsed = time(0) - timeStart; if (bEraseWithNull) timeRemaining = (timeElapsed * (qwBlocksTotal - qwBlocksDone)) / qwBlocksDone; else timeRemaining = (timeElapsed * (qwBlocksUsed - qwBlocksDone)) / qwBlocksDone; SNPRINTF(szTemp, i18n("Time elapsed:.....................%s"), formatTime((DWORD)timeElapsed, szTemp2)); newtLabelSetText(m_labelStatsTime, szTemp); SNPRINTF(szTemp, i18n("Estimated time remaining:.........%s"), formatTime((DWORD)timeRemaining, szTemp2)); newtLabelSetText(m_labelStatsTimeRemaining, szTemp); fMinElapsed = ((float)timeElapsed) / 60.0; qwBytesPerMin = (QWORD) (((float)qwDone) / fMinElapsed); SNPRINTF(szTemp, i18n("Speed:............................%s/min"), formatSize(qwBytesPerMin, szTemp2)); newtLabelSetText(m_labelStatsSpeed, szTemp); SNPRINTF(szTemp, i18n("Data copied:......................%s / %s"), formatSize(qwDone, szTemp2), formatSize(qwTotal, szTemp3)); newtLabelSetText(m_labelStatsSpace, szTemp); //option -B gui=no show stats if ((szFullyBatchMode) && (strlen(szFullyBatchMode)>0)) { fprintf(stderr,"\r\t\t\t\b\b"); SNPRINTF(szTemp, i18n("T:%-s/%-s"), formatTimeNG((DWORD)timeElapsed, szTemp2), formatTimeNG((DWORD)timeRemaining, szTemp3)); fprintf(stderr,"%-s ",szTemp); SNPRINTF(szTemp, i18n("R:%s/min"), formatSizeNG(qwBytesPerMin, szTemp2)); fprintf(stderr,"%-s ",szTemp); SNPRINTF(szTemp, "P:%3d%%", (int)qwPercent); fprintf(stderr,"%-s",szTemp); } } newtRefresh(); RETURN; } // ======================================================= int CRestoringWindow::runForm() { BEGIN; newtRefresh(); RETURN_int(0); } // ======================================================= void CRestoringWindow::destroyForm() { BEGIN; newtPopWindow(); RETURN; } // ======================================================= void CRestoringWindow::showImageFileInfo(char *szImageFile, int nCompressionMode, char *szFullyBatchMode) { BEGIN; char szTemp[2048]; char szTemp2[2048]; char szTemp3[2048]; char f1[9]; char f2[5]; char d[]="./"; if (strncmp(szImageFile,d,2)==0) szImageFile=szImageFile+strlen(d); SNPRINTF(szTemp, i18n("Current image file:...............%s"), szImageFile); newtLabelSetText(m_labelImageFile, szTemp); if (nCompressionMode != -1) { switch (nCompressionMode) { case COMPRESS_NONE: SNPRINTF(szTemp, i18n("Compression level:................None\n")); SNPRINTF(szTemp2, i18n("None")); break; case COMPRESS_GZIP: SNPRINTF(szTemp, i18n("Compression level:................gzip")); SNPRINTF(szTemp2, i18n("gzip")); break; case COMPRESS_BZIP2: SNPRINTF(szTemp, i18n("Compression level:................bzip2")); SNPRINTF(szTemp2, i18n("bzip2")); break; case COMPRESS_LZO: SNPRINTF(szTemp, i18n("Compression level:................lzo")); SNPRINTF(szTemp2, i18n("lzo")); break; default: memset(szTemp2, 0, sizeof(szTemp2)); SNPRINTF(szTemp3, i18n("Compression level:................%s"),szTemp2); newtLabelSetText(m_labelCompression, szTemp3); } } //option -B gui=no if ((szFullyBatchMode) && (strlen(szFullyBatchMode)>0)) { if(strrchr(szImageFile,'/')) szImageFile = strrchr(szImageFile,'/')+1; if (strlen(szImageFile) > 12) { snprintf(f2, 5, i18n("%-s"), strrchr(szImageFile,'.')); snprintf(f1, 9, i18n("%-s"), szImageFile); showDebug(3,"f1=%s, f2=%s",f1,f2); if (strrchr(szImageFile,'.') != 0) { SNPRINTF(szTemp,"%-s~%-s",f1,f2); }else{ snprintf(szTemp, 12, i18n("%-s"), szImageFile); } }else{ snprintf(szTemp, 12, i18n("%-s"), szImageFile); } SNPRINTF(szTemp3, i18n("%-12s %-s "), szTemp, szTemp2); fprintf(stderr,"\r%-s",szTemp3); } RETURN; } // ============================================================================ unsigned int CExceptionsGUI::windowError(char *szTitle, char *szText, char *szButton, char *szCurPath) { BEGIN; //char szTemp[] = "/tmp/image"; unsigned int nRes; newtComponent btnOther; newtComponent formMain = newtForm(NULL, NULL, 0); if (szButton) btnOther = newtButton(30, 15, szButton); else btnOther = newtButton(30, 15, "(none)"); newtComponent btnOk = newtButton(10, 15, i18n("Change")); newtComponent btnCancel = newtButton(50, 15, i18n("Cancel")); newtComponent editFilename = newtEntry(5, 10, szCurPath, 45, NULL, 0); newtComponent labelFilename = newtLabel(5, 9, i18n("Enter new filename")); newtComponent labelText = newtTextbox(1, 1, 60, 7, 0); newtTextboxSetText(labelText, szText); newtComponent widgetTemp; newtCenteredWindow(67, 20, szTitle); if (szButton) newtFormAddComponents(formMain, editFilename, btnOk, btnOther, btnCancel, labelFilename, labelText, NULL); else newtFormAddComponents(formMain, editFilename, btnOk, btnCancel, labelFilename, labelText, NULL); widgetTemp = newtRunForm(formMain); if (widgetTemp == btnCancel) nRes = ERR_QUIT; else if (szButton && widgetTemp == btnOther) nRes = ERR_CONT; else { strncpy(szNewString, newtEntryGetValue(editFilename), 1023); *(szNewString+1023) = '\0'; while (szNewString[strlen(szNewString)-1] == '/') szNewString[strlen(szNewString)-1] = '\0'; nRes = ERR_RETRY; } newtFormDestroy(formMain); newtPopWindow(); RETURN_WORD(nRes); } // ============================================================================ unsigned int CExceptionsGUI::windowAlreadyExist(char * img, char * path) { BEGIN; char szMess[2048]; int nCont; SNPRINTF(szMess, i18n("The following imagefile already exist.\nDo you" " want to overwrite or change image filename ?\nFile: %s\nTo change the" " filename, please enter a full path\n(location + filename) " "without volume number at the end, \nand press \"Change\""), img); nCont = windowError(i18n("Overwrite image?"), szMess, i18n("Overwrite"), path); RETURN_WORD(nCont); } // ============================================================================ unsigned int CExceptionsGUI::windowLocked(char * img, char * path) { BEGIN; char szMess[2048]; int nCont; SNPRINTF(szMess, i18n("The following imagefile is locked.\nDo you" " want to wait and retry or change image filename ?\nFile: %s\nTo change" " the filename, please enter a full path\n(location + filename) " "without volume number at the end, \nand press \"Change\""), img); nCont = windowError(i18n("imagefile locked"), szMess, i18n("Retry"), path); RETURN_WORD(nCont); } // ============================================================================ unsigned int CExceptionsGUI::windowWrongPath(char * szFilename) { BEGIN; int nCont; char szMess[2048]; SNPRINTF(szMess, i18n("unable to access to %s\n\nPlease, enter" "another directory path (without filename):"), szFilename); nCont = windowError(i18n("wrong path"), szMess, NULL, NULL); RETURN_WORD(nCont); } partimage-0.6.8/src/client/main.cpp0000644000000000000000000011172511256746531015712 0ustar rootroot/*************************************************************************** main.cpp - description ------------------- begin : lun mai 22 18:04:54 CEST 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ // $Revision: 1.3 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #ifdef HAVE_GETOPT_H #include #endif #ifdef HAVE_SYS_PARAM_H #include #endif #include #include #include #define __STDC_FORMAT_MACROS #include #include #include #include #include #include #include #include #include #include #include #include "fs_ext2.h" #include "fs_fat.h" #include "fs_reiser.h" #include "fs_ntfs.h" #include "fs_hpfs.h" #include "fs_jfs.h" #include "fs_xfs.h" #include "fs_hfs.h" #include "fs_ufs.h" #include "partimage.h" #include "common.h" #include "gui_text.h" #include "net.h" #include "misc.h" #include "imginfo.h" #include "buffer.h" #include "exceptions.h" #include "interface_newt.h" #include "interface_none.h" #include "mbr_backup.h" extern char *optarg; extern int optind; extern int opterr; // time time_t g_timeBegin=0; // Beginning of main() time_t g_timeStart=0; // Beginning of the copy, after confirmation time_t g_timeEnd=0; // End of the operation #ifdef HAVE_GETOPT_H static struct option const long_options[] = { {"automnt", required_argument, NULL, 'a'}, {"batch", no_argument, NULL, 'b'}, {"fully-batch", required_argument, NULL, 'B'}, {"nocheck", no_argument, NULL, 'c'}, {"nodesc", no_argument, NULL, 'd'}, {"erase", no_argument, NULL, 'e'}, {"finish", required_argument, NULL, 'f'}, {"debug", required_argument, NULL, 'g'}, {"help", no_argument, NULL, 'h'}, {"compilinfo", no_argument, NULL, 'i'}, {"nombr", no_argument, NULL, 'M'}, {"allowmnt", no_argument, NULL, 'm'}, {"nologin", no_argument, NULL, 'L'}, {"nossl", no_argument, NULL, 'n'}, {"overwrite", no_argument, NULL, 'o'}, {"password", required_argument, NULL, 'P'}, {"port", required_argument, NULL, 'p'}, {"simulate", no_argument, NULL, 'S'}, {"server", required_argument, NULL, 's'}, {"username", required_argument, NULL, 'U'}, {"volume", required_argument, NULL, 'V'}, {"version", no_argument, NULL, 'v'}, {"waitvol", no_argument, NULL, 'w'}, {"runshell", no_argument, NULL, 'X'}, {"nosync", no_argument, NULL, 'y'}, {"compress", required_argument, NULL, 'z'}, {NULL, 0, NULL, 0} }; #endif static char finish_last_countfile_lock[]="/tmp/partimageXXXXXX.lock"; static char finish_last_countfile[]="/tmp/partimageXXXXXX"; static char optstring[]="z:oV:ecmdhf:s:p:bwg:vyLnSMa:iU:P:XB:"; FILE * g_fDebug; // debug file FILE * g_fLocalDebug; // debug file CInterface * g_interface; bool g_bSigInt = false; bool g_bSigKill = false; QWORD g_qwCopiedBytesCount=0; WORD g_wEndian=ENDIAN_UNKNOWN; // ======================================================= static void catch_sigint(int signo) { if (signo == SIGTERM) { g_bSigKill = true; delete g_interface; exit(0); } else if (signo == SIGINT) { g_bSigInt = true; } /*else if (signo == SIGSEGV) { delete g_interface; fprintf(stderr, i18n("Segmentation fault. Please report the bug and send the /var/log/partimage-debug.log file to authors\n")); exit(0); }*/ } void ensure_interface_is_non_interactive() { delete g_interface; g_interface = new CInterfaceNone(""); } // ======================================================= int main(int argc, char *argv[]) { int nRes; int nOptCh; COptions options; int nChoice; char szDevice[MAX_DEVICENAMELEN]; char szImageFile[MAXPATHLEN]; char szImageDir[MAXPATHLEN]; char szTemp[2048]; char szTemp2[1024]; char szTemp3[1024]; char szAux[MAXPATHLEN+1]; char szAux2[MAXPATHLEN+1]; char szFileSystem[1024]; // struct sched_param Param; // initialize time g_timeBegin = time(0); setEndianess(false); // initialize options with defaults values memset(&options, 0, sizeof(COptions)); options.bUseSSL = OPTIONS_DEFAULT_SSL; options.bMustLogin = OPTIONS_DEFAULT_LOGIN; options.bBackupMBR = OPTIONS_DEFAULT_BACKUP_MBR; options.bSimulateMode = OPTIONS_DEFAULT_SIMULATE_MODE; options.bOverwrite = OPTIONS_DEFAULT_OVERWRITE; options.qwSplitSize = OPTIONS_DEFAULT_SPLIT_SIZE; options.bEraseWithNull = OPTIONS_DEFAULT_ERASE_EMPTY; options.dwCompression = OPTIONS_DEFAULT_COMPRESS; options.bCheckBeforeSaving = OPTIONS_DEFAULT_CHECK; options.bFailIfMounted = OPTIONS_DEFAULT_FAIL_IF_MOUNTED; options.bAskDesc = OPTIONS_DEFAULT_ASK_DESC; options.dwFinish = OPTIONS_DEFAULT_FINISH; options.dwServerPort = OPTIONS_DEFAULT_SERVERPORT; options.bBatchMode = OPTIONS_DEFAULT_AUTOSTART; options.bSplitWait = OPTIONS_DEFAULT_SPLIT_WAIT; options.bRunShell = OPTIONS_DEFAULT_RUN_SHELL; options.bSync = OPTIONS_DEFAULT_SYNC; options.dwDebugLevel = DEFAULT_DEBUG_LEVEL; // defined by configure.in strncpy(options.szServerName, OPTIONS_DEFAULT_SERVERNAME, MAX_HOSTNAMESIZE); strncpy(options.szFullyBatchMode, OPTIONS_DEFAULT_FULLYBATCHMODE, 2048); strncpy(options.szUserName, OPTIONS_DEFAULT_USERNAME, MAX_USERNAMELEN); strncpy(options.szPassWord, OPTIONS_DEFAULT_PASSWORD, MAX_PASSWORDLEN); *(options.szFullyBatchMode) = 0; // initialize language for i18n setlocale(LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); // Very important: do not remove (else, uncompatible image will be produced) if (checkStructSizes() == -1) return EXIT_FAILURE; // read command line #ifdef HAVE_GETOPT_H while ((nOptCh = getopt_long (argc, argv, optstring, long_options, NULL)) != EOF) #else while ((nOptCh = getopt (argc, argv, optstring)) != -1) #endif { switch(nOptCh) { case 's': // partimaged server's ip addr strncpy(options.szServerName, optarg, MAX_HOSTNAMESIZE); *(options.szServerName+MAX_HOSTNAMESIZE-1) = '\0'; break; case 'a': // auto mount options strncpy(options.szAutoMount, optarg, MAXPATHLEN); *(options.szAutoMount+MAXPATHLEN-1) = '\0'; break; case 'U': // username for serverauth strncpy(options.szUserName, optarg, MAX_USERNAMELEN); *(options.szUserName+MAX_USERNAMELEN-1) = '\0'; break; case 'B': // fully batchmode: don't do any newt or anything strncpy(options.szFullyBatchMode, optarg, 2047); options.bBatchMode = true; break; case 'P': // password for serverauth strncpy(options.szPassWord, optarg, MAX_PASSWORDLEN); *(options.szPassWord+MAX_PASSWORDLEN-1) = '\0'; break; case 'b': // batchmode: don't wait for user action (return) options.bBatchMode = true; break; case 'w': // wait after each new colume options.bSplitWait = true; break; case 'X': // run shell after all volume options.bRunShell = true; break; case 'M': // do not create a backup of the MBR options.bBackupMBR = false; break; case 'y': // no sync at the end options.bSync = false; break; case 'p': // partimaged server's listening port options.dwServerPort = atol(optarg); if ((options.dwServerPort < 1) || (options.dwServerPort > 65535)) { fprintf(stderr, i18n("server's port must be between 1 and " "65535\n")); return EXIT_FAILURE; } break; case 'z': // compression level options.dwCompression = atol(optarg); if ((options.dwCompression < 0) || (options.dwCompression > 2)) { fprintf(stderr, i18n("Compression mode must be 0 (none), " "1(gzip), 2(bzip2)\n")); return EXIT_FAILURE; } break; case 'f': // what to do when finished successfully ? options.dwFinish = atol(optarg); if ((options.dwFinish < 0) || (options.dwFinish > 3)) { fprintf(stderr, i18n("Finish mode must be 0 (wait), " "1(halt), 2(reboot) or 3(quit)\n")); return EXIT_FAILURE; } break; case 'g': // change the debug level options.dwDebugLevel = atol(optarg); if ((options.dwDebugLevel < 0) || (options.dwDebugLevel > 10)) { fprintf(stderr, i18n("The debug level must be 0(none), " "1(user), 2(developer) or 3(debugging)\n")); return EXIT_FAILURE; } break; case 'V': // split image into multiple files options.qwSplitSize = (QWORD)atol(optarg) * 1024 * 1024; fprintf (stderr, i18n("Volume size: %"PRIu64" bytes (%ld MiB)\n"), options.qwSplitSize, atol(optarg)); break; case 'o': // overwrite existring image options.bOverwrite = true; break; case 'e': // erase empty blocks with zero bytes options.bEraseWithNull = true; break; case 'm': // don't fail if mounted options.bFailIfMounted = false; break; case 'c': // don't check partition before saving options.bCheckBeforeSaving = false; break; case 'd': // don't ask any description options.bAskDesc = false; break; case 'h': // help usage(); return EXIT_SUCCESS; break; case 'v': // version printf(i18n("Partition Image version %s (distributed under the" " GNU GPL2).\n"), PACKAGE_VERSION); return EXIT_SUCCESS; break; case 'i': // compilation options formatCompilOptions(szTemp, sizeof(szTemp)); printf("%s\n", szTemp); return EXIT_SUCCESS; break; case 'L': // no login options.bMustLogin = false; break; case 'n': // no ssl options.bUseSSL = false; break; case 'S': // simulate options.bSimulateMode = true; break; } } // debug file g_fDebug = NULL; if (options.dwDebugLevel) { SNPRINTF(szAux2, "%s_latest", PARTIMAGE_LOG); #ifdef APPEND_PID // append pid at the end of PARTIMAGE_LOG filename SNPRINTF(szAux, "%s_%d", PARTIMAGE_LOG, getpid()); #else SNPRINTF(szAux, "%s", PARTIMAGE_LOG); #endif unlink(szAux2); symlink(szAux, szAux2); g_fDebug = openFileDescriptorSecure(szAux, "a", O_WRONLY | O_CREAT | O_NOFOLLOW | O_TRUNC, S_IRUSR | S_IWUSR); g_nDebugThreadMain = getpid(); g_dwDebugLevel = options.dwDebugLevel; pthread_mutex_init(&g_mutexDebug, &g_mutexDebugAttr); } if (!g_fDebug) { g_fDebug = fopen("/dev/null", "w"); if (!g_fDebug) { fprintf(stderr, i18n("Cannot open debug file.\n")); g_fDebug = stderr; } //return EXIT_FAILURE; } else { showDebug(1, "%s: Partition Image version %s (DebugLevel %lu used, " "MainThread=%d)\n",PARTIMAGE_LOG, PACKAGE_VERSION, options.dwDebugLevel, getpid()); showDebug(1, "=========================================================" "==============================\n\n\n"); formatCompilOptions(szTemp, sizeof(szTemp)); showDebug(1, "%s\n\n", szTemp); /* extractFilepathFromFullPath(PARTIMAGE_LOG, szAux); // filepath without filename #ifdef APPEND_PID snprintf(szAux2, MAXPATHLEN, "%s/LATEST_PILOG_IS_%d", szAux, getpid()); #else snprintf(szAux2, MAXPATHLEN, "%s/LATEST_PILOG_IS_nopid", szAux); #endif touchFile(szAux2); */ } //if (fchmod(fileno(g_fDebug), S_IRUSR|S_IWUSR)) // showDebug(1, "can't change debugfile mode to 600: %s\n", strerror(errno)); /* fprintf(g_fDebug, "\ntrying to change priority to -20..."); nRes = nice(-20); if (nRes) fprintf(g_fDebug, " failed: %s\n", strerror(errno)); else fprintf(g_fDebug, " ok\n"); fprintf(g_fDebug, "trying to change scheduling to increase speed\n"); fprintf(g_fDebug, " call to sched_get_priority_max..."); fflush(g_fDebug); Param.sched_priority = sched_get_priority_max(SCHED_FIFO); if (Param.sched_priority < 0) { fprintf(g_fDebug, " failed\n"); fprintf(g_fDebug, "%s\n", strerror(errno)); fprintf(g_fDebug, "scheduler not changed\n"); fflush(g_fDebug); } else { fprintf(g_fDebug, " ok priority_max = %d\n", Param.sched_priority); fprintf(g_fDebug, " call to sched_setscheduler..."); fflush(g_fDebug); nRes = sched_setscheduler(0, SCHED_FIFO, &Param); if (nRes) { fprintf(g_fDebug," failed\n"); fprintf(g_fDebug,"%s\n", strerror(errno)); fprintf(g_fDebug, "scheduler not changed\n"); fflush(g_fDebug); } else { fprintf(g_fDebug," ok policy set to SCHED_FIFO\n"); fprintf(g_fDebug, "scheduler changed\n"); fflush(g_fDebug); } } fprintf(g_fDebug, "\n"); fflush(g_fDebug); */ // init CRC table initCrcTable(g_dwCrcTable); if (!options.szFullyBatchMode || !strlen(options.szFullyBatchMode)) { // signal /*struct sigaction saOld, saNew; saNew.sa_handler = catch_sigint; sigemptyset(&saNew.sa_mask); saNew.sa_flags = 0; sigaction(SIGKILL, &saNew, &saOld); sigaction(SIGINT, &saNew, &saOld);*/ signal(SIGTERM, catch_sigint); signal(SIGINT, catch_sigint); // signal(SIGSEGV, catch_sigint); // segmentation fault } // endianess switch(g_wEndian) { case ENDIAN_UNKNOWN: showDebug(1, "ENDIANESS=ENDIAN_UNKNOWN\n"); break; case ENDIAN_LITTLE: showDebug(1, "ENDIANESS=ENDIAN_LITTLE\n"); break; case ENDIAN_BIG: showDebug(1, "ENDIANESS=ENDIAN_BIG\n"); break; case ENDIAN_PDP: showDebug(1, "ENDIANESS=ENDIAN_PDP\n"); break; } // init interface showDebug(8, "initialize interface\n"); if (!options.szFullyBatchMode || !strlen(options.szFullyBatchMode)) g_interface = new PARTIMAGE_INTERFACE(options.bBatchMode); else g_interface = new CInterfaceNone(options.szFullyBatchMode); showDebug(8, "interface ok\n"); // ----------- check the user is logged as root if (geteuid() != 0) // 0 is the UID of the root { if (g_interface -> ErrorLogAsRoot() == MSGBOX_CANCEL) { delete g_interface; return EXIT_FAILURE; } } showDebug(8, "ok for uid\n"); // check options /*nRes = checkOptions(options); if (nRes == -1) { delete g_interface; return EXIT_FAILURE; } showDebug(8, "ok for options\n"); */ nChoice = -1; memset(szDevice, 0, MAX_DEVICENAMELEN); memset(szImageFile, 0, MAXPATHLEN); // run operations if the command line is full if (argc - optind == 3) // commands with 2 parameters { showDebug(8, "full cmdline with 2 param\n"); strncpy(szDevice, argv[optind+1], MAX_DEVICENAMELEN); strncpy(szImageFile, argv[optind+2], MAXPATHLEN); if (strcmp(argv[optind], "save")==0) // save nChoice = OPERATION_SAVE; else if (strcmp(argv[optind], "restore")==0) // restore nChoice = OPERATION_RESTORE; } if (argc - optind == 2) // commands with 1 parameter { showDebug(8, "full cmdline with 1 param\n"); if (strcmp(argv[optind], "restmbr")==0) // restore an MBR nChoice = OPERATION_RESTMBR; else if (strcmp(argv[optind], "imginfo")==0) // show informations about the imagefile nChoice = OPERATION_IMGINFO; else if (strcmp(argv[optind], "save_all")==0) nChoice = OPERATION_SAVE_ALL; else if (strcmp(argv[optind], "rest_all")==0) nChoice = OPERATION_REST_ALL; else if (strcmp(argv[optind], "save_file")==0) nChoice = OPERATION_SAVE_FILE; else if (strcmp(argv[optind], "rest_file")==0) nChoice = OPERATION_REST_FILE; strncpy(nChoice == OPERATION_REST_ALL || nChoice == OPERATION_SAVE_ALL ? szImageDir : szImageFile, argv[optind+1], MAXPATHLEN); } // check options nRes = checkOptions(options, szDevice, szImageFile); if (nRes == -1) { delete g_interface; return EXIT_FAILURE; } showDebug(8, "ok for options\n"); if ((isDevfsEnabled()) && (!isDevfsMounted())) { g_interface->msgBoxCancel(i18n("Warning"), i18n("You have devfs enabled but not mounted. You have to do it to " "continue. You can also boot with non-devfs kernel if you have " "one.")); delete g_interface; return EXIT_FAILURE; } beginMainWin: // if no command line or invalid action if (nChoice == -1) { showDebug(8, "weird cmdline\n"); strcpy(szDevice, "/dev/"); *szImageFile = 0; // draw main window showDebug(8, "weird cmdline\n"); nChoice = g_interface -> guiInitMainWindow(szDevice, szImageFile, options.szServerName, &(options.dwServerPort), &options.bUseSSL); } showDebug(8, "go on\n"); // run action switch(nChoice) { case OPERATION_SAVE: showDebug(1, "action=SAVE\n"); detectFileSystem(szDevice, szFileSystem); //#ifndef DEVEL_SUPPORT if (isFileSystemSupported(szFileSystem) == true) //#endif // DEVEL_SUPPORT { try { savePartition(szDevice, szImageFile, &options); } catch (CExceptions *excep) { if (excep->GetExcept() == ERR_COMEBACK) { nChoice = -1; goto beginMainWin; } if (options.bBatchMode) ensure_interface_is_non_interactive(); g_interface -> Error(excep, szImageFile, szDevice); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } } //#ifndef DEVEL_SUPPORT else { showDebug(1, "The file system of [%s] is [%s], and is not supported\n", szDevice, szFileSystem); if (options.bBatchMode) ensure_interface_is_non_interactive(); g_interface->msgBoxError("The file system of [%s] is [%s], and is not supported", szDevice, szFileSystem); nRes = -1; } //#endif // DEVEL_SUPPORT break; case OPERATION_RESTORE: showDebug(1, "action=RESTORE\n"); try { restorePartition(szDevice, szImageFile, &options); } catch (CExceptions *excep) { if (excep->GetExcept() == ERR_COMEBACK) { nChoice = -1; goto beginMainWin; } if (!options.bBatchMode && !excep->getCaught()) g_interface -> Error(excep, szImageFile); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } break; case OPERATION_RESTMBR: showDebug(1, "action=RESTMBR\n"); try { restoreMbr(szImageFile, &options); } catch (CExceptions *excep) { if (excep->GetExcept() == ERR_COMEBACK) { nChoice = -1; goto beginMainWin; } showDebug(1, "restoreMBR caught exception: %d\n", excep->GetExcept()); if (!options.bBatchMode && !excep->getCaught()) g_interface -> Error(excep, szImageFile); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } break; case OPERATION_SAVE_FILE: showDebug(1, "action=SAVE_FILE\n"); try { save_file(szImageFile, &options); } catch (CExceptions *excep) { showDebug(1, "save_file caught exception: %d\n", excep->GetExcept()); if (options.bBatchMode) ensure_interface_is_non_interactive(); g_interface -> Error(excep, szImageFile, ""); nRes = -1; } break; case OPERATION_REST_FILE: showDebug(1, "action=REST_FILE\n"); try { rest_file(szImageFile, &options); } catch (CExceptions *excep) { showDebug(1, "rest_file caught exception: %d\n", excep->GetExcept()); if (options.bBatchMode) ensure_interface_is_non_interactive(); g_interface -> Error(excep, szImageFile, ""); nRes = -1; } break; case OPERATION_IMGINFO: showDebug(1, "action=IMGINFO\n"); try { showImgInfos(szImageFile, &options); } catch (CExceptions *excep) { showDebug(1, "showimageinfo caught exception: %d\n", excep->GetExcept()); if (!options.bBatchMode && !excep->getCaught()) g_interface -> Error(excep, szImageFile); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } break; case OPERATION_SAVE_ALL: showDebug(1, "action=SAVE_ALL\n"); try { save_all(szImageDir, &options); } catch (CExceptions *excep) { showDebug(1, "caught exception: %d\n", excep->GetExcept()); if (!options.bBatchMode && !excep->getCaught()) g_interface -> Error(excep, szImageFile); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } break; case OPERATION_REST_ALL: showDebug(1, "action=REST_ALL\n"); try { rest_all(szImageDir, &options); } catch (CExceptions *excep) { showDebug(1, "caught exception: %d\n", excep->GetExcept()); if (!options.bBatchMode && !excep->getCaught()) g_interface -> Error(excep, szImageFile); showDebug(1, "\nFINAL ERROR\n\n"); nRes = -1; } break; default: // exit if (options.bBatchMode) fprintf(stderr,"\n\n"); if (options.bSync) { if (options.bBatchMode) fprintf(stderr,"\n\n"); if (!options.bBatchMode) g_interface -> StatusLine(i18n("commiting buffer cache to disk.")); sync(); } closeDebugFiles(); delete g_interface; return EXIT_SUCCESS; break; } showDebug(8, "sync\n"); // update the disk IO if (options.bSync) { if (options.bBatchMode) fprintf(stderr,"\n\n"); g_interface -> StatusLine(i18n("commiting buffer cache to disk.")); sync(); } // ---- statistics about time/CPU infos ---- rusage rusageSelf, rusageChild; time_t timeCopy; DWORD dwTimeTotal, dwTimeUser, dwTimeSys; g_timeEnd = time(0); timeCopy = g_timeEnd - g_timeStart; if ((getrusage(RUSAGE_SELF, &rusageSelf) != -1) && (getrusage(RUSAGE_CHILDREN, &rusageChild) != -1)) { dwTimeUser = rusageSelf.ru_utime.tv_sec + rusageChild.ru_utime.tv_sec + g_dwTimeThreadUser; dwTimeSys = rusageSelf.ru_stime.tv_sec + rusageChild.ru_stime.tv_sec + g_dwTimeThreadSys; dwTimeTotal = dwTimeUser + dwTimeSys; showDebug(1, "\n\n============= TIME and CPU infos ================\n"); showDebug(1, "Total time:...........%s\n", formatTime(timeCopy, szTemp)); showDebug(1, "User time:............%s (main=%s, child=%s)\n", formatTime(dwTimeUser, szTemp), formatTime(rusageSelf.ru_utime.tv_sec, szTemp2), formatTime(rusageChild.ru_utime.tv_sec, szTemp3)); showDebug(1, "System time:..........%s (main=%s, child=%s)\n", formatTime(dwTimeSys, szTemp), formatTime(rusageSelf.ru_stime.tv_sec, szTemp2), formatTime(rusageChild.ru_stime.tv_sec, szTemp3)); showDebug(1, "CPU used:.............%d %%\n", (timeCopy != 0) ? ((dwTimeTotal * 100) / timeCopy) : 0); showDebug(1, "Beginning:............%15ld = %s", g_timeBegin, ctime(&g_timeBegin)); showDebug(1, "Start copy:...........%15ld = %s", g_timeStart, ctime(&g_timeStart)); showDebug(1, "End:..................%15ld = %s", g_timeEnd, ctime(&g_timeEnd)); showDebug(1, "\n============= TIME and CPU infos ================\n\n\n"); } // show result message if (nRes == -1) // FAILED { showDebug(1, "End of operation: FAILED\n"); closeDebugFiles(); delete g_interface; return EXIT_FAILURE; } else // SUCCESS { showDebug(1, "End of operation: SUCCESS\n"); // closeDebugFiles(); // pthread_mutex_destroy(&g_mutexDebug); if (options.dwFinish == FINISH_WAIT) { showDebug(1, "option FINISH_WAIT\n"); if (nChoice == OPERATION_RESTMBR) { SNPRINTF(szTemp, i18n("The MBR was successfully restored")); } else { if (options.bSimulateMode) formatOperationSucessMsg(szTemp, sizeof(szTemp), i18n("Simulation")); else formatOperationSucessMsg(szTemp, sizeof(szTemp), i18n("Operation")); } if (nChoice != OPERATION_IMGINFO) g_interface->msgBoxOk(i18n("Success"), szTemp); delete g_interface; return EXIT_SUCCESS; } else if (options.dwFinish == FINISH_HALT) { showDebug(1, "option FINISH_HALT\n"); delete g_interface; nRes = system("/sbin/shutdown -h now"); nRes = system("/sbin/poweroff"); // if we reach this point, it's because shutdown failed fprintf(stderr, i18n("Error: Cannot halt the computer")); return EXIT_SUCCESS; } else if (options.dwFinish == FINISH_REBOOT) { showDebug(1, "option FINISH_REBOOT\n"); if (options.bSimulateMode) formatOperationSucessMsg(szTemp, sizeof(szTemp), i18n("Simulation")); else formatOperationSucessMsg(szTemp, sizeof(szTemp), i18n("Operation")); if (nChoice != OPERATION_IMGINFO) g_interface->msgBoxOk(i18n("Success"), szTemp); delete g_interface; nRes = system("/sbin/shutdown -r now"); nRes = system("/sbin/reboot"); // if we reach this point, it's because shutdown failed fprintf(stderr, i18n("Error: Cannot reboot the computer")); return EXIT_SUCCESS; } else if (options.dwFinish == FINISH_QUIT) { showDebug(1, "option FINISH_QUIT\n"); delete g_interface; return EXIT_SUCCESS; } else if (options.dwFinish == FINISH_LAST) { showDebug(1, "option FINISH_LAST\n"); int fd_lock, fd_countfile; FILE *fCountFile; FILE *fLockFile; int nValue, nRetries; nRetries = 5; do { if ((fd_lock = mkstemp(finish_last_countfile_lock)) == -1) { --nRetries; sleep(2); continue; } fLockFile = fdopen(fd_lock, "r"); if (fLockFile == NULL) { close(fd_lock); unlink(finish_last_countfile_lock); sleep(2); } } while (fLockFile == NULL && nRetries); if (!nRetries) { delete g_interface; fprintf(stderr, i18n("Error: Cannot count remaining partimages")); return EXIT_SUCCESS; } if ((fd_countfile = mkstemp(finish_last_countfile)) == -1) { fclose(fLockFile); close(fd_lock); unlink(finish_last_countfile_lock); delete g_interface; fprintf(stderr, i18n("Error: Cannot create countfile")); return EXIT_FAILURE; } fCountFile = fdopen(fd_countfile, "r"); if (fCountFile == NULL) { fclose(fLockFile); close(fd_lock); close(fd_countfile); unlink(finish_last_countfile_lock); unlink(finish_last_countfile); delete g_interface; fprintf(stderr, i18n("Error: Cannot count remaining partimages")); return EXIT_SUCCESS; } fscanf(fCountFile, "%d\n", &nValue); showDebug(1, "RESTANT: %d\n", nValue); if (nValue <= 1) { // we are the last running partimage -> shutdown delete g_interface; fclose(fCountFile); fclose(fLockFile); close(fd_lock); close(fd_countfile); unlink(finish_last_countfile_lock); unlink(finish_last_countfile); // nRes = system("/sbin/shutdown -r now"); // nRes = system("/sbin/reboot"); // if we reach this point, it's because shutdown failed fprintf(stderr, i18n("DEBUG: reboot the computer")); return EXIT_SUCCESS; } else { --nValue; fclose(fCountFile); fCountFile = fdopen(fd_countfile, "w"); if (fCountFile == NULL) { delete g_interface; fprintf(stderr, i18n("Error: Cannot count remaining " "partimages")); return EXIT_SUCCESS; } fprintf(fCountFile, "%d\n", nValue); fclose(fCountFile); fclose(fLockFile); close(fd_lock); close(fd_countfile); unlink(finish_last_countfile_lock); delete g_interface; return EXIT_SUCCESS; } } } } // ======================================================= void closeDebugFiles() { if (g_dwDebugLevel && (g_fDebug != stderr)) fclose(g_fDebug); // local debug } // ======================================================= void usage() { printf("===============================================================================\n"); printf(i18n("Partition Image (http://www.partimage.org/) version %s [%s]\n" "---- distributed under the GPL 2 license (GNU General Public License) ----\n\n" "Supported file systems: Ext2/3, ReiserFS, FAT16/32, HPFS, JFS, XFS,\n" " UFS(beta), HFS(beta), NTFS(experimental)\n\n" "usage: partimage [options] \n" " partimage \n\n" "ex: partimage -z1 -o -d save /dev/hda12 /mnt/backup/redhat-6.2.partimg.gz\n" "ex: partimage restore /dev/hda13 /mnt/backup/suse-6.4.partimg\n" "ex: partimage restmbr /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -z1 -om save /dev/hda9 /mnt/backup/win95-osr2.partimg.gz\n" "ex: partimage imginfo /mnt/backup/debian-potato-2.2.partimg.bz2\n" "ex: partimage -a/dev/hda6#/mnt/partimg#vfat -V1440 save /dev/hda12 /mnt/partimg/redhat-6.2.partimg.gz\n\n" "Arguments:\n" "* :\n" " - save: save the partition datas in an image file\n" " - restore: restore the partition from an image file\n" " - restmbr: restore a MBR of the image file to an hard disk\n" " - imginfo: show informations about the image file\n" "* : partition to save/restore (example: /dev/hda1)\n" "* : file where data will be read/written. Can be very big.\n" " For restore, can have the value 'stdin'. This allows\n" " for providing image files through a pipe.\n\n" "Options:\n" "* -z, --compress (image file compression level):\n" " -z0, --compress=0 don't compress: very fast but very big image file\n" " -z1, --compress=1 compress using gzip: fast and small image file (default)\n" " -z2, --compress=2 (compress using bzip2: very slow and very small image file):\n" "* -c, --nocheck don't check the partition before saving\n" "* -o, --overwrite overwrite the existing image file without confirmation\n" "* -d, --nodesc don't ask any description for the image file\n" "* -V, --volume (split image into multiple volumes files)\n" " -VX, --volume=X create volumes with a size of X MB\n" "* -w, --waitvol wait for a confirmation after each volume change\n" "* -e, --erase erase empty blocks on restore with zero bytes\n" "* -m, --allowmnt don't fail if the partition is mounted. Dangerous !\n" "* -M, --nombr don't create a backup of the MBR (Mast Boot Record) in the image file\n" "* -h, --help show help\n" "* -v, --version show version\n" "* -i, --compilinfo show compilation options used\n" "* -f, --finish (action to do if finished successfully):\n" " -f0, --finish=0 wait: don't make anything\n" " -f1, --finish=1 halt (power off) the computer\n" " -f2, --finish=2 reboot (restart the computer):\n" " -f3, --finish=3 quit\n" "* -b, --batch batch mode: the GUI won't wait for an user action\n" "* -BX, --fully-batch=X batch mode without GUI, X is a challenge response string\n" "* -y, --nosync don't synchronize the disks at the end of the operation (dangerous)\n" "* -sX, --server=X give partimaged server's ip address\n" "* -pX, --port=X give partimaged server's listening port\n" "* -g, --debug=X set the debug level to X (default: 1):\n" "* -L, --nologin disable login in network mode\n" "* -n, --nossl disable SSL in network mode\n" "* -S, --simulate simulation of restoration mode\n" "* -aX, --automnt=X automatic mount with X options. Read the doc for more details\n" "* -UX --username=X username to authenticate to server\n" "* -PX --password=X password for authentication of user to server\n"), PACKAGE_VERSION, isVersionStable(PACKAGE_VERSION) ? i18n("stable") : i18n("unstable")); printf("===============================================================================\n"); } // ======================================================= int checkStructSizes() { // ---- check types sizes if (sizeof(DWORD) != 4) { fprintf (stderr, "Error: sizeof(DWORD) != 4 (%zd)\n", sizeof(DWORD)); goto errcheck; } if (sizeof(QWORD) != 8) { fprintf (stderr, "Error: sizeof(QWORD) != 8 (%zd)\n", sizeof(QWORD)); goto errcheck; } // ---- check struct sizes // check main header size is 16384 if (sizeof(CMainHeader) != 16384) { fprintf (stderr, "Error: main header size != 16384 (%zd)\n", sizeof(CMainHeader)); goto errcheck; } // check ext2 header size is 16384 if (sizeof(CInfoExt2Header) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: ext2 header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoExt2Header)); goto errcheck; } // check reiserfs header size is 16384 if (sizeof(CInfoReiserHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: reiserfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoReiserHeader)); goto errcheck; } // check fat header size is 16384 if (sizeof(CInfoFatHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: fat header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoFatHeader)); goto errcheck; } // check ntfs header size is 16384 if (sizeof(CInfoNtfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: ntfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoNtfsHeader)); goto errcheck; } // check hpfs header size is 16384 if (sizeof(CInfoHpfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: hpfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoHpfsHeader)); goto errcheck; } // check jfs header size is 16384 if (sizeof(CInfoJfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: jfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoJfsHeader)); goto errcheck; } // check xfs header size is 16384 if (sizeof(CInfoXfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: xfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoXfsHeader)); goto errcheck; } // check hfs header size is 16384 if (sizeof(CInfoHfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: hfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoHfsHeader)); goto errcheck; } // check ufs header size is 16384 if (sizeof(CInfoUfsHeader) != INFOS_STRUCT_SIZE) { fprintf (stderr, "Error: jfs header size != %d (%zd)\n", INFOS_STRUCT_SIZE, sizeof(CInfoUfsHeader)); goto errcheck; } // check tail size is 16384 if (sizeof(CMainTail) != 16384) { fprintf (stderr, "Error: main footer size != 16384 (%zd)\n", sizeof(CMainTail)); goto errcheck; } // check volume header size is 512 if (sizeof(CVolumeHeader) != 512) { fprintf (stderr, "Error: volume hedaer size != 512 (%zd)\n", sizeof(CVolumeHeader)); goto errcheck; } // check MBR size is 2048 if (sizeof(CMbr) != 2048) { fprintf (stderr, "Error: MBR size != 2048 (%zd)\n", sizeof(CMbr)); goto errcheck; } // check volume header size is 512 if (sizeof(CLocalHeader) != 16384) { fprintf (stderr, "Error: local header size != 16384 (%zd)\n", sizeof(CLocalHeader)); goto errcheck; } return 0; // success errcheck: printf ("This version has been compiled with an uncompatible version of gcc.\n"); //printf("DetailSize: sizeof(DWORD)=%d\n", sizeof(DWORD)); //printf("DetailSize: sizeof(QWORD)=%d\n", sizeof(QWORD)); //printf("DetailSize: sizeof(struct tm)=%d\n", sizeof(struct tm)); RETURN_int(-1); // error } // ======================================================= void formatOperationSucessMsg(char *szMsg, int nMaxLen, char *szOperation) { char szTemp1[2048]; char szTemp2[2048]; char szTemp3[2048]; time_t timeElapsed; QWORD qwBytesPerMin; float fMinElapsed; timeElapsed = time(0) - g_timeStart; fMinElapsed = ((float)timeElapsed) / 60.0; qwBytesPerMin = (QWORD) (((float)g_qwCopiedBytesCount) / fMinElapsed); snprintf(szMsg, nMaxLen, i18n("%s successfully finished:\n\n" "Time elapsed: %s\n" "Speed: %s/min\n" "Data copied: %s"), szOperation, formatTime((DWORD)timeElapsed, szTemp1), formatSize(qwBytesPerMin, szTemp2), formatSize(g_qwCopiedBytesCount, szTemp3)); } partimage-0.6.8/src/client/Makefile.am0000644000000000000000000000227011252653177016307 0ustar rootroot## Process this file with automake to produce Makefile.in SUBDIRS = fs INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/shared \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/client/fs \ -I/usr/include/slang sbin_PROGRAMS = partimage noinst_HEADERS = buffer.h cbitmap.h gui_text.h image_base.h image_net.h \ imagefile.h imginfo.h interface.h interface_newt.h \ interface_none.h \ mbr_backup.h misc.h netclient.h partimage.h partimage_SOURCES = \ netclient.cpp \ imagefile.cpp \ misc.cpp \ image_net.cpp \ buffer.cpp \ gui_text.cpp \ main.cpp \ imginfo.cpp \ cbitmap.cpp \ interface_base.cpp \ interface_newt.cpp \ interface_none.cpp \ mbr_backup.cpp # all libs are added in LIBS, we needn't add them to partimage_LDADD partimage_LDADD = -L$(libdir) -lslang fs/libfs.a ../shared/libshared.a partimage_LDFLAGS = @PARTIMAGE_LDFLAGS@ DEFS=@DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 CPPFLAGS=@CPPFLAGS@ -Wall MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/src/client/gui_text.h0000644000000000000000000001343111252653177016255 0ustar rootroot/*************************************************************************** gui_text.h - description ------------------- begin : Tue Aug 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef GUI_TEXT_H #define GUI_TEXT_H #include "partimage.h" #include "misc.h" #include #define KEY_OKAY NEWT_KEY_F5 #define KEY_EXIT NEWT_KEY_F6 #define KEY_BACK NEWT_KEY_F7 int fillPartitionList(newtComponent editPartition); #define MBR_RESTORE_WHOLE 1 #define MBR_RESTORE_BOOT 2 #define MBR_RESTORE_TABLE 3 // ======================================================= class COptionsWindow { public: int runForm(); void destroyForm(); void addHotKeys(); void addButtons(); protected: newtComponent m_formMain; newtComponent m_btnOkay, m_btnExit, m_btnBack; }; // ======================================================= class CRestoreMbrWindow: public COptionsWindow { public: int create(); void addHardDisk(char *szText, DWORD dwNumber); void addMbr(char *szText, DWORD dwNumber); //int runForm(); //void destroyForm(); void getValues(uintptr_t *dwCurrentMbrNb, uintptr_t *dwOriginalMbrNb, int *nRestoreMode); private: //newtComponent m_formMain; newtComponent m_labelList1, m_list1, m_labelList2, m_list2; //m_btnRestore, m_btnCancel; newtComponent m_labelType, m_radioFull, m_radioBoot, m_radioTable; }; // ======================================================= class CSaveOptWindow: public COptionsWindow { public: int create(char *szImageFile, COptions options); //int runForm(); //void destroyForm(); int getValues(COptions *options); private: //newtComponent m_formMain; newtComponent m_labelCompression, m_labelOptions, m_labelSplit; newtComponent m_radioCompNone, m_radioCompLzop, m_radioCompGzip, m_radioCompBzip2; newtComponent m_radioSplitSize, m_labelSplitSizeKB, m_radioSplitAuto; newtComponent m_checkCheckBeforeSaving, m_checkAskDesc, m_checkOverwrite; newtComponent m_editSplitSize, m_checkSplitWait; //newtComponent m_btnOkay, m_btnExit, m_btnBack; newtComponent m_labelFinish, m_radioFinishWait, m_radioFinishHalt, m_radioFinishReboot, m_radioFinishQuit, m_radioFinishLast; }; // ======================================================= class CRestoreOptWindow: public COptionsWindow { public: int create(char *szDevice, char *szImageFile, COptions options); //int runForm(); //void destroyForm(); int getValues(COptions *options); private: //newtComponent m_formMain; newtComponent m_labelOptions; newtComponent m_checkEraseWithNull, m_checkSimulateMode; //newtComponent m_btnRestore, m_btnExit; newtComponent m_labelFinish, m_radioFinishWait, m_radioFinishHalt, m_radioFinishReboot, m_radioFinishQuit; }; // ======================================================= class CSavingWindow { public: int create(const char *szDevice, const char *szImageFile, const char *szFilesystem, QWORD qwPartSize, COptions options); int runForm(); void destroyForm(); void showImageFileInfo(char *szImageFile, QWORD qwFreeSpace, QWORD qwImageSize, char *szFullyBatchMode); void showStats(const time_t timeStart, QWORD qwBlockSize, QWORD qwBlocksDone, QWORD qwBlocksTotal, char *szFullyBatchMode); private: newtComponent m_formMain; newtComponent m_labelPartition, m_labelPartitionSize, m_labelImageFile, m_labelImageFileSize, m_labelFS; newtComponent m_labelCompression; newtComponent m_labelFreeSpace; newtComponent m_progressSaving, m_labelPercent; newtComponent m_labelStatsTime, m_labelStatsTimeRemaining, m_labelStatsSpeed, m_labelStatsSpace; }; // ======================================================= class CRestoringWindow { public: int create(char *szDevice, char *szImageFile, QWORD qwCurPartSize, DWORD dwCompressionMode, char *szOriginalDevice, char *szFileSystem, struct portable_tm dateCreate, QWORD qwOrigPartSize, COptions * options); int runForm(); void destroyForm(); void showImageFileInfo(char *szImageFile, int nCompressionMode, char *szFullyBatchMode); void showStats(const time_t timeStart, QWORD qwBlockSize, QWORD qwBlocksDone, QWORD qwBlocksUsed, QWORD qwBlocksTotal, bool bEraseWithNull, char *szFullyBatchMode); private: newtComponent m_formMain; newtComponent m_labelPartition, m_labelPartitionSize, m_labelImageFile, m_labelFS, m_labelCompression; newtComponent m_labelOriginalPartitionSize, m_labelDate, m_labelOldDevice; newtComponent m_progressRestoring, m_labelPercent; newtComponent m_labelStatsTime, m_labelStatsTimeRemaining, m_labelStatsSpeed, m_labelStatsSpace; }; // ======================================================= class CExceptionsGUI { public: CExceptionsGUI() {szNewString[0] = '\0';} ~CExceptionsGUI() {} unsigned int windowError(char *szTitle, char *szText, char *szButton, char *szCurPath); char * getNewString() { return szNewString; } unsigned int windowAlreadyExist(char * img, char * path); unsigned int windowLocked(char * img, char * path); unsigned int windowWrongPath(char * szFilename); private: char szNewString[1024]; }; #endif // GUI_TEXT_H partimage-0.6.8/src/client/misc.h0000644000000000000000000002500611256746531015362 0ustar rootroot/*************************************************************************** misc.h - description ------------------- begin : Thu Jun 29 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef MISC_H #define MISC_H #include "partimage.h" #include "common.h" struct CImage; struct CMainHeader; struct CMainTail; struct COptions; // ======================================================= #ifndef major #define major(dev) (((dev) >> 8) & 0xff) #endif #ifndef minor #define minor(dev) ((dev) & 0xff) #endif #ifndef makedev #define makedev(maj,min) (((maj) << 8) | min)) #endif // ======================================================= int isDevfsMounted(); int isDevfsEnabled(); // ======================================================= void savePartition(char *szDevice, char *szImageName, /*char *szFilesystem, */COptions *options); void restorePartition(char *szDevice, char *szImageName, COptions *options); void restoreMbr(char *szImageFile, COptions *options); void save_all(char *szImageDir, COptions *options); void rest_all(char *szImageDir, COptions *options); void save_file(char *szImageFile, COptions *options); void rest_file(char *szImageFile, COptions *options); // ======================================================= void closeFilesSave(bool on_error, COptions options, CImage *image, FILE *fDeviceFile); void closeFilesRestore(bool on_error, COptions options, CImage *image, FILE *fDeviceFile); bool isFileSystemSupported(char *szFileSystem); void lockFile(int nFileDesc, char *szDevice); int getMajorMinor(char *szDevice, int *nMajor, int *nMinor); // ================================================ /* struct CVolumeHeader // size must be 512 (adjust the reserved data) { char szMagicString[32]; char szVersion[64]; // version of the image file DWORD dwVolumeNumber; QWORD qwIdentificator; // to avoid using volumes from differents image files on restore unsigned char cReserved[404]; // Adjust to fit with total header size }; */ // ================================================ /* struct CMainTail // size must be 16384 (adjust the reserved data) { QWORD qwCRC; DWORD dwVolumeNumber; unsigned char cReserved[16372]; // Adjust to fit with total header size }; */ //#define MAX_UNAMEINFOLEN 65 //SYS_NMLN // ================================================ /* struct CMainHeader // size must be 16384 (adjust the reserved data) { char szFileSystem[512]; // ext2fs, ntfs, reiserfs, ... char szPartDescription[MAX_DESCRIPTION]; // user description of the partition char szOriginalDevice[MAX_DEVICENAMELEN]; // original partition name char szFirstImageFilepath[MAXPATHLEN]; // for splitted image files // system and hardware infos char szUnameSysname[MAX_UNAMEINFOLEN]; char szUnameNodename[MAX_UNAMEINFOLEN]; char szUnameRelease[MAX_UNAMEINFOLEN]; char szUnameVersion[MAX_UNAMEINFOLEN]; char szUnameMachine[MAX_UNAMEINFOLEN]; DWORD dwCompression; // COMPRESS_XXXXXX DWORD dwMainFlags; struct tm dateCreate; // date of image creation QWORD qwPartSize; // size of the partition in bytes char szHostname[MAX_HOSTNAMESIZE]; char szVersion[64]; // version of the image file // MBR backup DWORD dwMbrCount; // how many MBR are saved in the image file DWORD dwMbrSize; // size of a MBR record (allow to change the size in the next versions) // future encryption support DWORD dwEncryptAlgo; // algo used to encrypt data char cHashTestKey[16]; // used to test the password without giving it BYTE cReserved[6564]; // Adjust to fit with total header size }; */ /** prints the list of all options selected by user (compress level, splitting, ...) * @param options Pointer to the COptions structure to show */ void showDebugOptions(COptions *options); /** This functions tells if the file is existing * @param szPath Path of the file * @return @p true if the file exists * or @p false if it does not exists */ // CRC 32 void initCrcTable(DWORD *dwCrcTable); // ======================================================= QWORD swapNb(QWORD nb); // 64 bits DWORD swapNb(DWORD nb); // 32 bits WORD swapNb(WORD nb); // 16 bits // ======================================================= #define DO1(buf) dwCrc = g_dwCrcTable[((int)dwCrc ^ (*buf++)) & 0xff] ^ (dwCrc >> 8); #define DO2(buf) DO1(buf); DO1(buf); #define DO4(buf) DO2(buf); DO2(buf); #define DO8(buf) DO4(buf); DO4(buf); // ======================================================= inline DWORD increaseCrc32(DWORD dwCrc, const char *buf, DWORD dwLen) { dwCrc = dwCrc ^ 0xffffffffL; while (dwLen >= 8) { DO8(buf); dwLen -= 8; } if (dwLen) do { DO1(buf); } while (--dwLen); return dwCrc ^ 0xffffffffL; } /** Detects the FAT type of a partition, and write the type description in the buffer pointed by swFileSys ("fat16", "fat32", "fat12") * @param cBoot buffer with the boot sector of the partition * @return @p -1 if the partition is not FAT * or @p FS_FAT16 if partition is FAT16 * or @p FS_FAT32 if partition is FAT32 */ //int detectFatType(BYTE *cBoot, char *szFileSys); /** Shows the list of logical partitions contained in an UFS slice * @param szDevice Device of the partition to look at (ex: /dev/hda3) * @return @p 0 if success * or @p -1 if error */ int showUfsDisklabel(char *szDevice); /** This functions tells if the device is mounted * @param szDevice The device partition to look for the mount (ex: "/dev/hda1") * @param szMountPoint Buffer where to write the mount point of the device if it * was mounted. This is a result. * @return @p true if the partition is mounted * or @p false if it is not mounted */ int isMounted(const char *szDevice, char *szMountPoint); /** Gives the size of a partition in bytes * @param szDevice The device partition to look for the mount (ex: "/dev/hda1") * @return the number of bytes the physical partition contains in a QWORD number */ QWORD getPartitionSize(const char *szDevice); /** shows a dialog box to ask a description of an image file to the user * @param szDescription buffer where to write the description (result) * @param dwMaxLen maximum length of the description (size of the buffer) */ void askDescription(char *szDescription, DWORD dwMaxLen); /** try to detect the file system of a partition * @param szDevice The device partition to look for the file system (ex: "/dev/hda1") * @param szFileSys buffer where to write the detected file system (result) * @return identificator of the file system */ int detectFileSystem(const char *szDevice, char *szFileSys); /** check the inode file in the /dev/ directory is created, and then then the device will be opened. In deed, sometimes, big minor number partitions are not created (/dev/hda16) for example. If the inode does not exists, a message tells the user how to create it. * @param szDevice The device partition to chek for inode (ex: "/dev/hda1") * @return @p 0 if success, @p -1 if error */ int checkInodeForDevice(char *szDevice, char *szFullyBatchMode); /** It allows to make a fseek (SEEK_CUR mode only) in a file with offsets greaters than 2 GB. For example, you can seek 8 GB with this function. * @param fStream stream returned by fopen() of the file to seek * @param qwOffset 64 bist number of the seek * @return @p -1 if error of @p 0 if success */ int bigFseek(FILE *fStream, QWORD qwOffset); // SEEK_SET forced /** It makes important checks before an operation: * + check the inodes in /dev/ are created * + check the user is logged as the root * + check the partition is not mounted * @param swDevice Device (ex: /dev/hda3) to check for the inode and the mount state * @param bFailIfMounted: true if the function must return an error if the partition is mounted * @return @p -1 if error or @p 0 if success */ int systemChecks(char *szDevice, bool bFailIfMounted, char *szFullyBatchMode); /** This function receives data of the /proc/partitions files, pases it and * returns the informations it contains (major, minor, blocks, partnum, device). * It allows to show the partition list. * @param cPtr pointer to the beginning of the line of the buffer to parse * @param nMajor pointer to the number where to write the major number * @param nMinor pointer to the number where to write the minor number * @param nBlocks pointer to the number where to write the blocks count * @param nPartNum pointer to the number where to write the number of the partition * @param szDevice pointer to the buffer where to write the partition device name * @return @p pointer to the end of the line which was parsed */ char *decodePartitionEntry(char *cPtr, int *nMajor, int *nMinor, int *nBlocks, int *nPartNum, char *szDevice); /** Check the options are valid. For example, the size of a volume must be grater than 1024 KB, the port * used for the network must not be null, ... * @param options copy of a COptions structure to check * @return @p -1 if error or @p 0 if success */ int checkOptions(COptions options, char *szDevice, char *szImageFile); int CXfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CReiser3Partdetect(BYTE *cBootSect, char *szFileSystem); int CReiser4Partdetect(BYTE *cBootSect, char *szFileSystem); int CExt2Partdetect(BYTE *cBootSect, char *szFileSystem); int CAfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CJfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CFatPartdetect(BYTE *cBootSect, char *szFileSystem); int CHpfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CNtfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CHfsPartdetect(BYTE *cBootSect, char *szFileSystem); int CBefsPartdetect(BYTE *cBootSect, char *szFileSystem); int CUfsPartdetect(BYTE *cBootSect, char *szFileSystem, FILE *fDeviceFile); bool isVersionStable(const char *szVersion); #endif //MISC_H partimage-0.6.8/src/client/netclient.h0000644000000000000000000000367111256743306016415 0ustar rootroot/*************************************************************************** netclient.h - description ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _NETCLIENT_H_ #define _NETCLIENT_H_ #ifdef HAVE_CONFIG_H #include #endif #include "net.h" #include "netdb.h" #include "exceptions.h" // ================================================ class CNetClient : public CNet { private: CIdefRemote IdfServer; #ifdef HAVE_SSL SSL_CTX * ctx; X509 * server_cert; SSL_METHOD * meth; #endif bool m_bUseSSL; bool m_bMustLogin; public: CNetClient(bool bMustLogin, bool bUseSSL); void Connect(char * adr, unsigned short int port); unsigned int SendPass(char * login, char * pass); size_t Send(const void * buf, size_t len){return nSend(IdfServer, buf, len);} size_t Recv(void * buf, size_t len) {return nRecv(IdfServer, buf, len);} size_t SendMsg(CMessages * msg) {return nSendMsg(IdfServer, msg);} size_t RecvMsg(CMessages * msg) {return nRecvMsg(IdfServer, msg);} CExceptions * RecvExcep(char * msg); }; #endif // _NETCLIENT_H_ partimage-0.6.8/src/client/mbr_backup.h0000644000000000000000000000424111252653177016531 0ustar rootroot/*************************************************************************** mbr_backup.h - description ------------------- begin : Thu Jun 29 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef MBR_BACKUP_H #define MBR_BACKUP_H #define MBR_SIZE_WHOLE 512 #define MBR_SIZE_BOOT 446 #define MBR_SIZE_TABLE 64 #define MAX_DESC_MODEL 128 #define MAX_DESC_GEOMETRY 1024 #define MAX_DESC_IDENTIFY 4096 #define MBR_MAGIC 0xAA55 // ======================================================================================== struct CMbr // must be 1024 { char cData[MBR_SIZE_WHOLE]; DWORD dwDataCRC; char szDevice[MAX_DEVICENAMELEN]; // ex: "hda" // disk identificators QWORD qwBlocksCount; char szDescModel[MAX_DESC_MODEL]; BYTE cReserved[884]; // for future use //char szDescGeometry[MAX_DESC_GEOMETRY]; //char szDescIdentify[MAX_DESC_IDENTIFY]; } __attribute__ ((packed)); // ======================================================================================== int mbrGetData(char *szDevice, CMbr *mbr, DWORD dwBlocksCount); int mbrGetInfoDir(char *szDevice, char *szDir); int mbrCopyFileToString(char *cDest, char *szFilepath, int nMaxSize); int mbrParseProcPart(char *szHdList, int nMaxLen, int nWhatMajorMustBe=-1, int nMinorOfPartToSave=-1); void imageInfoShowMBR(int i, CMbr *mbr); bool isDriveReady(char *szDevice); #endif // MBR_BACKUP_H partimage-0.6.8/src/client/netclient.cpp0000644000000000000000000001307611256743306016750 0ustar rootroot/*************************************************************************** netclient.cpp - description ------------------- begin : Thu Oct 26 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef MUST_LOGIN #include #endif #include "netclient.h" #include "exceptions.h" #include "common.h" // ================================================ CNetClient::CNetClient(bool bMustLogin, bool bUseSSL):CNet() { showDebug(9, "begin\n"); int sock; if (!(sock = socket(AF_INET, SOCK_STREAM, 0))) { showDebug(1, "socket error\n"); THROW(ERR_ERRNO, errno); } memset(&IdfServer.SockAddr, '\0', sizeof(struct sockaddr)); IdfServer.Sock = sock; #ifdef HAVE_SSL if (bUseSSL) { showDebug(3, "initializing client ssl\n"); SSLeay_add_ssl_algorithms(); meth = SSLv2_client_method(); SSL_load_error_strings(); ctx = SSL_CTX_new(meth); if (!ctx) THROW(ERR_SSL_CTX); m_bUseSSL = (ctx != NULL); } else m_bUseSSL = false; #else m_bUseSSL = false; #endif #ifdef MUST_LOGIN m_bMustLogin = bMustLogin; #else m_bMustLogin = false; #endif showDebug(9, "end constructor ok\n"); } void CNetClient::Connect(char * adr, unsigned short int port) { BEGIN; char * ok = (char *) malloc(5); char * szServerBanner = (char *) malloc (BANNER_SIZE+1); char * szBanner; char * explaination = (char *) malloc(8); struct hostent * host; if ((host = gethostbyname(adr)) == NULL) { showDebug(2, "connect error, gethostbyname() -> h_errno: %d\n", h_errno); /* FIXME: Perhaps we should provide the user with the details of h_errno */ THROW(ERR_HOST); } IdfServer.SockAddr.sin_family = AF_INET; IdfServer.SockAddr.sin_addr.s_addr = *(unsigned long *)host->h_addr; IdfServer.SockAddr.sin_port = htons(port); if (connect(IdfServer.Sock, (struct sockaddr *) &IdfServer.SockAddr, sizeof(IdfServer.SockAddr))) { showDebug(2, "connect error: %d\n", errno); THROW(ERR_ERRNO, errno); } showDebug(2, "connected, waitting for banner\n"); IdfServer.Ssl = NULL; // desactive SSL until server allows it Recv(szServerBanner, BANNER_SIZE+1); // +1 -> preserve endding \0 showDebug(2, "Banner received: %s\n", szServerBanner); szBanner = Banner(m_bUseSSL, m_bMustLogin); Send(szBanner, BANNER_SIZE+1); showDebug(2, "Banner sent: %s\n", szBanner); Recv(ok, 5); if (strcmp(ok, " ack") && strcmp(ok, "nack")) showDebug(2, "Wrong answer from server: %s\n", ok); showDebug(3, "ok=%s\n", ok); if (strcmp(ok, " ack")) { Recv(explaination, 8); if (!strcmp(explaination, "banners")) THROW(ERR_REFUSED); else if (!strcmp(explaination, "toomany")) THROW(ERR_TOOMANY); else THROW(ERR_VERSIONSMISMATCH); } #ifdef HAVE_SSL if (m_bUseSSL && strstr(szServerBanner, "SSL")) { int err; showDebug(1, "trying to use SSL as required\n"); IdfServer.Ssl = SSL_new(ctx); SSL_set_fd(IdfServer.Ssl, IdfServer.Sock); err = SSL_connect(IdfServer.Ssl); if (err == -1) { showDebug(1, "error ssl connect\n"); THROW(ERR_SSL_CONNECT); } showDebug(3, "ssl cipher: %s\n", SSL_get_cipher(IdfServer.Ssl)); } else { IdfServer.Ssl = NULL; showDebug(1, "no SSL because partimaged doesn't support it\n"); } #else showDebug(1, "not compiled with SSL\n"); IdfServer.Ssl = NULL; #endif showDebug(3, "connected to server\n"); } // return 0 if pass good else !0 // login/pass may be "nologin"/"nopass" if compiled with no login unsigned int CNetClient::SendPass(char * login, char * pass) { int nRes; unsigned int nSize; char * szSalt; char * szPasswd; char * ok = (char *) malloc(5); // send login nSize = strlen(login)+1; nRes = Send(&nSize, sizeof(unsigned int)); nRes = Send((void *) login, nSize); nRes = Recv(&nSize, sizeof(unsigned int)); szSalt = (char *) malloc (nSize); nRes = Recv(szSalt, nSize); #ifdef MUST_LOGIN #ifdef HAVE_PAM szPasswd = strdup(pass); #else szPasswd = crypt(pass, szSalt); #endif #else szPasswd = strdup(pass); #endif // send password nSize = strlen(szPasswd)+1; nRes = Send(&nSize, sizeof(unsigned int)); nRes = Send((void *) szPasswd, nSize); // check answer nRes = Recv(ok, 4+1); // preserve endding \0 *(ok+4) = '\0'; return strcmp(ok, " ack"); } CExceptions * CNetClient::RecvExcep(char * msg) { DWORD dwArg1, dwArg2, dwErrCode, dwAux; char * szArg1; Recv(&dwErrCode, sizeof(dwErrCode)); Recv(&dwArg1, sizeof(dwArg1)); Recv(&dwArg2, sizeof(dwArg2)); Recv(&dwAux, sizeof(dwAux)); // strlen of szArg1 szArg1 = (char *) malloc(dwAux); Recv(szArg1, dwAux); return new CExceptions(msg, (signed int) dwErrCode, szArg1, dwArg1, dwArg2); } partimage-0.6.8/src/client/partimage.h0000644000000000000000000002003711256746531016377 0ustar rootroot/*************************************************************************** partimage.h - description ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef PARTIMAGE_H #define PARTIMAGE_H #include #include // intl translation #include #include #include #define __STDC_FORMAT_MACROS #include #ifdef HAVE_CONFIG_H #include #endif #include "pathnames.h" // the image format created by the current version #define CURRENT_IMAGE_FORMAT "0.6.1" #define BEGIN {showDebug(9, "begin\n");} #define RETURN_bool(x) {showDebug(9, "end (%d)\n",(bool)x); return(x);} #define RETURN_int(x) {showDebug(9, "end (%d)\n",(int)x); return(x);} #define RETURN_WORD(x) {showDebug(9, "end (%u)\n",(WORD)x); return(x);} #define RETURN_DWORD(x) {showDebug(9, "end (%lu)\n",(DWORD)x); return(x);} #define RETURN_QWORD(x) {showDebug(9, "end (%llu)\n",(QWORD)x); return(x);} #define RETURN {showDebug(9, "end\n"); return;} #define showDebug(level, format, args...) showDebugMsg(g_fDebug, level, __FILE__, __FUNCTION__, __LINE__, format, ## args) #define THROW(nError, args...) showDebug(1, "THROW: %d\n", nError),throw new CExceptions(__FUNCTION__, nError, ## args) #define SNPRINTF(szDest, szFormat, args...) snprintf(szDest, sizeof(szDest)-1, szFormat, ## args),szDest[sizeof(szDest)-1]=0 // allow to use this macro in 'else' #define COPYBUF_SIZE 262144 // 256 KB #define MAX_FREE_BLOCKS_SKIPPED 2048 // time extern time_t g_timeBegin; // Beginning of main() extern time_t g_timeStart; // Beginning of the copy, after confirmation extern time_t g_timeEnd; // End of the operation typedef bool BOOL; // variant size typedef uint8_t BYTE; // 8 bits typedef uint16_t WORD; // 16 bits typedef uint32_t DWORD; // 32 bits typedef uint64_t QWORD; // 64 bits #include "endianess.h" extern QWORD g_qwCopiedBytesCount; // debug extern FILE *g_fDebug; extern FILE *g_fLocalDebug; extern char g_szDebug[]; extern DWORD g_dwCrcTable[]; class CInterface; extern CInterface *g_interface; extern bool g_bSigInt; extern bool g_bSigKill; #ifdef OS_LINUX #define i18n(X) gettext(X) #else #define i18n(X) (X) #endif #define my_min(a,b) ((a) < (b) ? (a) : (b)) #define my_max(a,b) ((a) > (b) ? (a) : (b)) /* #define min(a,b) ((a) < (b) ? (a) : (b)) #define min3(a,b,c) (min(min((a),(b)),(c))) #define max(a,b) ((a) > (b) ? (a) : (b)) #define max3(a,b,c) (max(max((a),(b)),(c))) */ #define OPERATION_SAVE 1 #define OPERATION_RESTORE 2 #define OPERATION_RESTMBR 3 #define OPERATION_IMGINFO 4 #define OPERATION_EXIT 5 #define OPERATION_SAVE_ALL 6 #define OPERATION_REST_ALL 7 #define OPERATION_SAVE_FILE 8 #define OPERATION_REST_FILE 9 // returned by CExceptionsGUI::windowError // user canceled the job #define ERR_QUIT 1 // user entered a new path or filename #define ERR_RETRY 2 // user want to go on without any change #define ERR_CONT 3 #define FS_UNKNOWN 0 #define FS_EXT2 1 #define FS_EXT3 2 #define FS_FAT12 3 #define FS_FAT16 4 #define FS_FAT32 5 #define FS_NTFS 6 #define FS_REISER_3_5 7 // kernel-2.2 version #define FS_REISER_3_6 8 // kernel-2.4 versions #define FS_HPFS 9 #define FS_EXTENDED 10 #define FS_SWAP0 11 #define FS_SWAP1 12 #define FS_UFS 13 // Old Unix File System (FFS: Berkeley BSD Fast File System, Solaris FS, ...) //#define FS_FFS 14 // Berkeley BSD Fast File System #define FS_JFS 15 // IBM Journalized File System (AIX) #define FS_XFS 16 // XFS (SGI) #define FS_HFS 17 // HFS (MacOS) #define FS_HFSPLUS 18 // HFS+ (MacOS 8.1 and higher) #define FS_AFS 19 // AFS (AtheOS file system) #define FS_BEFS 20 // BeFS (BeOS file system) #define FS_REISER_4_0 21 // kernel-2.6 versions #define FS_LVM2 22 // not supported by GUI (must be pass on cmdline) #define MAX_DESCRIPTION 4096 #define MAX_HOSTNAMESIZE 128 #define MAX_DEVICENAMELEN 512 #define MAX_USERNAMELEN 32 #define MAX_PASSWORDLEN 32 // COMPRESSION #define COMPRESS_NONE 0 #define COMPRESS_GZIP 1 #define COMPRESS_BZIP2 2 #define COMPRESS_LZO 3 // ENCRYPTION #define ENCRYPT_NONE 0 // SPLIT MODE #define SPLIT_AUTO 1 #define SPLIT_SIZE 2 // FINISH MODE #define FINISH_WAIT 0 #define FINISH_HALT 1 #define FINISH_REBOOT 2 #define FINISH_QUIT 3 #define FINISH_LAST 4 // ===================== MAGIC STRINGS ============================ #define MAGIC_BEGIN_LOCALHEADER "MAGIC-BEGIN-LOCALHEADER" #define MAGIC_BEGIN_DATABLOCKS "MAGIC-BEGIN-DATABLOCKS" #define MAGIC_BEGIN_BITMAP "MAGIC-BEGIN-BITMAP" #define MAGIC_BEGIN_MBRBACKUP "MAGIC-BEGIN-MBRBACKUP" #define MAGIC_BEGIN_TAIL "MAGIC-BEGIN-TAIL" #define MAGIC_BEGIN_INFO "MAGIC-BEGIN-INFO" #define MAGIC_BEGIN_EXT000 "MAGIC-BEGIN-EXT000" // reserved for future use #define MAGIC_BEGIN_EXT001 "MAGIC-BEGIN-EXT001" // reserved for future use #define MAGIC_BEGIN_EXT002 "MAGIC-BEGIN-EXT002" // reserved for future use #define MAGIC_BEGIN_EXT003 "MAGIC-BEGIN-EXT003" // reserved for future use #define MAGIC_BEGIN_EXT004 "MAGIC-BEGIN-EXT004" // reserved for future use #define MAGIC_BEGIN_EXT005 "MAGIC-BEGIN-EXT005" // reserved for future use #define MAGIC_BEGIN_EXT006 "MAGIC-BEGIN-EXT006" // reserved for future use #define MAGIC_BEGIN_EXT007 "MAGIC-BEGIN-EXT007" // reserved for future use #define MAGIC_BEGIN_EXT008 "MAGIC-BEGIN-EXT008" // reserved for future use #define MAGIC_BEGIN_EXT009 "MAGIC-BEGIN-EXT009" // reserved for future use #define MAGIC_BEGIN_VOLUME "PaRtImAgE-VoLuMe" // ==================== DEFAULT OPTIONS ============================ #define OPTIONS_DEFAULT_COMPRESS COMPRESS_GZIP #define OPTIONS_DEFAULT_ERASE_EMPTY false #define OPTIONS_DEFAULT_SPLIT_SIZE 2136746229 // 1.99 GB OLD: [0 // do not split] #define OPTIONS_DEFAULT_OVERWRITE false #define OPTIONS_DEFAULT_CHECK true #define OPTIONS_DEFAULT_FAIL_IF_MOUNTED true #define OPTIONS_DEFAULT_ASK_DESC true #define OPTIONS_DEFAULT_FINISH FINISH_WAIT #define OPTIONS_DEFAULT_SERVERPORT 4025 #define OPTIONS_DEFAULT_AUTOSTART false #define OPTIONS_DEFAULT_SPLIT_WAIT false #define OPTIONS_DEFAULT_RUN_SHELL false #define OPTIONS_DEFAULT_SYNC true #define OPTIONS_DEFAULT_LOGIN true #define OPTIONS_DEFAULT_SSL true #define OPTIONS_DEFAULT_BACKUP_MBR true #define OPTIONS_DEFAULT_SIMULATE_MODE false #define OPTIONS_DEFAULT_SERVERNAME "" #define OPTIONS_DEFAULT_AUTOMOUNT "" #define OPTIONS_DEFAULT_FULLYBATCHMODE "" #define OPTIONS_DEFAULT_USERNAME "" #define OPTIONS_DEFAULT_PASSWORD "" // ======================== FUNCTIONS ================================ void usage(); int checkStructSizes(); void closeDebugFiles(); void formatOperationSucessMsg(char *szMsg, int nMaxLen, char *szOperation); #endif // PARTIMAGE_H partimage-0.6.8/src/client/Makefile.in0000644000000000000000000005214711256751263016327 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ sbin_PROGRAMS = partimage$(EXEEXT) subdir = src/client DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(sbindir)" sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(sbin_PROGRAMS) am_partimage_OBJECTS = netclient.$(OBJEXT) imagefile.$(OBJEXT) \ misc.$(OBJEXT) image_net.$(OBJEXT) buffer.$(OBJEXT) \ gui_text.$(OBJEXT) main.$(OBJEXT) imginfo.$(OBJEXT) \ cbitmap.$(OBJEXT) interface_base.$(OBJEXT) \ interface_newt.$(OBJEXT) interface_none.$(OBJEXT) \ mbr_backup.$(OBJEXT) partimage_OBJECTS = $(am_partimage_OBJECTS) partimage_DEPENDENCIES = fs/libfs.a ../shared/libshared.a partimage_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(partimage_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(partimage_SOURCES) DIST_SOURCES = $(partimage_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive HEADERS = $(noinst_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ -Wall CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ -DLOCALEDIR=\"${localedir}\" -D_REENTRANT -D_FILE_OFFSET_BITS=64 DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = fs INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/src/shared \ -I$(top_srcdir)/src/client \ -I$(top_srcdir)/src/client/fs \ -I/usr/include/slang noinst_HEADERS = buffer.h cbitmap.h gui_text.h image_base.h image_net.h \ imagefile.h imginfo.h interface.h interface_newt.h \ interface_none.h \ mbr_backup.h misc.h netclient.h partimage.h partimage_SOURCES = \ netclient.cpp \ imagefile.cpp \ misc.cpp \ image_net.cpp \ buffer.cpp \ gui_text.cpp \ main.cpp \ imginfo.cpp \ cbitmap.cpp \ interface_base.cpp \ interface_newt.cpp \ interface_none.cpp \ mbr_backup.cpp # all libs are added in LIBS, we needn't add them to partimage_LDADD partimage_LDADD = -L$(libdir) -lslang fs/libfs.a ../shared/libshared.a partimage_LDFLAGS = @PARTIMAGE_LDFLAGS@ MAINTAINERCLEANFILES = Makefile.in all: all-recursive .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/client/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/client/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-sbinPROGRAMS: $(sbin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)" @list='$(sbin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-sbinPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(sbin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \ rm -f "$(DESTDIR)$(sbindir)/$$f"; \ done clean-sbinPROGRAMS: @list='$(sbin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done partimage$(EXEEXT): $(partimage_OBJECTS) $(partimage_DEPENDENCIES) @rm -f partimage$(EXEEXT) $(partimage_LINK) $(partimage_OBJECTS) $(partimage_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cbitmap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gui_text.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/image_net.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imagefile.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imginfo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface_base.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface_newt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface_none.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mbr_backup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netclient.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -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. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(sbindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-libtool clean-sbinPROGRAMS \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-sbinPROGRAMS install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-sbinPROGRAMS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ clean-sbinPROGRAMS ctags ctags-recursive 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-sbinPROGRAMS install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am \ uninstall-sbinPROGRAMS # 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: partimage-0.6.8/src/client/image_base.h0000644000000000000000000000511611252653177016502 0ustar rootroot/*************************************************************************** image_base.h - description ------------------- begin : Sun Nov 5 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef IMAGE_BASE_H #define IMAGE_BASE_H #include "partimage.h" #include "misc.h" // ================================================ class CImageBase { public: CImageBase() {} virtual ~CImageBase() {} virtual bool get_bIsOpened()=0; virtual char * get_szImageFilename()=0; virtual char * get_szOriginalFilename()=0; virtual char * get_szPath()=0; virtual void set_bIsOpened(bool n)=0; virtual void set_szPath(char * str)=0; virtual void set_szImageFilename(char * str)=0; virtual void set_szOriginalFilename(char * str)=0; virtual void set_szImageFilename(char * str, int n)=0; virtual void set_szOriginalFilename(char * str, int n)=0; virtual void get_qwCurrentVolumeSize(QWORD *qwSize)=0; virtual void set_options(COptions * options)=0; virtual void write(void *buf, DWORD dwLength, int *ndwResult)=0; //virtual void write(void *buf, DWORD dwLength)=0; virtual DWORD read(void *buf, DWORD dwLength)=0; virtual void openWriting()=0; virtual void openReading()=0; virtual void close()=0; virtual int mountImageLocation(char *, char *, char *)=0; virtual int umountImageLocation(char *)=0; // misc virtual bool doesFileExists(char *szPath)=0; virtual void getFreeSpace(QWORD *)=0; virtual void getDiskFreeSpaceForFile(QWORD *qwFreeSpace, char *szFilepath)=0; virtual void getFileSize(QWORD *qwFileSpace, char *szFilepath)=0; virtual void Connect(COptions *, char *, char *, char *, int)=0; //virtual void get_qwCurVolSize(QWORD *qwFileSize)=0; virtual int getCompressionLevelForImage(char *szFilename)=0; }; #endif // IMAGE_BASE_H partimage-0.6.8/src/client/interface_base.cpp0000644000000000000000000005370711252653177017724 0ustar rootroot/*************************************************************************** interface_base.cpp - description ------------------- begin : Wed Mar 14 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include "interface.h" #include #include // ======================================================= void CInterface::showError(signed int nErr, char *szFormat, ...) { va_list args; char szText[4096]; // format text va_start(args, szFormat); vsnprintf(szText, sizeof(szText), szFormat, args); va_end(args); showDebug(1, "showError: [%s]\n", szText); if (!m_bBatchMode) msgBoxCancel(i18n("Error"), "%s", szText); } // ======================================================= void CInterface::showAboutDialog() { char szTitle[128]; SNPRINTF(szTitle, i18n("About Partition Image %s"), PACKAGE_VERSION); msgBoxOk(szTitle, i18n("Partition Image is distributed under the GNU GPL 2" " (General Public License)\n\n" "version:...%s\n" "web:.......http://www.partimage.org/\n\n" "Authors:\nFrancois Dupoux \n" "Franck Ladurelle "), PACKAGE_VERSION); } // ======================================================= void CInterface::ErrorWriting(DWORD block, signed int err) { showError(err, i18n("Can't write block %ld to image"), block); } void CInterface::ErrorWritingHeader(char * header, signed int err) { showError(err, i18n("Can't write %s to image"), header); } void CInterface::ErrorWritingBitmap(DWORD block, signed int err) { showError(err, i18n("Can't write bitmap block %ld to image"), block); } void CInterface::ErrorReadingBitmap(DWORD block, signed int err) { showError(err, i18n("Can't read bitmap block %ld from image"), block); } void CInterface::ErrorWritingDisk(DWORD block, signed int err) { showError(err, i18n("Can't write block %ld to harddrive"), block); } void CInterface::ErrorReading(DWORD block, signed int err) { showError(err, i18n("Can't read block %ld from image (%d)"), block); } void CInterface::ErrorReadingHeader(char * header, signed int err) { showError(err, i18n("Can't read %s from image"), header); } void CInterface::ErrorReadingSuperblock(signed int err) { showError(err, i18n("Can't read SuperBlock")); } void CInterface::ErrorWritingSuperblock(signed int err) { showError(err, i18n("Can't write SuperBlock")); } void CInterface::ErrorReadingDisk(DWORD block, signed int err) { showError(err, i18n("Can't read block %ld from harddrive partition"), block); } void CInterface::ErrorReadingDiskBitmap(DWORD block, signed int err) { showError(err, i18n("Can't read bitmap block %ld from harddrive partition (%s)"),block); } // ======================================================= void CInterface::ErrorWritingMBR() { showError(0, i18n("Can't write the MBR")); } // ======================================================= void CInterface::ErrorReadingMBR() { showError(0, i18n("Can't read the MBR")); } // ======================================================= void CInterface::ErrorFileSystem(char * msg) { showError(0, i18n("Not a %s partition. Check the filesystem type"), msg); } // ======================================================= void CInterface::ErrorNewerRelease() { showError(0, i18n("The partition was saved with a newer version of Partion Image. " "Please download the last one.")); } // ======================================================= void CInterface::ErrorDiskFull() { showError(0, i18n("Error while writing image file: disk full !")); } // ======================================================= void CInterface::ErrorDetectingFS(char * szDevice, signed int err) { showError(0, i18n("Can't detect file system of partition %s"), szDevice); } // ======================================================= void CInterface::ErrorWritingMainHeader() { showError(0, i18n("Can't write main header")); } // ======================================================= void CInterface::ErrorWritingMainTail() { showError(0, i18n("Can't write main tail")); } // ======================================================= void CInterface::ErrorReadingMainTail() { showError(0, i18n("Can't read main tail")); } // ======================================================= void CInterface::ErrorEncryption() { showError(0, i18n("The image you try to restore was encrypted. The current " "version doesn't support encryption. Please, download the latest version " "of partimage.")); } // ======================================================= void CInterface::ErrorAskFirstVolume(char * szVolume) { showError(0, i18n("%s is not the first volume of an image. Please, retry with " "the volume number 000"), szVolume); } // ======================================================= void CInterface::ErrorInvalidImagefile(char * szFilename) { showError(0, i18n("%s is not a valid partition image file."), szFilename); } // ======================================================= void CInterface::ErrorTooSmall(QWORD qwOriginalSize, QWORD qwSize) { showError(0, i18n("The partition is to small to be restored:\n" "Original partition size:........%llu bytes\n" "Destination partition size:.....%llu bytes"), qwOriginalSize, qwSize); } // ======================================================= void CInterface::ErrorCRC(QWORD qwOriginalCRC, QWORD qwCRC) { showError(0, i18n("There was an error while restoring partition:\n" "CRC64 are differents, the imagefile was damaged:" "\nOriginal CRC64:.....%llu\nCurrent CRC64:......%llu"), qwOriginalCRC, qwCRC); } // ======================================================= void CInterface::ErrorWrongVolumeNumber(DWORD dwExpectedVolume, DWORD dwVolume) { showError(1, i18n("Invalid volume number (%ld instead of %ld)."), dwVolume, dwExpectedVolume); } // ======================================================= void CInterface::ErrorClosing() { showError(0, i18n("Error on close")); } // ======================================================= void CInterface::ErrorAlreadyLocked(char * szPartition, signed int err) { showDebug(1, "STR3=%s\n", szPartition); showError(err, i18n("The partition %s is already locked by another process." " Can't work on it"), szPartition); } // ======================================================= /*void CInterface::Error() { showError(0, i18n("There was an error")); }*/ // ======================================================= void CInterface::ErrorOpeningPartition(char * szDevice, signed int err) { showError(err, i18n("Can't open partition %s"), szDevice); } // ======================================================= void CInterface::ErrorLocking(char * szFilename, signed int err) { showError(err, i18n("Can't lock partition %s"), szFilename); } // ======================================================= void CInterface::ErrorReadingMainHeader() { showError(0, i18n("Can't read main header: imagefile was damaged")); } // ======================================================= void CInterface::ErrorWritingInfos() { showError(0, i18n("Can't write informations")); } // ======================================================= void CInterface::ErrorReadingInfos() { showError(0, i18n("Can't read informations")); } // ======================================================= void CInterface::ErrorReadingMBRMagic() { showError(0, i18n("Can't read MBR Magic: imagefile was damaged")); } // ======================================================= WORD CInterface::ErrorBugBzip2() { msgBoxCancel(i18n("Know bug"), i18n("Cannot restore the MBR from an image compressed with bzip2. You have to change the compression level.")); return 0; } // ======================================================= WORD CInterface::ErrorLogAsRoot() { /*return = newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), i18n("You are not logged as root. You may have \"access denied\" errors" " when working."));*/ return msgBoxContinueCancel(i18n("Warning"), i18n("You are not logged as root. You may have \"access denied\" errors when working.")); } // ======================================================= WORD CInterface::WaitKeyPressed(char *szOld, char *szNewPath, char *szOriginalFilename, DWORD dwVolume) { /*return newtWinChoice(i18n("New Volume"), i18n("Continue"), i18n("Stop"), i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, Volume);*/ return msgBoxContinueCancel(i18n("New Volume"), i18n("The volume has been changed.\nOld: %s\nNew: %s/%s.%.3ld\n" "Press Enter to continue"), szOld, szNewPath, szOriginalFilename, dwVolume); } // ======================================================= WORD CInterface::askRestore(char *szDevice, char *szImageFilename) { /*return newtWinChoice(i18n("Confirmation"), i18n("Yes"), i18n("No"), i18n("Do you really want to restore %s from the image file %s ?"), szDevice, szImageFilename);*/ return msgBoxYesNo(i18n("Confirmation"), i18n("Do you really want to restore %s from the image file %s ?"), szDevice, szImageFilename); } // ======================================================= WORD CInterface::askIgnoreFSError(char *szFsck) { return msgBoxContinueCancel(i18n("Warning"), i18n("%s found errors on the file system."), szFsck); } // ======================================================= WORD CInterface::askIgnoreNoFschk(char *szFsck) { return msgBoxContinueCancel(i18n("Warning"), i18n("Partimage will not check partition because %s does't exist."), szFsck); } // ======================================================= WORD CInterface::askIgnoreDeniedFschk(char *szFsck) { return msgBoxContinueCancel(i18n("Warning"), i18n("Partimage will not check partition because of run access denied for %s."), szFsck); } // ======================================================= void CInterface::WarnFS(char *szFileSys) { //newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); msgBoxOk(i18n("Warning"), i18n("The current %s support is experimental !"), szFileSys); } // ======================================================= void CInterface::WarnFsBeta(char *szFileSys) { //newtWinMessage(i18n("Warning"), i18n("Ok"), i18n("The current %s support is experimental !"), szFileSys); msgBoxOk(i18n("Warning"), i18n("The current %s support is beta !"), szFileSys); } // ======================================================= void CInterface::WarnSimulate() { /*newtWinMessage(i18n("Simulation mode"), i18n("Ok"), i18n("You are using simulation mode: no write will be performed"));*/ msgBoxOk(i18n("Simulation mode"), i18n("You are using simulation mode: no write will be performed")); } // ======================================================= WORD CInterface::WarnRestoreMBR(char * szCurrentDevice, QWORD qwCurrentSize, char * szOriginalDevice, QWORD qwOriginalSize) { /*return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), i18n("The MBR is a very important data of the hard disk. If you write " "a bad MBR, you will lose all the partitions of your hard drive. " "Don't continue unless you know what you are doing. Press 'Continue' " "to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]"), szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize);*/ return msgBoxContinueCancel(i18n("Warning"), i18n("The MBR is a very important data of the hard disk. If you write " "a bad MBR, you will lose all the partitions of your hard drive. " "Don't continue unless you know what you are doing. Press 'Continue' " "to restore.\n" "Device with MBR to restore:.........%s [%llu]\n" "Original MBR:.......................%s [%llu]"), szCurrentDevice, qwCurrentSize, szOriginalDevice, qwOriginalSize); } // ======================================================= WORD CInterface::WarnRestoreOtherMBR(char * szCurrentDevice, char * szOriginalDevice) { /*return newtWinChoice(i18n("Warning"), i18n("Continue"), i18n("Cancel"), i18n("The original hard disk does not fit with the current hard disk. " "The MBR you are trying to restore was saved from another hard disk. " "This means the original and current hard disks does not have the same " "size or they are not on the same device (%s and %s). " "Do you want to continue?"), szOriginalDevice, szCurrentDevice);*/ return msgBoxContinueCancel(i18n("Warning"), i18n("The original hard disk does not fit with the current hard disk. " "The MBR you are trying to restore was saved from another hard disk. " "This means the original and current hard disks does not have the same " "size or they are not on the same device (%s and %s). " "Do you want to continue?"), szOriginalDevice, szCurrentDevice); } // ======================================================= void CInterface::SuccessRestoringMBR(char * szDevice) { msgBoxOk(i18n("Success"), i18n("The MBR of [%s] has been" "successfully restored. You might need to reboot your computer if you want" "the operating system to use the new MBR."), szDevice); } // ============================================================================ WORD CInterface::Error(CExceptions *excep, char *szFilename, char *szDevice/*=NULL*/) { signed int err; DWORD dwArg1 = excep -> get_dwArg1(); DWORD dwArg2 = excep -> get_dwArg2(); //QWORD qwArg1 = excep -> get_qwArg1(); //QWORD qwArg2 = excep -> get_qwArg2(); char * szArg1 = excep -> get_szArg1(); err = excep -> GetExcept(); excep -> setCaught(); if (err >= 0) { msgBoxError(i18n("Error: %s"), strerror(err)); return ERR_QUIT; } switch (err) { case ERR_CANCELED: msgBoxError(i18n("Action canceled as user required")); return ERR_QUIT; case ERR_ERRNO: msgBoxError(i18n("Error: %s"), strerror(dwArg1)); return ERR_QUIT; case ERR_EXIST: if (msgBoxYesNo(i18n("Overwrite image?"), i18n("The %s imagefile already exist. Do you want to overwrite it?"), szFilename) == MSGBOX_NO) return ERR_QUIT; else return ERR_RETRY; case ERR_ACCESS: msgBoxCancel(i18n("Access denied"), i18n("You don't have write access on %s"), szFilename); return ERR_QUIT; case ERR_COMP: msgBoxError(i18n("Invalid compression level for %s"), szFilename); return ERR_QUIT; case ERR_OPENED: msgBoxError(i18n("imagefile %s is already open"), szFilename); return ERR_QUIT; case ERR_EOF: case ERR_NOTFOUND: case ERR_PATH: // no code here return ERR_RETRY; case ERR_VOLUMEHEADER: msgBoxError(i18n("file %s is too short to be a partimage volume: " "can't read header"), szFilename); return ERR_QUIT; /*case ERR_PARTITIONVOLUME: msgBoxError(i18n("file %s is not an partimage volume: " "magic string does not match"), szFilename); return ERR_QUIT;*/ case ERR_WRONGMAGICINVALIMGFILE:// ERR_WRONGMAGIC: msgBoxError(i18n("file %s is not an partimage file: " "magic string does not match"), szFilename); return ERR_QUIT; case ERR_WRONGMAGIC: msgBoxError(i18n("magic string does not match: error in the image file [%s]"), szFilename); return ERR_QUIT; case ERR_VOLUMEID: msgBoxError(i18n("the current volume doesn't fit with current image: " "wrong identificator")); return ERR_QUIT; case ERR_NOMEM: msgBoxError(i18n("Out of memory.")); return ERR_QUIT; case ERR_PASSWD: msgBoxError(i18n("incorrect password or user not in partimagedusers file")); return ERR_QUIT; case ERR_TOOMANY: msgBoxError(i18n("Too many clients connected to partimaged. " "Please, retry later")); return ERR_QUIT; case ERR_BLOCKSIZE: msgBoxError(i18n("Only 4096 bytes per block %s volumes are supported. " "Current one is %lu bytes/block"), szArg1, dwArg1); return ERR_QUIT; case ERR_LOCKED: msgBoxError(i18n("The partition %s id already locked by another" "process. You can't work on it"), szArg1); return ERR_QUIT; case ERR_CHECK_CRC: ErrorCRC(excep->get_qwArg1(), excep->get_qwArg2()); return ERR_QUIT; case ERR_CHECK_NUM: msgBoxError(i18n("Error while checking the data: Invalid block number." "Maybe a volume or some data were skipped.")); return ERR_QUIT; case ERR_VOLUMENUMBER: msgBoxError(i18n("This volume (%ld) is not the expected one: %ld."), dwArg1, dwArg2); return ERR_QUIT; case ERR_HOST: msgBoxError(i18n("Hostname/IP Error!\n" "Perhaps the hostname could not be resolved. " "(Try again using IP address)")); return ERR_RETRY; /* case ERR_SSL_CONNECT: msgBoxError(i18n("Problem with SSL. Ensure partimaged uses SSL")); return ERR_QUIT; case ERR_SSL_CTX: msgBoxError(i18n("Problem with SSL. Contact partimage team for help")); return ERR_QUIT; case ERR_SSL_LOADCERT: msgBoxError( i18n("partimaged got trouble when loading SSL certificate %s"),CERTF); return ERR_QUIT; case ERR_SSL_LOADKEY: msgBoxError( i18n("partimaged got trouble when loading SSL keyfile %s"),CERTF); return ERR_QUIT; case ERR_SSL_PRIVKEY: msgBoxError("%s %s", i18n("SSL error: private key doesn't not match"), i18n("the certificate public key")); return ERR_QUIT; */ case ERR_READ_BITMAP: ErrorReadingBitmap(dwArg1, dwArg2); return ERR_QUIT; case ERR_READING: ErrorReading(dwArg1, dwArg2); return ERR_QUIT; case ERR_WRITING: ErrorWriting(dwArg1, dwArg2); return ERR_QUIT; case ERR_NOMBR: msgBoxError(i18n("No MBR was found in this imagefile. We can't " "continue")); return ERR_QUIT; case ERR_FSCHK: msgBoxError(i18n("Partition checks found error(s) on partitions")); return ERR_QUIT; case ERR_OPENING_DEVICE: ErrorOpeningPartition(szFilename, dwArg1); return ERR_QUIT; case ERR_ENCRYPT: ErrorEncryption(); return ERR_QUIT; case ERR_PART_TOOSMALL: //showDebug(1, "QW1=%llu and 2=%llu\n\n", qwArg1, qwArg2); ErrorTooSmall(excep->get_qwArg1(), excep->get_qwArg2()); return ERR_QUIT; case ERR_FAT_MISMATCH: return ERR_QUIT; case ERR_SAVE_MBR: msgBoxError(i18n("Impossible to read MBR from disk")); return ERR_QUIT; case ERR_WRONG_FS: msgBoxError(i18n("Invalid or damaged filesystem %s"), szDevice); return ERR_QUIT; case ERR_READ_SUPERBLOCK: ErrorReadingSuperblock(dwArg1); return ERR_QUIT; case ERR_ZEROING: msgBoxError(i18n("Impossible to zero the block on harddrive: %s"), strerror(dwArg1)); return ERR_QUIT; case ERR_REFUSED: msgBoxError(i18n("Connexion refused by server:" " incompatibles networking options." "Try disabling login option for server with '-L'")); return ERR_QUIT; case ERR_VERSIONSMISMATCH: msgBoxError(i18n("Connexion refused by server: versions mismatch")); return ERR_QUIT; case ERR_VERSION_NEWER: msgBoxError(i18n("The image file was created by a newer release (%s)" " of Partition Image. Please update this software and retry."), szArg1); return ERR_QUIT; case ERR_VERSION_OLDER: msgBoxError(i18n("The image file was created by an older release (%s)" " of Partition Image. You must use the old version to restore" "your image or you have to recreate it with current version"), szArg1); return ERR_QUIT; case ERR_NOTAPARTIMAGEFILE: msgBoxError(i18n("%s is not a valid Partition Image file or it's" " damaged. Sorry, can't continue"), szArg1); return ERR_QUIT; case ERR_NOTAREGULARFILE: msgBoxError(i18n("File %s is not a regular file. For security reasons," " we can't continue"), szArg1); return ERR_QUIT; case ERR_AUTOMOUNT: msgBoxError(i18n("Cannot mount %s"), szArg1 /*m_szMountDevice*/); return ERR_QUIT; case ERR_AUTOUMOUNT: msgBoxError(i18n("Cannot unmount %s"), szArg1 /*m_szMountDevice*/); return ERR_QUIT; case ERR_CREATESPACEFILE: msgBoxError(i18n("Cannot create temp file [%s]. Please, check there is space enough and you have access rights."), szArg1); return ERR_QUIT; case ERR_CREATESPACEFILENOSPC: msgBoxError(i18n("Cannot create temp file [%s]. No space left on device."), szArg1); return ERR_QUIT; case ERR_CREATESPACEFILEDENIED: #ifdef MUST_CHEUID msgBoxError(i18n("Cannot create temp file in [%s]. Write access is denied" " for user 'partimag'"), szArg1); #else msgBoxError(i18n("Cannot create temp file in [%s]. Write access is denied."), szArg1); #endif return ERR_QUIT; case ERR_FILETOOLARGE: msgBoxError(i18n("File too large. (larger than 2 GB). Can't continue. This problem can come from the kernel, the glibc, the file system which where the image is written")); return ERR_QUIT; default: msgBoxError(i18n("Unknown error %d -> %s"), err, szFilename); exit(-5); } } partimage-0.6.8/src/client/interface_newt.cpp0000644000000000000000000003333711252653177017764 0ustar rootroot/*************************************************************************** interface_newt.cpp - description ------------------- begin : Wed Mar 14 2001 copyright : (C) 2001 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "gui_text.h" #include "interface_newt.h" #include "errors.h" // ======================================================= void debugWin(char *fmt, ...) { va_list args; va_start(args, fmt); newtWinMessagev(i18n("Newt debug information"), i18n("Ok"), fmt, args); va_end(args); } //extern int SLang_Abort_Char; // ======================================================= /*static int getkeyInterruptHook(void) { return -1; } // ======================================================= int myNewtInit(int nCharInterrupt) { char * MonoValue, * MonoEnv = "NEWT_MONO"; SLtt_get_terminfo(); SLtt_get_screen_size(); MonoValue = getenv(MonoEnv); if ( MonoValue == NULL ) SLtt_Use_Ansi_Colors = 1; else SLtt_Use_Ansi_Colors = 0; SLsmg_init_smg(); SLang_init_tty(nCharInterrupt, 0, 0); newtSetColors(newtDefaultColorPalette); #ifdef SIGWINCH SLsignal_intr(SIGWINCH, handleSigwinch); #endif // SIGWINCH SLang_getkey_intr_hook = getkeyInterruptHook; return 0; }*/ // ======================================================= CInterfaceNewt::CInterfaceNewt(bool bBatchMode): CInterface(bBatchMode) { int cols, rows; m_bPushDone = false; //m_bBatchMode = bBatchMode; // in CInterface SLang_init_tty('*', 0, 0); // '*' to send SIGTERM //myNewtInit(32); newtInit(); //SLang_Abort_Char = 27; newtCls(); newtGetScreenSize(&cols, &rows); newtDrawRootText((int)((cols-14)/2), (int)(rows/2), "Please wait..."); newtPushHelpLine(""); newtRefresh(); } // ======================================================= CInterfaceNewt::~CInterfaceNewt() { newtFinished(); } // ======================================================= void CInterfaceNewt::showErrorInternal(char *szText) { msgBoxError(szText); } // ======================================================= void CInterfaceNewt::msgBoxOk(char *szTitle, char *szText, ...) { va_list args; if (!getBatchMode()) { va_start(args, szText); newtWinMessagev(szTitle, i18n("Ok"), szText, args); va_end(args); } } // ======================================================= void CInterfaceNewt::msgBoxCancel(char *szTitle, char *szText, ...) { va_list args; if (!getBatchMode()) { va_start(args, szText); newtWinMessagev(szTitle, i18n("Cancel"), szText, args); va_end(args); } } // ======================================================= void CInterfaceNewt::msgBoxError(char *szText, ...) { va_list args; va_start(args, szText); newtWinMessagev(i18n("Error"), i18n("Cancel"), szText, args); va_end(args); } // ======================================================= int CInterfaceNewt::msgBoxContinueCancel(char *szTitle, char *szText, ...) { char szBuf[4096]; va_list args; int nRes; va_start(args, szText); vsnprintf(szBuf, sizeof(szBuf), szText, args); va_end(args); if (!getBatchMode()) { nRes = newtWinChoice(szTitle, i18n("Continue"), i18n("Cancel"), szBuf); return ((nRes == 1) ? MSGBOX_CONTINUE : MSGBOX_CANCEL); } else { showDebug(1, "Error: %s\n", szBuf); return MSGBOX_CANCEL; } } // ======================================================= int CInterfaceNewt::msgBoxYesNo(char *szTitle, char *szText, ...) { char szBuf[4096]; va_list args; int nRes; va_start(args, szText); vsnprintf(szBuf, sizeof(szBuf), szText, args); va_end(args); if (!getBatchMode()) { nRes = newtWinChoice(szTitle, i18n("Yes"), i18n("No"), szBuf); return ((nRes == 1) ? MSGBOX_YES : MSGBOX_NO); } else { showDebug(1, "Error: %s\n", szBuf); return MSGBOX_NO; } } // ======================================================= void CInterfaceNewt::StatusLine(char *str) { char szBuf[1024]; if (m_bPushDone) newtPopHelpLine(); // work only if there is a previous push snprintf(szBuf, sizeof(szBuf), "%s [* to cancel, CtrlS to pause, CtrlQ to resume]", str); newtPushHelpLine(szBuf); // str m_bPushDone = true; } // ======================================================= int CInterfaceNewt::guiInitMainWindow(char *szDevice, char *szImageFile, char *szNetworkIP, DWORD *dwServerPort, bool *bSsl) { newtComponent formMain, btnContinue, btnExit, btnAbout; newtComponent labelPartition, labelImage, editPartition, editImage; newtComponent widgetTemp, labelAction, radioSave, radioRestore, radioMbr; newtComponent checkNetwork, labelNetwork, labelPort, editNetwork, editPort, checkSsl; newtExitStruct event; char szTemp[1024]; int nAction; int nRes; showDebug(8, "guiInitMainWindow\n"); SNPRINTF(szTemp, "Partition Image %s", PACKAGE_VERSION); newtCenteredWindow(67, 20, szTemp); labelPartition = newtLabel(1, 0, i18n("* Partition to save/restore")); editPartition = newtListbox(3, 1, 7, NEWT_FLAG_SCROLL); labelImage = newtLabel(1, 9, i18n("* Image file to create/use")); editImage = newtEntry(3, 10, szImageFile, 62, NULL, 0); labelAction = newtLabel(1, 12, i18n("Action to be done:")); radioSave = newtRadiobutton(1, 13, i18n("Save partition into a new image file"), true, NULL); radioRestore = newtRadiobutton(1, 14, i18n("Restore partition from an image file"), false, radioSave); radioMbr = newtRadiobutton(1, 15, i18n("Restore an MBR from the imagefile"), false, radioRestore); checkNetwork = newtCheckbox(1, 17, i18n("Connect to server"), (!!(*szNetworkIP) ? 'X' : ' '), " X", NULL); #ifdef HAVE_SSL checkSsl = newtCheckbox(5, 19, i18n("Encrypt data on the network with SSL"), (*bSsl ? 'X' : ' '), " X", NULL); #else #ifdef MUST_LOGIN checkSsl = newtLabel(5, 19,i18n("SSL disabled at compile time")); #else checkSsl = newtLabel(5, 19,i18n("SSL&login disabled at compile time")); #endif #endif labelNetwork = newtLabel(5, 18, i18n("IP/name of the server:")); editNetwork = newtEntry(28, 18, szNetworkIP, 25, NULL, 0); labelPort = newtLabel(54, 18, i18n("Port:")); SNPRINTF(szTemp, "%u", *dwServerPort); editPort = newtEntry(60, 18, szTemp, 6, NULL, 0); btnContinue = newtCompactButton(50, 12, i18n("Next (F5)")); btnAbout = newtCompactButton(50, 14, i18n("About")); btnExit = newtCompactButton(50, 16, i18n("Exit (F6)")); nRes = fillPartitionList(editPartition); if (nRes == -1) RETURN_int(-1); formMain = newtForm(NULL, NULL, 0); newtFormAddComponents(formMain, labelPartition, labelImage, editPartition, editImage, labelAction, radioSave, radioRestore, radioMbr, checkNetwork, labelNetwork, editNetwork, labelPort, editPort, checkSsl, btnContinue, btnAbout, btnExit, NULL); newtFormAddHotKey(formMain, KEY_EXIT); // Exit newtFormAddHotKey(formMain, KEY_OKAY); // Okay begin: /*widgetTemp = */newtFormRun(formMain, &event); widgetTemp = newtFormGetCurrent(formMain); if (((event.reason == event.NEWT_EXIT_HOTKEY) && (event.u.key == KEY_EXIT)) || ((event.reason == event.NEWT_EXIT_COMPONENT) && (widgetTemp == btnExit))) //if(widgetTemp == btnExit) return OPERATION_EXIT; if ((event.reason == event.NEWT_EXIT_COMPONENT) && (widgetTemp == btnAbout)) { showAboutDialog(); goto begin; } if (strcmp(newtEntryGetValue(editImage), "") == 0) // if "image" field empty { msgBoxError(i18n("The \"Image\" filed is empty. Cannot continue")); goto begin; } if (newtCheckboxGetValue(checkNetwork) == 'X') { if (!(*newtEntryGetValue(editNetwork))) { msgBoxError(i18n("The \"Server IP/Name\" field is empty. Cannot continue")); goto begin; } if (!atoi((char*)newtEntryGetValue(editPort))) { msgBoxError(i18n("The \"Server Port\" field is not a valid integer. Cannot continue")); goto begin; } } // get device strcpy(szDevice, (char*)newtListboxGetCurrent(editPartition)); // image file strcpy(szImageFile, newtEntryGetValue(editImage)); // network if (newtCheckboxGetValue(checkNetwork) == 'X') // If network is activated { strcpy(szNetworkIP, (char*)newtEntryGetValue(editNetwork)); *dwServerPort = atoi((char*)newtEntryGetValue(editPort)); #ifdef HAVE_SSL *bSsl = (newtCheckboxGetValue(checkSsl) == 'X'); #endif } else // no network { *szNetworkIP = 0; *dwServerPort = OPTIONS_DEFAULT_SERVERPORT; } nAction = 0; if (newtRadioGetCurrent(radioRestore) == radioSave) { nAction = OPERATION_SAVE; } else if (newtRadioGetCurrent(radioRestore) == radioRestore) { nAction = OPERATION_RESTORE; } else if (newtRadioGetCurrent(radioRestore) == radioMbr) { nAction = OPERATION_RESTMBR; } newtFormDestroy(formMain); newtPopWindow(); return nAction; } // ======================================================= void CInterfaceNewt::askDescription(char *szDescription, DWORD dwMaxLen) { newtComponent editDesc; newtComponent labelText; newtComponent form; newtComponent btnOk; memset(szDescription, 0, dwMaxLen); newtCenteredWindow(65, 18, i18n("Partition description")); labelText = newtLabel(1, 1, i18n("You can enter a description of the saved partition:")); editDesc = newtEntry(1, 3, "", 60, NULL, NEWT_ENTRY_SCROLL); btnOk = newtButton(27, 13, i18n("Ok")); form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, labelText, editDesc, btnOk, NULL); newtRunForm(form); newtPopWindow(); strncpy(szDescription, newtEntryGetValue(editDesc), dwMaxLen); newtFormDestroy(form); } // ======================================================= int CInterfaceNewt::askText(char *szMessage, char *szTitle, char *szDestText, WORD size) { newtComponent editText; newtComponent labelText; newtComponent form; newtComponent btnOk; newtComponent btnCancel; newtComponent temp; *szDestText = 0; while (!*szDestText) { newtCenteredWindow(65, 20, szTitle); labelText = newtTextbox(1, 1, 60, 7, 0/*NEWT_TEXTBOX_SCROLL*/); newtTextboxSetText(labelText, szMessage); editText = newtEntry(1, 9, "", 55, NULL, NEWT_ENTRY_SCROLL); btnOk = newtButton(15, 14, i18n("Ok")); btnCancel = newtButton(40, 14, i18n("Cancel")); form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, labelText, editText, btnOk, btnCancel, NULL); temp = newtRunForm(form); newtPopWindow(); if (temp == btnCancel) { newtFormDestroy(form); RETURN_int(-1); } strncpy(szDestText, newtEntryGetValue(editText), size-1); *(szDestText+size-1) = '\0'; if (*szDestText == 0) msgBoxError(i18n("Text cannot be empty")); newtFormDestroy(form); } return 0; } // ======================================================= int CInterfaceNewt::askLogin(char *szLogin, char *szPasswd, WORD size) { newtComponent editLoginText; newtComponent editPasswdText; newtComponent labelLoginText; newtComponent labelPasswdText; newtComponent form; newtComponent btnOk; newtComponent btnCancel; newtComponent temp; int nOk = 0; while (!nOk) { newtCenteredWindow(65, 20, i18n("Password required")); labelLoginText = newtTextbox(1, 5, 60, 1, 0); newtTextboxSetText(labelLoginText, i18n("Enter your login")); editLoginText = newtEntry(1, 6, "", 55, NULL, NEWT_ENTRY_SCROLL); labelPasswdText = newtTextbox(1, 9, 60, 1, 0); newtTextboxSetText(labelPasswdText, i18n("Enter your password")); editPasswdText = newtEntry(1, 10, "", 55, NULL, NEWT_FLAG_HIDDEN); btnOk = newtButton(15, 14, i18n("Ok")); btnCancel = newtButton(40, 14, i18n("Cancel")); form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, labelLoginText, editLoginText, labelPasswdText, editPasswdText, btnOk, btnCancel, NULL); temp = newtRunForm(form); newtPopWindow(); if (temp == btnCancel) { newtFormDestroy(form); RETURN_int(-1); } strncpy(szLogin, newtEntryGetValue(editLoginText), size-1); *(szLogin+size-1) = '\0'; strncpy(szPasswd, newtEntryGetValue(editPasswdText), size-1); *(szPasswd+size-1) = '\0'; if (!(*szLogin) || !(*szPasswd)) msgBoxError(i18n("Text cannot be empty")); else nOk = 1; newtFormDestroy(form); } return 0; } // ======================================================= WORD CInterfaceNewt::askNewPath(char * szOrigFilename, DWORD dwVolume, char * szPath, char * szNewPath, WORD size) { char szMess[2048]; SNPRINTF(szMess, i18n("Disk full! Can't write next volume file " "(%s.%.3d)\nto %s\nPlease, enter another directory path " "(without filename):"), szOrigFilename, dwVolume, szPath); //*(szMess+2047) = '\0'; return askText(szMess, i18n("New Volume location"), szNewPath, size); } partimage-0.6.8/src/client/interface_none.cpp0000644000000000000000000001146611252653177017745 0ustar rootroot/*************************************************************************** interface_none.h - description ------------------- begin : Sun 6 Apr 2003 copyright : (C) 2003 by Ian Jackson email : ian@davenant.greenend.org.uk ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #include #include #include #include #include "interface_none.h" CInterfaceNone::CInterfaceNone(char *a_optstring) : CInterface(true) { optstring= a_optstring; count= 0; char *where= optstring; while (*where) { char *semicolon= strchr(where,';'); if (semicolon) *semicolon= 0; char *equals= strchr(where,'='); if (!equals) { fprintf(stderr,"partimage: no equals in `%s'\n",where); invalid_programmed_response(); } *equals= 0; count++; if (!semicolon) return; where= semicolon+1; } } void CInterfaceNone::invalid_programmed_response() { fprintf(stderr,"partimage: invalid programmed response.\n"); flusherr(); exit(8); } char *CInterfaceNone::lookup(char *title, char *text, char *deflt) { char *globfor= (char*)malloc(strlen(title) + strlen(text) + 5); if (!globfor) { perror("malloc for lookup"); exit(16); } sprintf(globfor, "%s/%s", title, text); char *where= optstring; char *value; while (count) { value= where + strlen(where) + 1; if (!fnmatch(where,globfor,0)) { free(globfor); return value; } where= value + strlen(value) + 1; count--; } free(globfor); if (deflt) return deflt; fprintf(stderr,"partimage: %s (%s) no default\n", title, text); exit(8); } void CInterfaceNone::flusherr() { if (ferror(stderr) || fflush(stderr)) exit(16); } void CInterfaceNone::message_only(char *kind, char *title, char *format, va_list al, char *result) { fprintf(stderr,"partimage: %s [%s]\npartimage: ", title, kind); vfprintf(stderr,format,al); fputc('\n',stderr); if (result) fprintf(stderr,"partimage: => %s\n",result); flusherr(); } #define MB_1(KInd,Kind) \ void CInterfaceNone::msgBox##KInd(char *title, char *text, ...) { \ va_list al; \ va_start(al,text); \ message_only(#Kind, title, text, al, 0); \ va_end(al); \ } MB_1(Ok,OK) MB_1(Cancel,Cancel) void CInterfaceNone::msgBoxError(char *title, ...) { va_list al; va_start(al,title); vfprintf(stderr,title,al); fputc('\n',stderr); va_end(al); } #define MB_2(One,Other,ONE,OTHER) \ int CInterfaceNone::msgBox##One##Other(char *title, char *text, ...) { \ char *result= lookup(title,text,"(unspecified)"); \ va_list al; \ va_start(al,text); \ message_only(#One "/" #Other, title, text, al, result); \ va_end(al); \ if (!strcasecmp(result,#One)) return MSGBOX_##ONE; \ if (!strcasecmp(result,#Other)) return MSGBOX_##OTHER; \ invalid_programmed_response(); \ return 0; \ } MB_2(Continue,Cancel,CONTINUE,CANCEL) MB_2(Yes,No,YES,NO) void CInterfaceNone::showErrorInternal(char *text) { fprintf(stderr,"partimage: internal error: %s\n", text); flusherr(); } void CInterfaceNone::askDescription(char * szDescription, DWORD size) { askText("Description","Description",szDescription,size); } int CInterfaceNone::askText(char *message, char *title, char *resbuf, WORD size) { char *result= lookup(title,message,0); if (strlen(result) >= size) { fprintf(stderr,"partimage: %s (%s) too long (>%lu)\n", title, message, (unsigned long)size); exit(12); } strcpy(resbuf,result); return 0; } void CInterfaceNone::StatusLine(char * str) { fprintf(stderr,"partimage: status: %s\n", str); flusherr(); } #define DONT(rt,what,args) \ rt CInterfaceNone::what args { \ fprintf(stderr,"partimage: " #what \ " not supported in CInterfaceNone\n"); \ exit(8); \ } DONT(int, askLogin, (char * szLogin, char * szPasswd, WORD size)) DONT(WORD, askNewPath, (char * szOriginalFilename, DWORD dwVolume, char * szPath, char *szNewPath, WORD size)) partimage-0.6.8/src/client/cbitmap.cpp0000644000000000000000000001072311252653177016400 0ustar rootroot/*************************************************************************** cbitmap.cpp - description ------------------- begin : Sun Jul 16 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include "misc.h" #include "cbitmap.h" #include "interface_newt.h" // ======================================================= CBlocksUseBitmap::CBlocksUseBitmap() { m_cBitmap = NULL; m_dwMaxUsedBlocksCopiedPerOper = 1; m_dwMaxFreeBlocksCopiedPerOper = 1; } // ======================================================= CBlocksUseBitmap::~CBlocksUseBitmap() { freeBitmap(); } // ======================================================= int CBlocksUseBitmap::setBit(DWORD dwBit, bool bState) { if (m_cBitmap == NULL) RETURN_int(-1); DWORD dwLocalBit; DWORD dwByte; dwLocalBit = dwBit % 8; dwByte = (dwBit - dwLocalBit) / 8; //printf ("dwBit=%ld ==> (byte,bit)=(%ld,%ld)\n", dwByte, dwLocalBit); // if we must set the bit if (bState == true) { SET_BIT(m_cBitmap[dwByte], dwLocalBit, 1); //m_cBitmap[dwByte] |= g_dwBit[dwLocalBit]; } else // if we must unset the bit { SET_BIT(m_cBitmap[dwByte], dwLocalBit, 0); //m_cBitmap[dwByte] &= ~g_dwBit[dwLocalBit]; } return 0; } // ======================================================= int CBlocksUseBitmap::init(DWORD dwBitmapSize) { BEGIN; // if memory already allocated if (m_cBitmap) RETURN_int(-1); m_dwBitmapSize = dwBitmapSize; m_cBitmap = new BYTE[dwBitmapSize+1]; if (m_cBitmap == NULL) { g_interface->msgBoxError(i18n("Out of memory")); RETURN_int(-1); } memset(m_cBitmap, 0, dwBitmapSize); RETURN_int(0); } // ======================================================= int CBlocksUseBitmap::freeBitmap() { BEGIN; if (m_cBitmap) // if memory was allocated { delete m_cBitmap; m_cBitmap = NULL; } RETURN_int(0); } // ======================================================= int CBlocksUseBitmap::fill(BYTE cValue) { BEGIN; DWORD i; DWORD dwMemSize; if (!m_cBitmap) // if memory was not allocated RETURN_int(-1); dwMemSize = m_dwBitmapSize / 8; for (i=0; i < dwMemSize; i++) m_cBitmap[i] = cValue; RETURN_int(0); } // ======================================================= BYTE* CBlocksUseBitmap::data() { return m_cBitmap; } // ======================================================= DWORD CBlocksUseBitmap::dataSize() { return m_dwBitmapSize; } // ======================================================= int CBlocksUseBitmap::readBitmap(DWORD dwPos, bool *bUsed, DWORD *dwBitsCount) { if (m_cBitmap == NULL) RETURN_int(-1); // is the next bit used or free ? *bUsed = isBitSet(dwPos++); *dwBitsCount = 1; // currently, 1 bit has been read // copy all the bits which are in the same state than the first one // TODO: use the real bits count in the bitmap insted of (8*m_dwBitmapSize) //showDebug(0, "m_dwMaxUsedBlocksCopiedPerOper=%lu\n",m_dwMaxUsedBlocksCopiedPerOper); //showDebug(0, "TTT: used=%d, state(+1)=%d,state(+2)=%d,state(+3)=%d\n",(int)*bUsed,(int)isBitSet(dwPos),isBitSet(dwPos+1),isBitSet(dwPos+2),isBitSet(dwPos+3)); // If we have used bits if (*bUsed) while ((dwPos < (8*m_dwBitmapSize)) && (*dwBitsCount < m_dwMaxUsedBlocksCopiedPerOper) && (isBitSet(dwPos) == true)) { (*dwBitsCount)++; dwPos++; } else // if free while ((dwPos < (8*m_dwBitmapSize)) && (*dwBitsCount < m_dwMaxFreeBlocksCopiedPerOper) && (isBitSet(dwPos) == false)) { (*dwBitsCount)++; dwPos++; } return 0; // success } partimage-0.6.8/src/client/buffer.cpp0000644000000000000000000001117011252653177016227 0ustar rootroot/*************************************************************************** buffer.cpp - description ------------------- begin : Wed Dec 13 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ // $Revision: 1.1.1.1 $ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include "buffer.h" #include "imagefile.h" #include "misc.h" #include "exceptions.h" // MULTITHREAD int g_nThreadState = 0; // is it the end of the operation pthread_t g_threadBuffer; bool g_bSpaceOnDisk = true; int g_nThreadError; // manage exceptions from the buffer thread (send them to the main thread) // for time report only DWORD g_dwTimeThreadUser = 0; DWORD g_dwTimeThreadSys = 0; // ======================================================= void procWriteBufferToImage(void *ptr) // Thread which will write data to image file { int nRes; char cBuf[BUFFER_BLOCK_SIZE]; DWORD dwRes; CParam *param; CImage *image; CImageBase *cid; param = (CParam *)ptr; image = param -> image; cid = image -> getImageDisk(); g_nDebugThreadBufferW = getpid(); g_nThreadState = THREAD_RUNNING; BEGIN; FILE *fStream; g_bSpaceOnDisk = true; g_nThreadError = 0; fStream = fdopen(param->nFd, "rb"); if (!fStream) { showDebug(1, "ERRORX\n"); //MBD } while (!feof(fStream)) { nRes = fread(cBuf, 1, sizeof(cBuf), fStream); if ((DWORD)nRes < sizeof(cBuf)) { showDebug(1, "EOF\n"); // MBD } dwRes = nRes; cid->write((void*)cBuf, dwRes, &nRes); // last param was updateCRC if (nRes) { if (nRes == ERR_INCOMPLETE) { g_bSpaceOnDisk = false; showDebug(1, "ERRORX: So space left\n"); } else { showDebug(1, "ERROR received from cid::write(): %d\n", nRes); g_nThreadError = nRes; } } } fclose(fStream); //close(nFd); RETURN; } // ======================================================= #define checkFinished(nFd) \ { \ if (g_nThreadState == THREAD_ASKEXIT)\ {\ showDebug(1, "EXIT procReadBufferFromImage inside while and g_nThreadState=THREAD_ASKEXIT\n");\ close(nFd);\ g_nThreadState = THREAD_FINISHED;\ RETURN;\ }\ } // ======================================================= void procReadBufferFromImage(void *ptr) // Thread which will read data from image file { char cBuf[BUFFER_BLOCK_SIZE]; DWORD dwRes; int nRes; CParam *param; CImage *image; CImageBase *cid; int nFd; param = (CParam *)ptr; image = param -> image; cid = image -> getImageDisk(); g_nDebugThreadBufferW = getpid(); nFd = param->nFd; BEGIN; g_nThreadState = THREAD_RUNNING; g_bSpaceOnDisk = true; g_nThreadError = 0; dwRes = 0; //g_nEss = 0; do { checkFinished(nFd); dwRes = cid->read((void*)cBuf, sizeof(cBuf)); if (dwRes != sizeof(cBuf)) showDebug(1, "EOF: dwRes=%lu and sizeof(cBuf)=%lu\n", dwRes, (DWORD)sizeof(cBuf)); checkFinished(nFd); //if (dwRes < sizeof(cBuf)) //showDebug(1, "EOF2: dwRes=%lu and total=%lu\n", dwRes, (DWORD)sizeof(cBuf)); if (dwRes > 0) { if (dwRes != sizeof(cBuf)) { showDebug(1, "unexpected end of file...\n"); showDebug(1, "%ld missing bytes\n", sizeof(cBuf)-dwRes); memset(cBuf+dwRes, 0, sizeof(cBuf)-dwRes); /* FIXME dwRes = sizeof(cBuf); */ } nRes = write(nFd, cBuf, dwRes); if (nRes == -1) { // MBD showDebug(1, "ERRORX\n"); } } else { showDebug(1, "cid->read() returned 0\n"); } } while ((dwRes == sizeof(cBuf))); // && (g_nThreadState != THREAD_ASKEXIT)); showDebug(1, "EXIT procReadBufferFromImage after while and g_nThreadState=%d\n", g_nThreadState); close(nFd); g_nThreadState = THREAD_EOF; //g_bFinished = false; RETURN; } partimage-0.6.8/src/client/buffer.h0000644000000000000000000000463611256747730015710 0ustar rootroot/*************************************************************************** buffer.h - description ------------------- begin : Web Dec 13 2000 copyright : (C) 2000 by Franck Ladurelle email : ladurelf@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _BUFFER_H_ #define _BUFFER_H_ #include #include #include #include #include "partimage.h" #include "misc.h" class CImage; // MULTITHREAD extern int g_nThreadState; // is it the end of the operation extern pthread_t g_threadBuffer; extern int g_nThreadError; extern bool g_bSpaceOnDisk; //extern pthread_mutex_t g_mutexBuffer; // lock the buffer while working inside it //extern pthread_mutexattr_t g_mutexBufferAttr; //extern sem_t g_semDataToProcess; // the procX() buffer thread has work to do //extern sem_t g_semSpaceInBuffer; // for time report only extern DWORD g_dwTimeThreadUser; extern DWORD g_dwTimeThreadSys; // function (work thread) which will write the buffer void procWriteBufferToImage(void *ptr); // function (work thread) to fill the buffer void procReadBufferFromImage(void *ptr); // Thread which will read data from image file #define BUFFER_SIZE 131072 #define BUFFER_BLOCK_SIZE 14336 #define ENDVOL_MARGIN 65536 #define SOME_SPACE (1*1024*1024) // 1 MB //#define COMPRESSED_BUFFER_SIZE (BUFFER_SIZE) //#define BUFFER_BLOCK_SIZE 4096 //#define NB_OBJECTS 400 #define THREAD_RUNNING 0 #define THREAD_ASKEXIT 1 #define THREAD_FINISHED 2 #define THREAD_EOF 3 // ======================================================= struct CParam { COptions options; CImage *image; int nFd; }; #endif // _BUFFER_H_ partimage-0.6.8/src/client/imagefile.h0000644000000000000000000000675411252653177016361 0ustar rootroot/*************************************************************************** imagefile.h - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef IMAGEFILE_H #define IMAGEFILE_H #include "partimage.h" #include "image_disk.h" #include "image_net.h" #include "buffer.h" class CSavingWindow; class CRestoringWindow; class CVolumeHeader; // ================================================ class CImage { private: CImageBase *m_cid; CSavingWindow *m_guiSave; CRestoringWindow *m_guiRestore; //CMTBuffer m_bufferMT; QWORD m_qwCRC; QWORD m_qwIdentificator; DWORD m_dwVolumeNumber; COptions m_options; FILE *m_fImageFile; gzFile *m_gzImageFile; BZFILE *m_bzImageFile; int m_nFdImage; // auto-mount options bool m_bIsMounted; char m_szMountDevice[MAXPATHLEN]; char m_szMountPoint[MAXPATHLEN]; char m_szMountFS[MAXPATHLEN]; public: CImage(COptions * options); ~CImage(); QWORD get_qwIdentificator() {return m_qwIdentificator;} QWORD get_qwCurrentVolumeSize(); DWORD get_dwVolumeNumber(); bool get_bIsOpened(); char * get_szImageFilename(); char * get_szOriginalFilename(); char * get_szPath(); QWORD get_qwCRC() { return m_qwCRC; } //CMTBuffer *getMTBuffer() {return &m_bufferMT;} CImageBase *getImageDisk() {return m_cid;} int openWritingFdDisk(); void set_dwVolumeNumber(DWORD n); void set_bIsOpened(bool n); void set_szPath(char * str); void set_szImageFilename(char * str); void set_szOriginalFilename(char * str); void set_szImageFilename(char * str, int n); void set_szOriginalFilename(char * str, int n); void set_qwCRC(QWORD n) {m_qwCRC = n;} void set_qwIdentificator(QWORD n); void set_options(COptions * options); public: // read/write void write(void *buf, DWORD dwLength, bool bUpdateCRC); // return 0 if error, or written bytes void read(char *buf, DWORD dwLength, bool bUpdateCRC); void writeSplit(); int getCompressionLevelForImage(char *szFilename); // open/close void openWriting(/*bool bInitThread = true*/); void openReading(CVolumeHeader *vh = NULL); void closeReading(bool bForceExit = false); void closeWriting(); // magic strings void readAndCheckMagic(char *szMagicString); void writeMagic(char *szMagicString); // CRCs void writeCRC(char *cData, DWORD dwDataLen); void readAndCheckCRC(char *cData, DWORD dwDataLen); // GUI void setGuiSave(CSavingWindow *gui) {m_guiSave = gui;} void setGuiRestore(CRestoringWindow *gui) {m_guiRestore = gui;} private: void splitChangeImageFileWrite(); void splitChangeImageFileRead(); int mountImageLocation(); int umountImageLocation(); }; #endif // IMAGEFILE_H partimage-0.6.8/src/client/interface_none.h0000644000000000000000000000477511252653177017417 0ustar rootroot/*************************************************************************** interface_none.h - description ------------------- begin : Sun 6 Apr 2003 copyright : (C) 2003 by Ian Jackson email : ian@davenant.greenend.org.uk ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef _INTERFACE_NONE_H_ #define _INTERFACE_NONE_H_ #include "partimage.h" #include "exceptions.h" #include "interface.h" // ======================================================= class CInterfaceNone : public CInterface { private: char *optstring; int count; public: CInterfaceNone(char *a_optstring); virtual ~CInterfaceNone() {} // we specialise everything in CInterface void msgBoxOk(char *szTitle, char *szText, ...); void msgBoxCancel(char *szTitle, char *szText, ...); void msgBoxError(char *szText, ...); int msgBoxYesNo(char *szTitle, char *szText, ...); int msgBoxContinueCancel(char *szTitle, char *szText, ...); void showErrorInternal(char *szText); int guiInitMainWindow(char * szDevice, char * szImageFile, char * szNetworkIP, DWORD * dwServerPort, bool * bSsl) {return 0;} void askDescription(char * szDescription, DWORD dwMaxLen); int askText(char * szMessage, char * szTitle, char * szDestText); int askText(char * szMessage, char * szTitle, char * szDestText, WORD size); int askLogin(char * szLogin, char * szPasswd, WORD size); WORD askRestore(char * szDevice, char * szImageFilename); void StatusLine(char * str); WORD askNewPath(char * szOriginalFilename, DWORD dwVolume, char * szPath, char *szNewPath, WORD size); private: void message_only(char *kind, char *title, char *format, va_list al, char *reslt); char *lookup(char *title, char *text, char *deflt); void invalid_programmed_response(); void flusherr(); }; #endif partimage-0.6.8/src/client/image_net.h0000644000000000000000000000650411252653177016360 0ustar rootroot/*************************************************************************** image_net.h - description ------------------- begin : Mon Aug 14 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef IMAGE_NET_H #define IMAGE_NET_H #include "image_base.h" #include "partimage.h" #include "errors.h" #include "messages.h" #include "netclient.h" #include // gzip compression #include // bzip2 compression #include // ================================================ class CImageNet : public CImageBase { public: CImageNet(COptions * options, bool bUseSSL); virtual ~CImageNet(); private: bool m_bIsOpened, m_bIsSplitted; char m_szPath[MAXPATHLEN], m_szOriginalFilename[MAXPATHLEN]; char m_szImageFilename[MAXPATHLEN]; pthread_mutex_t m_mutexNetwork; // lock the buffer while working inside it pthread_mutexattr_t m_mutexNetworkAttr; FILE * m_fImageFile; //gzFile * m_gzImageFile; //BZFILE * m_bzImageFile; private: void lock(int n); void unlock(); public: virtual bool get_bIsOpened(); virtual char * get_szImageFilename(); virtual char * get_szOriginalFilename(); virtual char * get_szPath(); virtual void set_bIsOpened(bool n); virtual void set_szPath(char * str); virtual void set_szImageFilename(char * str); virtual void set_szOriginalFilename(char * str); virtual void set_szImageFilename(char * str, int n); virtual void set_szOriginalFilename(char * str, int n); virtual void get_qwCurrentVolumeSize(QWORD *qwSize); virtual void set_options(COptions * options); private: CMessages * mess; CNetClient * netcl; public: // read/write virtual void write(void *vBuf, DWORD dwLength, int *nResult); //virtual void write(void *buf, DWORD dwLength); // return 0 if error, or written bytes virtual DWORD read(void *buf, DWORD dwLength); // return 0 if error, or read bytes // open/close virtual void openWriting(); virtual void openReading(); virtual void close(); virtual int mountImageLocation(char *, char *, char *); virtual int umountImageLocation(char *); // misc virtual void getFreeSpace(QWORD * qw_AvailDiskSpace); virtual bool doesFileExists(char *szPath); virtual void getDiskFreeSpaceForFile(QWORD *qwFreeSpace, char *szFilepath); virtual void getFileSize(QWORD *qwFileSpace, char *szFilepath); virtual void Connect(COptions *, char *, char *, char *, int); //virtual void get_qwCurVolSize(QWORD *qwFileSize); virtual int getCompressionLevelForImage(char *szFilename); }; #endif // IMAGE_NET_H partimage-0.6.8/src/client/cbitmap.h0000644000000000000000000000477111252653177016053 0ustar rootroot/*************************************************************************** misc.h - description ------------------- begin : Sun Jul 16 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef BITMAP_H #define BITMAP_H #include #include #include "partimage.h" //extern DWORD g_dwBit[]; #define BIT(x) (1 << (x)) #define GET_BIT(n, bit) (!!((n) & BIT(bit))) #define SET_BIT(n,bit,val) n = (val) ? (n | BIT(bit)) : (n & ~BIT(bit)) // ======================================================= class CBlocksUseBitmap { public: CBlocksUseBitmap(); ~CBlocksUseBitmap(); private: BYTE *m_cBitmap; DWORD m_dwBitmapSize; DWORD m_dwMaxUsedBlocksCopiedPerOper; DWORD m_dwMaxFreeBlocksCopiedPerOper; public: int setBit(DWORD dwBit, bool bState); inline int isBitSet(DWORD dwBit); int init(DWORD dwBitmapSize); int freeBitmap(); void setMaxUsedBlocksCopiedPerOper(DWORD dwMaxUsedBlocksCopiedPerOper) {m_dwMaxUsedBlocksCopiedPerOper = dwMaxUsedBlocksCopiedPerOper;} void setMaxFreeBlocksCopiedPerOper(DWORD dwMaxFreeBlocksCopiedPerOper) {m_dwMaxFreeBlocksCopiedPerOper = dwMaxFreeBlocksCopiedPerOper;} int readBitmap(DWORD dwPos, bool *bUsed, DWORD *dwBitsCount); int fill(BYTE cValue); BYTE *data(); DWORD dataSize(); //DWORD crc(QWORD qwClustersCount); }; // ======================================================= inline int CBlocksUseBitmap::isBitSet(DWORD dwBit) { if (m_cBitmap == NULL) return -1; DWORD dwLocalBit; DWORD dwByte; dwLocalBit = dwBit % 8; dwByte = (dwBit - dwLocalBit) / 8; return GET_BIT(m_cBitmap[dwByte], dwLocalBit); //return (!!(m_cBitmap[dwByte] & g_dwBit[dwLocalBit])); } #endif // BITMAP_H partimage-0.6.8/src/client/imginfo.h0000644000000000000000000000276011252653177016060 0ustar rootroot/*************************************************************************** imginfo.h - description ------------------- begin : Mon May 22 2000 copyright : (C) 2000 by François Dupoux email : fdupoux@partimage.org ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ #ifndef IMGINFO_H #define IMGINFO_H class CMainHeader; class CVolumeHeader; class CMbr; void imageInfoShowVolume(char *szText, int nMaxTextLen, CVolumeHeader *head, char *szImagefile, DWORD dwCompression, QWORD qwImageSize); void imageInfoShowRegular(char *szText, int nMaxTextLen, CMainHeader *head, char *szImagefile, DWORD dwCompression); void imageInfoShowMBR(char *szText, int nMaxTextLen, int i, CMbr *mbr); int showImgInfos(char *szImageFile, COptions *options); #endif // IMGINFO_H partimage-0.6.8/src/Makefile.in0000644000000000000000000003566611256751263015060 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = shared client server MAINTAINERCLEANFILES = Makefile.in all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 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. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 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 info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive 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: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive 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-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: partimage-0.6.8/ChangeLog0000644000000000000000000001343111256750571013761 0ustar rootroot0.6.8 (2009-09-24): - applied ufs patch from Reyk Floeter the patch fixes UFS mode (tested with OpenBSD FFS1 partitions). the fsbtodb() macro is the standard way to get the CG offset, see dumpfs(8) on the BSD of your choice. - Applied patch from gentoo: https://bugs.gentoo.org/show_bug.cgi?id=159556 - Applied patch from fedora: partimage-0.6.7-gcc44.patch - Applied patch from mandriva: partimage-0.6.7-inttypes.patch - Applied patch from mandriva: partimage-0.6.7-set-effective-gid.patch - Applied patch from mandriva: partimage-0.6.7-setegid.patch - Applied patches from mandriva: nologin and nossl - Added support for devmapper entries found in /proc/partitions - Applied patch from mandriva: partimage-0.6.7-save_file_and_rest_file_actions.patch 0.6.7 (2008-02-03): - applied amd64 patch from Andre Przywara - applied ext2/ext3 patch from the clonezilla team (Thomas Tsai) that fixes a bug when the "blocks per group" in ext2/ext3 is not 32768 - applied dont-discard-error-message-in-batch-mode.patch - applied gui.diff - applied thread-privilege-fix.patch - Michael Biebl (the debian maintainer) cleaned up the build system so that "make distcheck" and "make dist" finally pass 0.6.6 (2007-08-11): - applied patches from the clonezilla team (Thomas Tsai) to make partimage work better with stdin/stdout in batch mode: + more output info when using stdin/stdout in batch mode (-B gui=no). + if batch mode is on, volume=0 is automatically set. This will avoid partimage creating an output file "stdout.000", make it really use /dev/stdout + if batch mode is on, necessary device node will be created automatically. - updated the translation files - applied gentoo patch that fixes the insecure temporary file creation (Thanks to Pierre-Yves Rofes) 0.6.5 (2006-12-15): - applied gentoo patch "partimage-0.6.4-nodumbpermchecks.diff" (bug fixes) - applied gentoo patch "partimage-0.6.4-fixserverargs.diff" (bug fixes) - applied gentoo patch "partimage-0.6.4-lib64.patch" (bug fixes) - applied gentoo patch "partimage-0.6.4-fflush-before-re-read-partition-table.patch" (bug fixes) - applied gentoo patch "partimage-0.6.4-LP64-fixes.patch" (bug fixes) - applied gentoo patch "save-all-restore-all-actions" (trivial feature) - applied several debian patches - added man files from debian in "doc/en/man" - added detection of Reiser4 File system - removed compilation warnings 0.6.4 (2004-02-08): - change restoration message according to -S switch - fixed a conflict between -S and -b - renamed beta15 as final - fixed a forgot conflict between -z2 and -b - renamed beta15 as final - fixed a forgot conflict between -z2 and -b - da & fi translations updated 0.6.3: (2004-01-15): - added a missing #ifdef MUST_LOGIN - removed ftruncate call - removed signal stuff - switched off simulation mode by default - translations updated - fixed a bug in restore operation - removed unsupported FS error message in batch mode - da, pt, fr translations updated - merge with partimage_0.6.2.final-8.diff code from Debian - error messages improved - several memleak fixed in partimaged - eject option removed: use /proc/dev/cdrom/autoeject - fully-batch mode patch applied - automount feature improved - reverted /dev automount if devfs support is enabled but no devfs is mounted - eject option added 0.6.2 (2002-11-19): - added NL translation - translations updated - minor bug fixes - temp space file error management improved - adjusted shutdown/poweroff/reboot path - separated fschk error message in 3 messages - batch mode fixed - added FI translation - added SK translation - merge with partimage_0.6.1-27.diff from Debian - add PAM support 0.6.1 (2001-11-21): - NTFS bugfixes: endianess conversion error - FAT12 bug detection with LS120 - FAT support error - BeFS detection - bug fixed: cannot cancel the copy with * 0.6.0 (2001-10-18): - Network support with SSL encryption: there are two versions (server and clients). For example, you can save the image of a computer on the disk of another computer. - The multi-thread copy: it increases the speed of the copy. - Copy optimisations: several blocks are copied in a single operation. This dramatically increases the speed of the copy. - The batch mode, which allows for unattended operation (no questions, no forms, no message boxes) - Many new other options (For example, partimage can exit automatically on finish) - New debug log file: it will make debugging easier - Support of ReiserFS-3.6 (provided with kernel-2.4) New image file format to have a better error detection, a new source code kernel, to save the MBR - The MBR is saved, and can be restored (it contains the boot loader and the partition table) - Support for big imagefiles (>2GB) - LS120 now supported - manpages added - partimaged runs as user "partimag" instead of root - Polish translation added - bug fixes - port is now 4025 (assigned by IANA) 0.3.5: (2000-10-09) - Bug fixes, HPFS support 0.3.4 (2000-10-01) - Bug fixes, italian translation, debian files for packaging 0.3.3 (2000-09-20) - Bug fixes, Documentation, New "halt or reboot when operation finished" option, internationalisation, French translation 0.3.2 (2000-09-12): - Bug fixes (NTFS and Splitting), creation of a partimage-debug.log file to help debugging. 0.3.1 (2000-09-06): - Bug fixes, compression level auto-detected at restore, beginning of the NTFS support 0.3.0 (2000-08-27): - New semi-graphical interface based on newt (which can be run under a console), bug fixes 0.2.4 (2000-08-21): - ReiserFS file system support, File system auto-detection 0.2.3 (2000-08-14): - Bug fixes, removed the 2 GB partition size limitation 0.2.2 (2000-07-25): - FAT16 and FAT32 support, new source code organisation, bug fixes, 2 GB limit check, new options 0.2.1: (2000-06-04) - Split image support, bug fixes, size check, new options 0.2.0: (2000-06-01) - First working version partimage-0.6.8/README.partimaged0000644000000000000000000000356711252653200015177 0ustar rootroot Partition Image Daemon ----------------------------- begin : ven avr 23 18:58:17 CEST 1999 copyright : (C) 1999 by François Dupoux WEB: http://www.partimage.org/ AUTHOR: François Dupoux MAIL: fdupoux@partimage.org AUTHOR: Franck Ladurelle MAIL: ladurelf@partimage.org 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. See README for informations on Partition Image. Partimaged is still in alpha version. Use at your risks on production station or server. Partimaged was developped to provide Partition Image accros network. For now, it can only handle up to ten remote connection and is very slow. It can be a serious hole in your network if not used behind a firewall since it can access ANY file with root rigths. To use, your just need to run it. By default, it listens on port 4025. To use SSL, you need a certificate file and a private key file for this certificate. You can use your own files or generate them with `make certificates' after compiling and installing partimage/partimaged: use the following instructions: ./configure ..what you want.. --with-ssl make make install make certificates. The certificate files, must be installed in the directory containing partimaged.They are named partimaged.cert for the certificate and partimaged.key for the private key of the certificate. You have to edit partimagedusers to add all users you want to be able to connect partimaged. Refer to FAQ or man partimagedusers to understand its format. partimage-0.6.8/partimage.lsm0000644000000000000000000000153211256752126014672 0ustar rootrootBegin3 Title: partimage Version: 0.6.8 Entered-date: 24SEP2009 Description: saves used blocks of a partition to a compressed image file. It is very useful to backup all data of a system. Then you can restore it on virus, crash, error... You can also use this utility to install many computers with the same software. Then, instead of doing the same work a lot of times, just install a computer, and create an image of it. Then, you just have to restore the image file on others computers. Keywords: image,file,ext2,ext2fs,ext3,ext3fs,reiserfs,jfs,fat,fat16,fat32,ntfs,hpfs,xfs,partition,MBR,dump Author: Francois Dupoux, Franck Ladurelle Home-page: http://www.partimage.org/ Platforms: Linux Copying-policy: GNU GPL2 (General Public License 2) End partimage-0.6.8/FUTURE0000644000000000000000000000106011252653200013122 0ustar rootroot* if imagefile is damaged, ask user to zero the problem place, keep old blocks, overwrite with damaged blocks. in all cases, filesystem will have to be checked. * do same thing if harddrive is damaged * outputs on CD-R/CD-RW * outputs on tape * outputs on zip device with auto mount/umount * dump partition over other partition without creating imagefile * support multicast * supprt IPv6 * add filesystems BSD FFS IBM JFS SGI XFS Solaris UFS/sunx86 * support for TLS * support capabilities (at least under Linux) to improve security partimage-0.6.8/config.sub0000755000000000000000000010115311256751264014171 0ustar rootroot#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-16' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: partimage-0.6.8/m4/0000777000000000000000000000000011256751521012525 5ustar rootrootpartimage-0.6.8/m4/wint_t.m40000644000000000000000000000130411252653176014270 0ustar rootroot# wint_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) partimage-0.6.8/m4/intmax.m40000644000000000000000000000174611252653176014276 0ustar rootroot# intmax.m4 serial 2 (gettext-0.14.2) dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE(HAVE_INTMAX_T, 1, [Define if you have the 'intmax_t' type in or .]) fi ]) partimage-0.6.8/m4/nls.m40000644000000000000000000000353011252653176013563 0ustar rootroot# nls.m4 serial 2 (gettext-0.14.3) dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-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) ]) AC_DEFUN([AM_MKINSTALLDIRS], [ dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])]) dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly dnl find the mkinstalldirs script in another subdir but $(top_srcdir). dnl Try to locate it. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then case "$ac_aux_dir" in /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; esac fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) ]) partimage-0.6.8/m4/uintmax_t.m40000644000000000000000000000207611252653176015003 0ustar rootroot# uintmax_t.m4 serial 9 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE(HAVE_UINTMAX_T, 1, [Define if you have the 'uintmax_t' type in or .]) fi ]) partimage-0.6.8/m4/codeset.m40000644000000000000000000000135111252653176014414 0ustar rootroot# codeset.m4 serial AM1 (gettext-0.10.40) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) partimage-0.6.8/m4/glibc2.m40000644000000000000000000000135411252653176014133 0ustar rootroot# glibc2.m4 serial 1 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, ac_cv_gnu_library_2, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2=yes, ac_cv_gnu_library_2=no) ] ) AC_SUBST(GLIBC2) GLIBC2="$ac_cv_gnu_library_2" ] ) partimage-0.6.8/m4/lib-link.m40000644000000000000000000005542611252653176014503 0ustar rootroot# lib-link.m4 serial 6 (gettext-0.14.3) dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ(2.50) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 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/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) partimage-0.6.8/m4/lcmessage.m40000644000000000000000000000240411252653176014731 0ustar rootroot# lcmessage.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi ]) partimage-0.6.8/m4/ChangeLog0000644000000000000000000000523711252653176014305 0ustar rootroot2006-04-22 gettextize * codeset.m4: Upgrade to gettext-0.14.4. * gettext.m4: Upgrade to gettext-0.14.4. * glibc2.m4: New file, from gettext-0.14.4. * glibc21.m4: Upgrade to gettext-0.14.4. * iconv.m4: Upgrade to gettext-0.14.4. * intdiv0.m4: Upgrade to gettext-0.14.4. * intmax.m4: Upgrade to gettext-0.14.4. * inttypes.m4: Upgrade to gettext-0.14.4. * inttypes_h.m4: Upgrade to gettext-0.14.4. * inttypes-pri.m4: Upgrade to gettext-0.14.4. * isc-posix.m4: Upgrade to gettext-0.14.4. * lcmessage.m4: Upgrade to gettext-0.14.4. * lib-ld.m4: Upgrade to gettext-0.14.4. * lib-link.m4: Upgrade to gettext-0.14.4. * lib-prefix.m4: Upgrade to gettext-0.14.4. * longdouble.m4: Upgrade to gettext-0.14.4. * longlong.m4: Upgrade to gettext-0.14.4. * nls.m4: Upgrade to gettext-0.14.4. * po.m4: Upgrade to gettext-0.14.4. * printf-posix.m4: Upgrade to gettext-0.14.4. * progtest.m4: Upgrade to gettext-0.14.4. * signed.m4: Upgrade to gettext-0.14.4. * size_max.m4: Upgrade to gettext-0.14.4. * stdint_h.m4: Upgrade to gettext-0.14.4. * uintmax_t.m4: Upgrade to gettext-0.14.4. * ulonglong.m4: Upgrade to gettext-0.14.4. * wchar_t.m4: Upgrade to gettext-0.14.4. * wint_t.m4: Upgrade to gettext-0.14.4. * xsize.m4: Upgrade to gettext-0.14.4. * Makefile.am (EXTRA_DIST): Add the new files. 2005-05-21 gettextize * codeset.m4: New file, from gettext-0.14.1. * gettext.m4: New file, from gettext-0.14.1. * glibc21.m4: New file, from gettext-0.14.1. * iconv.m4: New file, from gettext-0.14.1. * intdiv0.m4: New file, from gettext-0.14.1. * intmax.m4: New file, from gettext-0.14.1. * inttypes.m4: New file, from gettext-0.14.1. * inttypes_h.m4: New file, from gettext-0.14.1. * inttypes-pri.m4: New file, from gettext-0.14.1. * isc-posix.m4: New file, from gettext-0.14.1. * lcmessage.m4: New file, from gettext-0.14.1. * lib-ld.m4: New file, from gettext-0.14.1. * lib-link.m4: New file, from gettext-0.14.1. * lib-prefix.m4: New file, from gettext-0.14.1. * longdouble.m4: New file, from gettext-0.14.1. * longlong.m4: New file, from gettext-0.14.1. * nls.m4: New file, from gettext-0.14.1. * po.m4: New file, from gettext-0.14.1. * printf-posix.m4: New file, from gettext-0.14.1. * progtest.m4: New file, from gettext-0.14.1. * signed.m4: New file, from gettext-0.14.1. * size_max.m4: New file, from gettext-0.14.1. * stdint_h.m4: New file, from gettext-0.14.1. * uintmax_t.m4: New file, from gettext-0.14.1. * ulonglong.m4: New file, from gettext-0.14.1. * wchar_t.m4: New file, from gettext-0.14.1. * wint_t.m4: New file, from gettext-0.14.1. * xsize.m4: New file, from gettext-0.14.1. * Makefile.am: New file. partimage-0.6.8/m4/inttypes-pri.m40000644000000000000000000000200211252653176015427 0ustar rootroot# inttypes-pri.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_REQUIRE([gt_HEADER_INTTYPES_H]) if test $gt_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], gt_cv_inttypes_pri_broken, [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, [Define if exists and defines unusable PRI* macros.]) fi ]) partimage-0.6.8/m4/stdint_h.m40000644000000000000000000000157311252653176014610 0ustar rootroot# stdint_h.m4 serial 5 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_stdint_h=yes, gl_cv_header_stdint_h=no)]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) partimage-0.6.8/m4/printf-posix.m40000644000000000000000000000266111252653176015435 0ustar rootroot# printf-posix.m4 serial 2 (gettext-0.13.1) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no", gt_cv_func_printf_posix="guessing yes") ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE(HAVE_POSIX_PRINTF, 1, [Define if your printf() function supports format strings with positions.]) ;; esac ]) partimage-0.6.8/m4/lib-ld.m40000644000000000000000000000653111252653176014136 0ustar rootroot# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) partimage-0.6.8/m4/signed.m40000644000000000000000000000115411252653176014240 0ustar rootroot# signed.m4 serial 1 (gettext-0.10.40) dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([bh_C_SIGNED], [ AC_CACHE_CHECK([for signed], bh_cv_c_signed, [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) if test $bh_cv_c_signed = no; then AC_DEFINE(signed, , [Define to empty if the C compiler doesn't support this keyword.]) fi ]) partimage-0.6.8/m4/longdouble.m40000644000000000000000000000205311252653176015120 0ustar rootroot# longdouble.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the compiler supports the 'long double' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_LONGDOUBLE], [ AC_CACHE_CHECK([for long double], gt_cv_c_long_double, [if test "$GCC" = yes; then gt_cv_c_long_double=yes else AC_TRY_COMPILE([ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; ], , gt_cv_c_long_double=yes, gt_cv_c_long_double=no) fi]) if test $gt_cv_c_long_double = yes; then AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) fi ]) partimage-0.6.8/m4/iconv.m40000644000000000000000000000642611252653176014114 0ustar rootroot# iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) partimage-0.6.8/m4/size_max.m40000644000000000000000000000364511252653176014615 0ustar rootroot# size_max.m4 serial 2 dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS(stdint.h) dnl First test whether the system already has SIZE_MAX. AC_MSG_CHECKING([for SIZE_MAX]) result= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], result=yes) if test -z "$result"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', dnl which is guaranteed to work from LONG_MIN to LONG_MAX. _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, [#include ], result=?) _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, [#include ], result=?) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], result=?) if test "$fits_in_uint" = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], fits_in_uint=0) fi if test -z "$result"; then if test "$fits_in_uint" = 1; then result="$res_hi$res_lo"U else result="$res_hi$res_lo"UL fi else dnl Shouldn't happen, but who knows... result='~(size_t)0' fi fi AC_MSG_RESULT([$result]) if test "$result" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) partimage-0.6.8/m4/Makefile.am0000644000000000000000000000057711252653176014571 0ustar rootrootEXTRA_DIST = glibc2.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 MAINTAINERCLEANFILES = Makefile.in partimage-0.6.8/m4/xsize.m40000644000000000000000000000064511252653176014135 0ustar rootroot# xsize.m4 serial 3 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS(stdint.h) ]) partimage-0.6.8/m4/glibc21.m40000644000000000000000000000144511252653176014215 0ustar rootroot# glibc21.m4 serial 3 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) partimage-0.6.8/m4/Makefile.in0000644000000000000000000002335611256751263014602 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = glibc2.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 MAINTAINERCLEANFILES = Makefile.in all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu m4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 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 info: info-am info-am: install-data-am: install-dvi: install-dvi-am 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 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: partimage-0.6.8/m4/gettext.m40000644000000000000000000005166711252653176014471 0ustar rootroot# gettext.m4 serial 37 (gettext-0.14.4) dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], [no], [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AM_NLS ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. dnl Add a version number to the cache macros. define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE(HAVE_DCGETTEXT, 1, [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATOBJEXT) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST(INTLOBJS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST(INTLLIBS) dnl Make all documented variables known to autoconf. AC_SUBST(LIBINTL) AC_SUBST(LTLIBINTL) AC_SUBST(POSUB) ]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([bh_C_SIGNED])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ __fsetlocking]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(feof_unlocked, [#include ]) gt_CHECK_DECL(fgets_unlocked, [#include ]) gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_ICONV AM_LANGINFO_CODESET if test $ac_cv_header_locale_h = yes; then gt_LC_MESSAGES fi if test -n "$INTL_MACOSX_LIBS"; then CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], gt_cv_func_CFPreferencesCopyAppValue, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) partimage-0.6.8/m4/inttypes_h.m40000644000000000000000000000162311252653176015156 0ustar rootroot# inttypes_h.m4 serial 6 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no)]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) partimage-0.6.8/m4/wchar_t.m40000644000000000000000000000132611252653176014417 0ustar rootroot# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) partimage-0.6.8/m4/intdiv0.m40000644000000000000000000000334011252653176014343 0ustar rootroot# intdiv0.m4 serial 1 (gettext-0.11.3) dnl Copyright (C) 2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ AC_TRY_RUN([ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, [ # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac ]) ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, [Define if integer division by zero raises signal SIGFPE.]) ]) partimage-0.6.8/m4/isc-posix.m40000644000000000000000000000170611252653176014710 0ustar rootroot# isc-posix.m4 serial 2 (gettext-0.11.2) dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. # This test replaces the one in autoconf. # Currently this macro should have the same name as the autoconf macro # because gettext's gettext.m4 (distributed in the automake package) # still uses it. Otherwise, the use in gettext.m4 makes autoheader # give these diagnostics: # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX undefine([AC_ISC_POSIX]) AC_DEFUN([AC_ISC_POSIX], [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) partimage-0.6.8/m4/inttypes.m40000644000000000000000000000147211252653176014651 0ustar rootroot# inttypes.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists and doesn't clash with # . AC_DEFUN([gt_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, [ AC_TRY_COMPILE( [#include #include ], [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) ]) if test $gt_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists and doesn't clash with .]) fi ]) partimage-0.6.8/m4/progtest.m40000644000000000000000000000555011252653176014642 0ustar rootroot# progtest.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ(2.50) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL(ac_cv_path_$1, [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$]$1) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) partimage-0.6.8/m4/ulonglong.m40000644000000000000000000000161511252653176014775 0ustar rootroot# ulonglong.m4 serial 4 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], [unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) partimage-0.6.8/m4/longlong.m40000644000000000000000000000141611252653176014607 0ustar rootroot# longlong.m4 serial 5 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_LONG_LONG if 'long long' works. AC_DEFUN([gl_AC_TYPE_LONG_LONG], [ AC_CACHE_CHECK([for long long], ac_cv_type_long_long, [AC_TRY_LINK([long long ll = 1LL; int i = 63;], [long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll;], ac_cv_type_long_long=yes, ac_cv_type_long_long=no)]) if test $ac_cv_type_long_long = yes; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) fi ]) partimage-0.6.8/m4/lib-prefix.m40000644000000000000000000001231011252653176015024 0ustar rootroot# lib-prefix.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_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/lib" 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/lib"; 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/lib"; 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" ]) partimage-0.6.8/m4/po.m40000644000000000000000000004364311252653176013416 0ustar rootroot# po.m4 serial 7 (gettext-0.14.3) dnl Copyright (C) 1995-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AM_NLS])dnl dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl 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 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 This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU msgfmt. if test "$GMSGFMT" != ":"; then dnl If it is no GNU msgfmt we define it as : so that the dnl Makefiles still can work. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` AC_MSG_RESULT( [found $GMSGFMT program is not GNU msgfmt; ignore it]) GMSGFMT=":" fi fi dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $XGETTEXT --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 : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po fi AC_OUTPUT_COMMANDS([ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. 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. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" < \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ $(opensslpath) rsa -in privkey.pem -out \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.key ;\ rm -f privkey.pem ;\ $(opensslpath) x509 -in $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr -out \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert \ -signkey $(DESTDIR)${sysconfdir}/partimaged/partimaged.key ;\ rm -f $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ else \ echo "SSL disabled, no certificate will be generated." ;\ fi pamfile: @echo "# PAM config file for Partimaged" > partimaged.pam @echo >> partimaged.pam @echo "auth required pam_unix.so" >> partimaged.pam @echo "auth required pam.warn.so" >> partimaged.pam @echo "auth required pam_listfile.so \\" >> partimaged.pam @echo " onerr=fail item=user sense=allow \\" >> partimaged.pam @echo " file=@SYSCONFDIR@/partimaged/partimagedusers" >> partimaged.pam @echo "Now you have to 'su root' and put partimaged.pam into" @echo "/etc/pam.d/partimaged" install-data-local: $(mkinstalldirs) $(DESTDIR)${sysconfdir} $(mkinstalldirs) $(DESTDIR)${sysconfdir}/partimaged if test ! -f $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ; then \ echo "# note: '#' introduces comments" > \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo -n "#add only users allowed to " >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "connect partimaged" >> ${sysconfdir}/partimaged/partimagedusers ;\ echo "# (only one login per line)" >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "" >> $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "#sample # user 'sample' is allowed to connect partimaged" >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true ;\ fi distclean-local: rm -rf autom4te.cache AUTOMAKE_OPTIONS = foreign MAINTAINERCLEANFILES = Makefile.in config.h.in configure stamp-h.in aclocal.m4\ install-sh missing depcomp ACLOCAL_AMFLAGS = -I m4 partimage-0.6.8/AUTHORS0000644000000000000000000000012711252653200013240 0ustar rootrootFrancois Dupoux (email on www.partimage.org) Franck Ladurelle partimage-0.6.8/Makefile.in0000644000000000000000000006036311256751264014262 0ustar rootroot# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008 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@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@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@ target_triplet = @target@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure ABOUT-NLS AUTHORS COPYING ChangeLog \ INSTALL THANKS TODO config.guess config.rpath config.sub \ depcomp install-sh ltmain.sh missing mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(docdir)" docDATA_INSTALL = $(INSTALL_DATA) DATA = $(doc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFAULT_DEBUG_LEVEL = @DEFAULT_DEBUG_LEVEL@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LOGDIR = @LOGDIR@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ NMEDIT = @NMEDIT@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PARTIMAGED_LDFLAGS = @PARTIMAGED_LDFLAGS@ PARTIMAGE_LDFLAGS = @PARTIMAGE_LDFLAGS@ PATH_SEPARATOR = @PATH_SEPARATOR@ POSUB = @POSUB@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ SYSCONFDIR = @SYSCONFDIR@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ 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@ opensslpath = @opensslpath@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target = @target@ target_alias = @target_alias@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = m4 po src doc_DATA = AUTHORS BUGS COPYING ChangeLog README README.partimaged TODO partimage.lsm EXTRA_DIST = config.rpath mkinstalldirs autogen.sh ABOUT-NLS BOOT-ROOT.txt \ FORMAT FUTURE INSTALL THANKS $(doc_DATA) AUTOMAKE_OPTIONS = foreign MAINTAINERCLEANFILES = Makefile.in config.h.in configure stamp-h.in aclocal.m4\ install-sh missing depcomp ACLOCAL_AMFLAGS = -I m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ cd $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" @list='$(doc_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ rm -f "$(DESTDIR)$(docdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) 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 $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ am__skip_length_check=: \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(docdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) 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-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-data-local install-docDATA install-dvi: install-dvi-recursive install-exec-am: install-html: install-html-recursive install-info: install-info-recursive install-man: install-pdf: install-pdf-recursive install-ps: install-ps-recursive 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: uninstall-docDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ distclean distclean-generic distclean-hdr distclean-libtool \ distclean-local distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-docDATA 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-recursive uninstall uninstall-am uninstall-docDATA certificates: if test -f $(opensslpath) ; then \ echo "generating certificate for partimage/partimaged ssl" ;\ $(mkinstalldirs) $(DESTDIR)${sysconfdir} ;\ $(mkinstalldirs) $(DESTDIR)${sysconfdir}/partimaged ;\ $(opensslpath) req -new -x509 -outform PEM > \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ $(opensslpath) rsa -in privkey.pem -out \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.key ;\ rm -f privkey.pem ;\ $(opensslpath) x509 -in $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr -out \ $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert \ -signkey $(DESTDIR)${sysconfdir}/partimaged/partimaged.key ;\ rm -f $(DESTDIR)${sysconfdir}/partimaged/partimaged.csr ;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.key || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimaged.cert || true;\ else \ echo "SSL disabled, no certificate will be generated." ;\ fi pamfile: @echo "# PAM config file for Partimaged" > partimaged.pam @echo >> partimaged.pam @echo "auth required pam_unix.so" >> partimaged.pam @echo "auth required pam.warn.so" >> partimaged.pam @echo "auth required pam_listfile.so \\" >> partimaged.pam @echo " onerr=fail item=user sense=allow \\" >> partimaged.pam @echo " file=@SYSCONFDIR@/partimaged/partimagedusers" >> partimaged.pam @echo "Now you have to 'su root' and put partimaged.pam into" @echo "/etc/pam.d/partimaged" install-data-local: $(mkinstalldirs) $(DESTDIR)${sysconfdir} $(mkinstalldirs) $(DESTDIR)${sysconfdir}/partimaged if test ! -f $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ; then \ echo "# note: '#' introduces comments" > \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo -n "#add only users allowed to " >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "connect partimaged" >> ${sysconfdir}/partimaged/partimagedusers ;\ echo "# (only one login per line)" >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "" >> $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ echo "#sample # user 'sample' is allowed to connect partimaged" >> \ $(DESTDIR)${sysconfdir}/partimaged/partimagedusers ;\ chmod 600 $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true;\ chown partimag:root $(DESTDIR)${sysconfdir}/partimaged/partimagedusers || true ;\ fi distclean-local: rm -rf autom4te.cache # 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: partimage-0.6.8/mkinstalldirs0000755000000000000000000000664711256751264015030 0ustar rootroot#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2006-05-11.19 # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: partimage-0.6.8/depcomp0000755000000000000000000004271311256751264013571 0ustar rootroot#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: partimage-0.6.8/configure0000755000000000000000000353072411256751261014127 0ustar rootroot#! /bin/sh # From configure.ac Revision: 1.4 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for partimage 0.6.8. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='partimage' PACKAGE_TARNAME='partimage' PACKAGE_VERSION='0.6.8' PACKAGE_STRING='partimage 0.6.8' PACKAGE_BUGREPORT='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB SED GREP EGREP LN_S ECHO AR RANLIB DSYMUTIL NMEDIT CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PARTIMAGE_LDFLAGS PARTIMAGED_LDFLAGS LOGDIR opensslpath DEFAULT_DEBUG_LEVEL SYSCONFDIR LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_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=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures partimage 0.6.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/partimage] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of partimage 0.6.8:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-nls do not use Native Language Support --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-rpath do not hardcode runtime library paths --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-largefile omit support for large files --enable-efence Enable linking with libefence Memory Debugger --disable-ssl Don't compile ssl mode --enable-devel Enable developpers options (debug, ...) --enable-pam Enable PAM to authenticate users --enable-all-static build static binaries --disable-login Clients needn't to login when connecting partimaged --disable-cheuid Server doesn't change euid to 'partimag' Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-ssl-headers=DIR SSL Include files location --with-ssl-lib=DIR SSL Library location --with-slang-headers=DIR SLang Include files location --with-log-dir=PATH logfiles /var/log --with-debug-level=X default debut level used to write the debug logfile 1 Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF partimage configure 0.6.8 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by partimage $as_me 0.6.8, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking target system type" >&5 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } if test "${ac_cv_target+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 echo "${ECHO_T}$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 echo "$as_me: error: invalid value of canonical target" >&2;} { (exit 1); exit 1; }; };; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' set x $ac_cv_target shift target_cpu=$1 target_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: target_os=$* IFS=$ac_save_IFS case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac # The aliases save the names the user supplied, while $host etc. # will get canonicalized. test -n "$target_alias" && test "$program_prefix$program_suffix$program_transform_name" = \ NONENONEs,x,x, && program_prefix=${target_alias}- am__api_version='1.10' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null 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 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi 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='partimage' VERSION='0.6.8' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF # Translations system MKINSTALLDIRS= if test -n "$ac_aux_dir"; then case "$ac_aux_dir" in /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; esac fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi rm -f messages.po # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGMERGE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 echo "${ECHO_T}$MSGMERGE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$GMSGFMT" != ":"; then if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } GMSGFMT=":" fi fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $XGETTEXT --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 : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi rm -f messages.po fi ac_config_commands="$ac_config_commands default-1" 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" DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${acl_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { echo "$as_me:$LINENO: result: $LD" >&5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${acl_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } if test "${acl_cv_rpath+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 echo "${ECHO_T}$acl_cv_rpath" >&6; } wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then enableval=$enable_rpath; : else enable_rpath=yes fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi fi LIBICONV= LTLIBICONV= INCICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 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/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFPreferencesCopyAppValue=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 _ACEOF fi { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFLocaleCopyCurrent=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFLOCALECOPYCURRENT 1 _ACEOF 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 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } LIBINTL= LTLIBINTL= POSUB= if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_gnugettext1_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_gnugettext1_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } if test "$gt_cv_func_gnugettext1_libc" != "yes"; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { echo "$as_me:$LINENO: checking for iconv" >&5 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } if test "${am_cv_func_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_lib_iconv=yes am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 echo "${ECHO_T}$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ICONV 1 _ACEOF fi if test "$am_cv_lib_iconv" = yes; then { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $LIBICONV" >&5 echo "${ECHO_T}$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi fi LIBINTL= LTLIBINTL= INCINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 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/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_gnugettext1_libintl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libintl=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext1_libintl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } fi if test "$gt_cv_func_gnugettext1_libc" = "yes" \ || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF else USE_NLS=no fi fi { echo "$as_me:$LINENO: checking whether to use NLS" >&5 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { echo "$as_me:$LINENO: result: $gt_source" >&5 echo "${ECHO_T}$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then { echo "$as_me:$LINENO: checking how to link with libintl" >&5 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $LIBINTL" >&5 echo "${ECHO_T}$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 cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_DCGETTEXT 1 _ACEOF fi POSUB=po fi INTLLIBS="$LIBINTL" # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # 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 { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$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 $lt_ac_count -gt 10 && 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 fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&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 { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$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 darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) 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 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) 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 Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 ;; 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 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 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 whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && 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 which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line 6277 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|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" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) 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" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) 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" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` 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 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw*) # 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; ;; 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; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # 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 ;; 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"; 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 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done teststring= # Add a significant safety factor because C++ compilers can tack on massive # amounts of additional arguments before passing them to the linker. # It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 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 # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, 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. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$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=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && 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 < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_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 "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir 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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' sed_quote_subst='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 avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # 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 openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&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 EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <&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 EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DSYMUTIL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 echo "${ECHO_T}$DSYMUTIL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_NMEDIT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { echo "$as_me:$LINENO: result: $NMEDIT" >&5 echo "${ECHO_T}$NMEDIT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } if test "${lt_cv_apple_cc_single_mod+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. echo "int foo(void){return 1;}" > conftest.c $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib ${wl}-single_module conftest.c if test -f libconftest.dylib; then lt_cv_apple_cc_single_mod=yes rm -rf libconftest.dylib* fi rm conftest.c fi fi { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } if test "${lt_cv_ld_exported_symbols_list+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_ld_exported_symbols_list=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } case $host_os in rhapsody* | darwin1.[0123]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; 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" != ":"; then _lt_dsymutil="~$DSYMUTIL \$lib || :" else _lt_dsymutil= fi ;; esac enable_dlopen=no enable_win32_dll=no # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= 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 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* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # 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:9329: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9333: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; 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= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) # 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' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; 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 ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # 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='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; 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 "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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' ;; 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' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # 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' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # 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='' ;; esac ;; esac ;; 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*) 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 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # 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:9619: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9623: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; 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 case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o=no $rm -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:9723: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:9727: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # 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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # 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 2>/dev/null` in *\ [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 "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) 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 # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; 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*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' 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/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 ;; 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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= 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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # 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; $echo \"$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' ;; 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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; 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 link_all_deplibs=no else ld_shlibs=no fi ;; netbsd* | netbsdelf*-gnu) 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 $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' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 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 ;; 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 can not *** 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$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 $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 if test "$ld_shlibs" = no; 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 "$GCC" = yes && 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 "$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 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 AIX nm, but means don't demangle with GNU 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")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | 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 # 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 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_libdir_separator=':' link_all_deplibs=yes if test "$GCC" = yes; 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 "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # 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_use_runtimelinking" = yes; 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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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 "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; 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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) 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 # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' 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 `echo "$deplibs" | $SED -e '\''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' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' 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 case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $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 $output_objdir/$soname = $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 "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${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 "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=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 "$GCC" = yes -a "$with_gnu_ld" = no; 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 ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${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' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi 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_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=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 "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: link_all_deplibs=yes ;; netbsd* | netbsdelf*-gnu) 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 ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 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 allow_undefined_flag=unsupported archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${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='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -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; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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 hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${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 ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else 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' 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 "$GCC" = yes; 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 "x$host_vendor" = xsequent; 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 "$GCC" = yes; 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 can NOT 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='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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 fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # 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 "$enable_shared" = yes && test "$GCC" = yes; 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 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:$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=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 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" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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` 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" else 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; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi shlibpath_var=LIBPATH fi ;; amigaos*) 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=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[3-9]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 # 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 # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux 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='NetBSD ld.elf_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 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=linux 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 ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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=freebsd-elf 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 hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct" != no && # 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 "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; 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 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac fi if test "x$enable_dlopen" != xyes; 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*) 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 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); /* 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_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); /* 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_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && 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" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; 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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; 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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$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 # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ compiler_lib_search_dirs \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ fix_srcfile_path \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # 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 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # 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 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # 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 and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # 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 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 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # 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 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_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 # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # 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" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= compiler_lib_search_dirs_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$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(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 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* # Allow CC to be a program name with arguments. lt_save_CC=$CC 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++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&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 { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_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 "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${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 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= 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. archive_cmds_CXX='$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 "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; 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 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 # need to do runtime linking. 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 ;; 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_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes if test "$GXX" = yes; 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_CXX=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_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # 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_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${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_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" if test "$GXX" = yes ; then output_verbose_link_cmd='echo' archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="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_CXX="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}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$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}" archive_expsym_cmds_CXX="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 case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $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) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$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; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${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 ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${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_CXX='$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_CXX='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++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -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. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-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. archive_cmds_CXX='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' archive_expsym_cmds_CXX='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; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # 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."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # 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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=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::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else ld_shlibs_CXX=no fi ;; osf3*) 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. archive_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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 "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; 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. archive_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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 "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=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?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # 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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$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. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -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 \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 -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 \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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. # 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. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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 ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" \ || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p 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 "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${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 "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$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 "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext compiler_lib_search_dirs_CXX= if test -n "$compiler_lib_search_path_CXX"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi # PORTME: override above test on systems where it is broken 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. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) # 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_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # 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_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; 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_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # 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*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+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_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-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_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # 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:14601: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14605: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works_CXX=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=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:14705: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14709: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_CXX=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi shlibpath_var=LIBPATH fi ;; amigaos*) 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=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[3-9]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 # 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 # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux 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='NetBSD ld.elf_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 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=linux 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 ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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=freebsd-elf 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 hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != no && # 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 "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ compiler_lib_search_dirs_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # 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_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld 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 else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # 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. # 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 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' fi ;; amigaos*) # 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_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; 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_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # 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_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-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_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # 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:16303: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:16307: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works_F77=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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_F77=yes fi else lt_cv_prog_compiler_static_works_F77=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=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:16407: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:16411: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_F77=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # 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_F77='_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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = yes; 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_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${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_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [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 "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_F77=no fi ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${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_F77='$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_F77='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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$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 link_all_deplibs_F77=no else ld_shlibs_F77=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $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_F77=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$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_F77=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_F77=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 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | 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 # 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 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_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes if test "$GCC" = yes; 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_F77=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_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # 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_F77=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$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. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${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_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=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_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_F77="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_F77="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 case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=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_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${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_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$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' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=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 "$GCC" = yes; then whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi shlibpath_var=LIBPATH fi ;; amigaos*) 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=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[3-9]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 # 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 # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux 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='NetBSD ld.elf_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 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=linux 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 ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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=freebsd-elf 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 hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != no && # 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 "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ compiler_lib_search_dirs_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ fix_srcfile_path_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # 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_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$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. # 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 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # 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:18627: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18631: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' fi ;; amigaos*) # 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_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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 ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; 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_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # 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_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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). ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-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_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; rdos*) lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # 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:18917: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18921: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_static_works_GCJ=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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_GCJ=yes fi else lt_cv_prog_compiler_static_works_GCJ=yes fi fi $rm -r conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=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:19021: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:19025: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_GCJ=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # 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_GCJ='_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= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = yes; 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_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${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_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [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 "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_GCJ=no fi ;; interix[3-9]*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${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_GCJ='$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_GCJ='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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$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 link_all_deplibs_GCJ=no else ld_shlibs_GCJ=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $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_GCJ=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$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_GCJ=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct_GCJ=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 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | 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 # 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 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_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes if test "$GCC" = yes; 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_GCJ=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_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # 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_GCJ=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${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_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=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_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_GCJ="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_GCJ="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 case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=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_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${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_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_GCJ=no fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$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' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=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 "$GCC" = yes; then whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_GCJ=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi shlibpath_var=LIBPATH fi ;; amigaos*) 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=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[3-9]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 # 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 # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux 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='NetBSD ld.elf_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 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=linux 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 ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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=freebsd-elf 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 hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" fi sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" fi sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != no && # 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 "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ compiler_lib_search_dirs_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ fix_srcfile_path_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # 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_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$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. # 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 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* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ compiler_lib_search_dirs_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ fix_srcfile_path_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # 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_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" 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 CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } if test "${ac_cv_lib_cposix_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_cposix_strerror=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_cposix_strerror=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } if test $ac_cv_lib_cposix_strerror = yes; then LIBS="$LIBS -lcposix" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi cat >>confdefs.h <<\_ACEOF #define _GNU_SOURCE 1 _ACEOF # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then enableval=$enable_largefile; fi if test "$enable_largefile" != no; then { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } if test "${ac_cv_sys_largefile_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC while :; do # IRIX 6.2 and later do not support large files by default, # so use the C compiler's -n32 option if that helps. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext CC="$CC -n32" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sys_largefile_CC=' -n32'; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } if test "${ac_cv_sys_file_offset_bits+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sys_file_offset_bits=no; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sys_file_offset_bits=64; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_file_offset_bits=unknown break done fi { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits _ACEOF ;; esac rm -f conftest* if test $ac_cv_sys_file_offset_bits = unknown; then { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } if test "${ac_cv_sys_large_files+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sys_large_files=no; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #define _LARGE_FILES 1 #include /* Check that off_t can represent 2**63 - 1 correctly. We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_sys_large_files=1; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_sys_large_files=unknown break done fi { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) cat >>confdefs.h <<_ACEOF #define _LARGE_FILES $ac_cv_sys_large_files _ACEOF ;; esac rm -f conftest* fi fi case "$target_os" in linux*) cat >>confdefs.h <<\_ACEOF #define OS_LINUX 1 _ACEOF { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_create (); int main () { return pthread_create (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_pthread_pthread_create=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthread_pthread_create=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } if test $ac_cv_lib_pthread_pthread_create = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" else { { echo "$as_me:$LINENO: error: *** pthread library (libpthread) not found" >&5 echo "$as_me: error: *** pthread library (libpthread) not found" >&2;} { (exit 1); exit 1; }; } fi ;; freebsd*) { echo "$as_me:$LINENO: WARNING: Partimage not yet fully ported to BSDish" >&5 echo "$as_me: WARNING: Partimage not yet fully ported to BSDish" >&2;} cat >>confdefs.h <<\_ACEOF #define OS_FBSD 1 _ACEOF CPPFLAGS="$CPPFLAGS -I../../intl -I/usr/local/include" CPPFLAGS="$CPPFLAGS -I../../src/client/fs" CPPFLAGS="$CPPFLAGS -I/usr/include/slang" PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -pthread" LIBS="$LIBS -L/usr/local/lib" ;; *) { { echo "$as_me:$LINENO: error: Unsupported system type $target_os" >&5 echo "$as_me: error: Unsupported system type $target_os" >&2;} { (exit 1); exit 1; }; } ;; esac # Check whether --enable-efence was given. if test "${enable_efence+set}" = set; then enableval=$enable_efence; efence_support=$enableval else efence_support=no fi if test "$efence_support" = "yes" ; then { echo "$as_me:$LINENO: checking for EF_Print in -lefence" >&5 echo $ECHO_N "checking for EF_Print in -lefence... $ECHO_C" >&6; } if test "${ac_cv_lib_efence_EF_Print+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lefence $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char EF_Print (); int main () { return EF_Print (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_efence_EF_Print=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_efence_EF_Print=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_EF_Print" >&5 echo "${ECHO_T}$ac_cv_lib_efence_EF_Print" >&6; } if test $ac_cv_lib_efence_EF_Print = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBEFENCE 1 _ACEOF LIBS="-lefence $LIBS" else { { echo "$as_me:$LINENO: error: *** efence library \ (libefence) not found" >&5 echo "$as_me: error: *** efence library \ (libefence) not found" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: checking for BZ2_bzopen in -lbz2" >&5 echo $ECHO_N "checking for BZ2_bzopen in -lbz2... $ECHO_C" >&6; } if test "${ac_cv_lib_bz2_BZ2_bzopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbz2 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char BZ2_bzopen (); int main () { return BZ2_bzopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_bz2_BZ2_bzopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_bz2_BZ2_bzopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzopen" >&6; } if test $ac_cv_lib_bz2_BZ2_bzopen = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBBZ2 1 _ACEOF LIBS="-lbz2 $LIBS" else { { echo "$as_me:$LINENO: error: *** bzip2 library (libbz2) not found or too old: version 1.0.0 or more recent is need" >&5 echo "$as_me: error: *** bzip2 library (libbz2) not found or too old: version 1.0.0 or more recent is need" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for newtCenteredWindow in -lnewt" >&5 echo $ECHO_N "checking for newtCenteredWindow in -lnewt... $ECHO_C" >&6; } if test "${ac_cv_lib_newt_newtCenteredWindow+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnewt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char newtCenteredWindow (); int main () { return newtCenteredWindow (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_newt_newtCenteredWindow=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_newt_newtCenteredWindow=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtCenteredWindow" >&5 echo "${ECHO_T}$ac_cv_lib_newt_newtCenteredWindow" >&6; } if test $ac_cv_lib_newt_newtCenteredWindow = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBNEWT 1 _ACEOF LIBS="-lnewt $LIBS" else { { echo "$as_me:$LINENO: error: *** newt library (libnewt) not found" >&5 echo "$as_me: error: *** newt library (libnewt) not found" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for gzwrite in -lz" >&5 echo $ECHO_N "checking for gzwrite in -lz... $ECHO_C" >&6; } if test "${ac_cv_lib_z_gzwrite+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gzwrite (); int main () { return gzwrite (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_z_gzwrite=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_z_gzwrite=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzwrite" >&5 echo "${ECHO_T}$ac_cv_lib_z_gzwrite" >&6; } if test $ac_cv_lib_z_gzwrite = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBZ 1 _ACEOF LIBS="-lz $LIBS" else { { echo "$as_me:$LINENO: error: *** gzip library (libz) not found" >&5 echo "$as_me: error: *** gzip library (libz) not found" >&2;} { (exit 1); exit 1; }; } fi CPPFLAGS="$CPPFLAGS -Wno-deprecated" # Check whether --enable-ssl was given. if test "${enable_ssl+set}" = set; then enableval=$enable_ssl; SSL=$enableval else SSL=yes fi # Check whether --with-ssl-headers was given. if test "${with_ssl_headers+set}" = set; then withval=$with_ssl_headers; SSL_HDR_DIR="$withval" CPPFLAGS="$CPPFLAGS -I$withval" fi # Check whether --with-ssl-lib was given. if test "${with_ssl_lib+set}" = set; then withval=$with_ssl_lib; LIBS="$LIBS -L$withval" fi # Check whether --with-slang-headers was given. if test "${with_slang_headers+set}" = set; then withval=$with_slang_headers; CPPFLAGS="$CPPFLAGS -I$withval" fi # Check whether --enable-devel was given. if test "${enable_devel+set}" = set; then enableval=$enable_devel; cat >>confdefs.h <<\_ACEOF #define DEVEL_SUPPORT 1 _ACEOF fi # Check whether --enable-pam was given. if test "${enable_pam+set}" = set; then enableval=$enable_pam; pamsupport=$enableval else pamsupport=no fi # Check whether --enable-all-static was given. if test "${enable_all_static+set}" = set; then enableval=$enable_all_static; allstatic=$enableval else allstatic=no fi if test "$allstatic" = "yes"; then PARTIMAGE_LDFLAGS="$PARTIMAGE_LDFLAGS -all-static" PARTIMAGED_LDFLAGS="$PARTIMAGED_LDFLAGS -all-static" LIBS="$LIBS /usr/lib/libslang.a /usr/lib/libnewt.a /usr/lib/libdl.a" if test "$SSL" = "yes"; then LIBS="$LIBS /usr/lib/libssl.a /usr/lib/libcrypto.a" fi fi for ac_header in fcntl.h strings.h limit.h malloc.h strings.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in pthread.h crypt.h shadow.h mntent.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/param.h sys/statfs.h sys/mount.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in getopt.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF else { echo "$as_me:$LINENO: WARNING: getopt.h not found: only short parameter can be used on cmdline" >&5 echo "$as_me: WARNING: getopt.h not found: only short parameter can be used on cmdline" >&2;} fi done { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_inline=$ac_kw else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_struct_tm=time.h else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } if test "${ac_cv_func_setpgrp_void+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} { (exit 1); exit 1; }; } else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* If this system has a BSD-style setpgrp which takes arguments, setpgrp(1, 1) will fail with ESRCH and return -1, in that case exit successfully. */ return setpgrp (1,1) != -1; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_setpgrp_void=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_setpgrp_void=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } if test $ac_cv_func_setpgrp_void = yes; then cat >>confdefs.h <<\_ACEOF #define SETPGRP_VOID 1 _ACEOF fi for ac_func in getwd strerror strdup atoll strtoll setpgid do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in fstat64 fstatfs64 open64 do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done # Check whether --with-log-dir was given. if test "${with_log_dir+set}" = set; then withval=$with_log_dir; LOGDIR=$with_log_dir else LOGDIR=/var/log fi { echo "$as_me:$LINENO: checking for char" >&5 echo $ECHO_N "checking for char... $ECHO_C" >&6; } if test "${ac_cv_type_char+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_char=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_char=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 echo "${ECHO_T}$ac_cv_type_char" >&6; } # 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. { echo "$as_me:$LINENO: checking size of char" >&5 echo $ECHO_N "checking size of char... $ECHO_C" >&6; } if test "${ac_cv_sizeof_char+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_char=$ac_lo;; '') if test "$ac_cv_type_char" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_char=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef char ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_char=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_char" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (char) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_char=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_CHAR $ac_cv_sizeof_char _ACEOF { echo "$as_me:$LINENO: checking for short" >&5 echo $ECHO_N "checking for short... $ECHO_C" >&6; } if test "${ac_cv_type_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_short=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_short=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 echo "${ECHO_T}$ac_cv_type_short" >&6; } # 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. { echo "$as_me:$LINENO: checking size of short" >&5 echo $ECHO_N "checking size of short... $ECHO_C" >&6; } if test "${ac_cv_sizeof_short+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_short=$ac_lo;; '') if test "$ac_cv_type_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_short=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef short ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_short=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_short" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (short) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_short=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF { echo "$as_me:$LINENO: checking for int" >&5 echo $ECHO_N "checking for int... $ECHO_C" >&6; } if test "${ac_cv_type_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_int=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 echo "${ECHO_T}$ac_cv_type_int" >&6; } # 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. { echo "$as_me:$LINENO: checking size of int" >&5 echo $ECHO_N "checking size of int... $ECHO_C" >&6; } if test "${ac_cv_sizeof_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_int=$ac_lo;; '') if test "$ac_cv_type_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef int ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_int=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_INT $ac_cv_sizeof_int _ACEOF { echo "$as_me:$LINENO: checking for long int" >&5 echo $ECHO_N "checking for long int... $ECHO_C" >&6; } if test "${ac_cv_type_long_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_long_int=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_long_int=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5 echo "${ECHO_T}$ac_cv_type_long_int" >&6; } # 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. { echo "$as_me:$LINENO: checking size of long int" >&5 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; } if test "${ac_cv_sizeof_long_int+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_long_int=$ac_lo;; '') if test "$ac_cv_type_long_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_long_int=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef long int ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_long_int=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_long_int" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (long int) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_long_int=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int _ACEOF { echo "$as_me:$LINENO: checking for unsigned long long" >&5 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_unsigned_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } # 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. { echo "$as_me:$LINENO: checking size of unsigned long long" >&5 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; } if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; '') if test "$ac_cv_type_unsigned_long_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long_long=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef unsigned long long ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_unsigned_long_long=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_unsigned_long_long" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (unsigned long long) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_unsigned_long_long=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long _ACEOF # Checks for header files. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi for ac_header in stdint.h stdlib.h stdio.h string.h strings.h getopt.h sys/types.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "$pamsupport" = "yes"; then { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; } if test "${ac_cv_lib_pam_pam_start+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpam $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pam_start (); int main () { return pam_start (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_pam_pam_start=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pam_pam_start=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; } if test $ac_cv_lib_pam_pam_start = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPAM 1 _ACEOF LIBS="-lpam $LIBS" else { { echo "$as_me:$LINENO: error: *** pam library (libpam) not found" >&5 echo "$as_me: error: *** pam library (libpam) not found" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBDL 1 _ACEOF LIBS="-ldl $LIBS" else { { echo "$as_me:$LINENO: error: *** dl library (libdl) not found" >&5 echo "$as_me: error: *** dl library (libdl) not found" >&2;} { (exit 1); exit 1; }; } fi cat >>confdefs.h <<\_ACEOF #define HAVE_PAM 1 _ACEOF fi if test "$SSL" = "yes"; then { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } # Extract the first word of "openssl", so it can be a program name with args. set dummy openssl; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_opensslpath+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $opensslpath in [\\/]* | ?:[\\/]*) ac_cv_path_opensslpath="$opensslpath" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_opensslpath="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi opensslpath=$ac_cv_path_opensslpath if test -n "$opensslpath"; then { echo "$as_me:$LINENO: result: $opensslpath" >&5 echo "${ECHO_T}$opensslpath" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test x$opensslpath = x ; then { echo "$as_me:$LINENO: WARNING: openssl is required for building partimaged certificates." >&5 echo "$as_me: WARNING: openssl is required for building partimaged certificates." >&2;} { echo "$as_me:$LINENO: WARNING: Use --disable-ssl if you don't want to install openssl." >&5 echo "$as_me: WARNING: Use --disable-ssl if you don't want to install openssl." >&2;} fi { echo "$as_me:$LINENO: checking for SSL Library and Header files ... ..." >&5 echo "$as_me: checking for SSL Library and Header files ... ..." >&6;} { echo "$as_me:$LINENO: checking \"for rsa.h crypto.h x509.h pem.h ssl.h err.h\"" >&5 echo $ECHO_N "checking \"for rsa.h crypto.h x509.h pem.h ssl.h err.h\"... $ECHO_C" >&6; } ac_hdr_found=no for p in $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include; do ac_file_found=yes for f in rsa.h crypto.h x509.h pem.h ssl.h err.h; do if test ! -f $p/$f; then ac_file_found=no break; fi done if test "$ac_file_found" = "yes" ; then ac_hdr_found=yes break else : fi done if test "$ac_hdr_found" = "yes" ; then CPPFLAGS="$CPPFLAGS -I$p" { echo "$as_me:$LINENO: result: ($p) yes " >&5 echo "${ECHO_T}($p) yes " >&6; } { echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5 echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6; } if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypto $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char CRYPTO_lock (); int main () { return CRYPTO_lock (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_crypto_CRYPTO_lock=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_crypto_CRYPTO_lock=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6; } if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then LIBS="$LIBS -lcrypto" else { { echo "$as_me:$LINENO: error: Required for SSL Crypto Library not found. " >&5 echo "$as_me: error: Required for SSL Crypto Library not found. " >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: checking for SSL_CTX_new in -lssl" >&5 echo $ECHO_N "checking for SSL_CTX_new in -lssl... $ECHO_C" >&6; } if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lssl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char SSL_CTX_new (); int main () { return SSL_CTX_new (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ssl_SSL_CTX_new=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ssl_SSL_CTX_new=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_CTX_new" >&6; } if test $ac_cv_lib_ssl_SSL_CTX_new = yes; then LIBS="$LIBS -lssl" cat >>confdefs.h <<\_ACEOF #define HAVE_SSL 1 _ACEOF else { { echo "$as_me:$LINENO: error: SSL Library not found. " >&5 echo "$as_me: error: SSL Library not found. " >&2;} { (exit 1); exit 1; }; } fi else { echo "$as_me:$LINENO: result: \"no\"" >&5 echo "${ECHO_T}\"no\"" >&6; } { { echo "$as_me:$LINENO: error: SSL Headers not found. " >&5 echo "$as_me: error: SSL Headers not found. " >&2;} { (exit 1); exit 1; }; } fi fi # Check whether --enable-login was given. if test "${enable_login+set}" = set; then enableval=$enable_login; else cat >>confdefs.h <<\_ACEOF #define MUST_LOGIN 1 _ACEOF { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } if test "${ac_cv_lib_crypt_crypt+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char crypt (); int main () { return crypt (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_crypt_crypt=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_crypt_crypt=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; } if test $ac_cv_lib_crypt_crypt = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBCRYPT 1 _ACEOF LIBS="-lcrypt $LIBS" else { { echo "$as_me:$LINENO: error: *** crypt library (libcrypt) not found" >&5 echo "$as_me: error: *** crypt library (libcrypt) not found" >&2;} { (exit 1); exit 1; }; } fi fi # Check whether --enable-cheuid was given. if test "${enable_cheuid+set}" = set; then enableval=$enable_cheuid; else cat >>confdefs.h <<\_ACEOF #define MUST_CHEUID 1 _ACEOF fi # Check whether --with-debug-level was given. if test "${with_debug_level+set}" = set; then withval=$with_debug_level; DEFAULT_DEBUG_LEVEL=$with_debug_level else DEFAULT_DEBUG_LEVEL=1 fi if test "${sysconfdir}" = "\${prefix}/etc" ; then if test "${prefix}" = "NONE" ; then SYSCONFDIR="$ac_default_prefix/etc" else SYSCONFDIR="${prefix}/etc" fi else SYSCONFDIR=${sysconfdir} fi ac_config_files="$ac_config_files Makefile src/Makefile src/shared/Makefile src/shared/pathnames.h src/client/Makefile src/client/fs/Makefile src/server/Makefile m4/Makefile po/Makefile.in" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by partimage $as_me 0.6.8, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ partimage config.status 0.6.8 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;; "src/shared/pathnames.h") CONFIG_FILES="$CONFIG_FILES src/shared/pathnames.h" ;; "src/client/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/Makefile" ;; "src/client/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/client/fs/Makefile" ;; "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim target!$target$ac_delim target_cpu!$target_cpu$ac_delim target_vendor!$target_vendor$ac_delim target_os!$target_os$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim MSGMERGE!$MSGMERGE$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim LIBICONV!$LIBICONV$ac_delim LTLIBICONV!$LTLIBICONV$ac_delim INTLLIBS!$INTLLIBS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF LIBINTL!$LIBINTL$ac_delim LTLIBINTL!$LTLIBINTL$ac_delim POSUB!$POSUB$ac_delim SED!$SED$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim DSYMUTIL!$DSYMUTIL$ac_delim NMEDIT!$NMEDIT$ac_delim CPP!$CPP$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim PARTIMAGE_LDFLAGS!$PARTIMAGE_LDFLAGS$ac_delim PARTIMAGED_LDFLAGS!$PARTIMAGED_LDFLAGS$ac_delim LOGDIR!$LOGDIR$ac_delim opensslpath!$opensslpath$ac_delim DEFAULT_DEBUG_LEVEL!$DEFAULT_DEBUG_LEVEL$ac_delim SYSCONFDIR!$SYSCONFDIR$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_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 || echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "default-1":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. 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 ;; "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi partimage-0.6.8/BOOT-ROOT.txt0000644000000000000000000000161211252653200014255 0ustar rootroot* How to create a boot disk: ----------------------------- 1. compile a recent kernel with many harware support, and many file systems (as ext2, fat, reiser, ntfs) with make bzImage (do not use DMA by default) 2. use rdev on the image: rdev bzImage /dev/fd0 rdev -r bzImage 49152 (49152 = ask disk, and read from 0) rdev -R bzImage 0 (to make the root RW and allow to login) 3. dd if=bzImage of=/dev/fd0 * How to create a root disk: ----------------------------- 1. dd if=/dev/zero of=image count=3733 bs=1k 2. mkfs.minix image 3. mount -o loop -t minix image /mnt/image 4. remove debug data from binaries executables libraries and programs to save space: program:...............objcopy --strip-all program shared library:........objcopy --stripdebug library.so 5. copy all files to /mnt/image 6. umount /mnt/image 7. cat image | gzip -9 > image.gz 8. dd if=image.gz of=/dev/fd0 partimage-0.6.8/BUGS0000644000000000000000000000150611252653200012655 0ustar rootroot================================= BUGS IN PARTIMAGE: =========================== ------- NOT FIXED ------- * when using compression, the volumes sizes are a little bigger than the need size (FIXED for gzip compression)(FIXED but files are far too small) * some avail space problems * if the link between server and a client fails for any reason, client and/or server *may* die. * partimage imginfo imagefile fails on wrong permissions but with wrong message 'can't find compression level' instead of 'permission denied' * partimage doesn't rightly detect end of space so corrupts images maid with compression. Image seems correct but restoring fails with 'invalid magic'. This doesn't affect non compressed images nor multivolume images based on size spliting. * partimage can't restore MBR is image is bzip2 compressed partimage-0.6.8/FORMAT0000644000000000000000000000536511252653200013114 0ustar rootroot// $Revision: 1.1.1.1 $ Description of the image file format for Partition Image which will be used in the 0.6 versions ------------------- Web: http://www.partimage.org/ ========================= INFO ========================== * There will be a magic string between each important structures (for example between CVolumeHeader and the data) * The CRC must be increased if the current byte is null. For example, use: for (i=0; i < size; i++) qwCRC += (data[i] ^ 94); =============== GENERAL IMAGE FILE FORMAT =============== Volume 000: ----------- * CVolumeHeader // The first volume is a regular volume * CMainHeader // contains the number of MBR saved * --mbr-- * --data-- Volume XXX: ----------- * CVolumeHeader * --data-- Volume last: ------------ * CVolumeHeader * --data-- * CMainTail ===================== DATA FORMAT ====================== * Block 000: * ... * Block XXX: + UINT nCRC: [0..65500]: ((16 bits CRC of the data of the block) mod (65500)) 65500 -> code001: it mean the size of the next variable used to encode the block number is larger (24 bits -> 32 bits; 32 bits -> 40 bits; 40 bits -> 56 bits; 56 bits -> 64 bits) [65502..65535] -> codeXXX: reserved for futur use If a code was used, then another UINT is written for the real CRC + ???? nBlockNumber: Number of the block which will be saved. This avoid to restore the data of the block X in the block Y. + --contents of the block-- // (between 512 and 32768 bytes in most cases) ========================= MBR ============================= * CMbr 000: * ... * CMbr XXX: struct CMBr { char m_cData[512]; char *szDevice[MAX_DEVICELEN]; // ex: "hda" m_DeviceIdentificator; } When creating an image, all the MBR of the physical hard disks will be saved. If not useful, only a few KB will be lost. But it can be very useful. The number of MBR saved in written in the MBR. With the 512 bytes of the MBR, we save the identificator of the device. It can be a serial number, or the contents of "/proc/ide/hda/model". It will be used to check the MBR we are restoring fit with the original hard drive, to avoid errors. We will also add an option to restore the MBR from an image file. ======== STRUCTURES INFORMATIONS =========== * CVolumeHeader Contains first a magic string "partimage" to check this is a partimage volume. It also contains the partition image version used to create it. * CMainHeader Contains infos which describe all the partitions of the image file, as the date/time of the image creation, the description, ... * CMainTail Contains informations to check the operation success, as the global 64 bits CRC partimage-0.6.8/README0000644000000000000000000000453511252653200013057 0ustar rootroot Partition Image ------------------- begin : ven avr 23 18:58:17 CEST 1999 copyright : (C) 1999 by François Dupoux AUTHOR: Francois Dupoux WEB: http://www.partimage.org/ 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. Partition Image is a partition imaging utility which has support for the following file systems: * Ext2/3, the Linux standard * ReiserFS, a journalised and powerful file system * FAT16/32, DOS and Windows file systems * HPFS, IBM OS/2 file system * JFS, journalised file system, from IBM, used on AIX * XFS, another journalised and efficient file system, from SGI, used on Irix * UFS (beta), Unix file system * HFS (beta), MacOS file system * NTFS (experimental), Windows NT, 2000 and XP Only used blocks are copied to save the space and to increase the speed. The image file can be compressed, in gzip, or bzip2 formats, and can be splitted into small files to be copied on floppies (1,44 MB, ZIP, ...). Then, the partition can be restored if there is a problem on the partition (file system error, virus, error in data, ...), from the image file. It can also be used to install many identical PCs with the same hardware. You just have to install an only PC, and you can copy the linux partitions to all others. Be carreful, this is an alpha version. Then, there can be bugs, and changes in the data format between differents versions. Don't backup important data with it, and use the same version to save and to restore the same image file. Please, report all bugs to the author. To compile it, run these commands in a terminal: ./configure && make && make install type "rm config.cache" before if you have problems Welcome to everybody who want to help the Partition Image project. There are many ways to do it: writing translations in english or the text used inside the source code, writing C++ code with new features, writing documentation (in SGML format), Please e-mail the author to do it. partimage-0.6.8/ltmain.sh0000644000000000000000000060646011005701501014016 0ustar rootroot# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.26 Debian 1.5.26-4" TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)" # Be Bourne compatible (taken from Autoconf:_AS_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 # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` 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" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; *.sx) xform=sx ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -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 case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static | -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 ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` if test "$linkmode" = lib; 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 "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$deplibdir/$depdepl" ; then depdepl="$deplibdir/$depdepl" elif test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" else # Can't find it, oh well... depdepl= fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) case " $deplibs" in *\ -l* | *\ -L*) $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;; esac if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then major=`expr $current - $age` else major=`expr $current - $age + 1` fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) case " $deplibs" in *\ -l* | *\ -L*) $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;; esac if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_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 variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables 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 fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of 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] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: partimage-0.6.8/THANKS0000644000000000000000000000221111252653200013077 0ustar rootroot THANKS for Partition Image: (without any order) ----------------------------------------------- - for NTFS bug reports and help debugging - for many tests in many file systems formats - for his ext2fs library and his help on ext2fs - for building the debian package, and adding it to woody and galician (gl) translation - for the italian (it) translation - for the german (de) translation - for his bootcd eltorito images - for the korean (ko) translation - for the devfs patch and the PLD package - for LS120 bug reports, help debugging and german (de) translation - for danish (da) translation - for polish (pl) translation - for portuguese (pt) translation - for Suomi (fi) translation - for fully-batch mode - for his patches that imporoves the batch mode support - for this amd64 + warnings patches partimage-0.6.8/aclocal.m40000644000000000000000000102251511256751257014055 0ustar rootroot# generated automatically by aclocal 1.10.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(AC_AUTOCONF_VERSION, [2.61],, [m4_warning([this file was generated for autoconf 2.61. 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'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH 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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='sed -e 1s/^X//' [sed_quote_subst='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 avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # 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 openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac _LT_REQUIRED_DARWIN_CHECKS AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])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_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_DEFUN([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_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. AC_DEFUN([_LT_LINKER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_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 # -------------------------- # Check for some things on darwin AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 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. echo "int foo(void){return 1;}" > conftest.c $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib ${wl}-single_module conftest.c if test -f libconftest.dylib; then lt_cv_apple_cc_single_mod=yes rm -rf libconftest.dylib* fi rm conftest.c 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" ]) case $host_os in rhapsody* | darwin1.[[0123]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; 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" != ":"; then _lt_dsymutil="~$DSYMUTIL \$lib || :" else _lt_dsymutil= fi ;; esac ]) # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # 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. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && 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 which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|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" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*) 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_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) 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* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # 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:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 x"[$]$2" = xyes; then ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_REQUIRE([LT_AC_PROG_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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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 x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# 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*) # 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; ;; 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; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # 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 ;; 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"; 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 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done 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 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] 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_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl if test "x$enable_dlopen" != xyes; 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*) 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 ]) ;; *) 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 "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && 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_AC_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 "x$lt_cv_dlopen_self" = xyes; 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_AC_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 ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_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:__oline__: $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:__oline__: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_AC_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 .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_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 ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # 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 "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) 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" m4_if($1,[],[ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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` 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" else 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; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi shlibpath_var=LIBPATH fi ;; amigaos*) 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=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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 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 ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[[3-9]]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 # 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 # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsdelf*-gnu) version_type=linux 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='NetBSD ld.elf_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 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=linux 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 ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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=freebsd-elf 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 hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 "$dynamic_linker" = no && can_build_shared=no AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_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=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_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=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_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=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognize shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_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="ifelse([$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 <&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 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 ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognize a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_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 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl 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(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 /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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) 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 Linux ELF. linux* | k*bsd*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; nto-qnx*) lt_cv_deplibs_check_method=unknown ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 ;; 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) 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 ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible 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 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) 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 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-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_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [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_AC_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_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # Report which 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 "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_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(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_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_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++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_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 "$with_gnu_ld" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_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_AC_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 "\-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_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; 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 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 # need to do runtime linking. 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 ;; 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_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes; 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_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_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_AC_SYS_LIBPATH_AIX _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_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 (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" if test "$GXX" = yes ; then output_verbose_link_cmd='echo' _LT_AC_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_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_AC_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_AC_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}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_AC_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_AC_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 case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_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 $output_objdir/$soname = $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) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_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; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_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_AC_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_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -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_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-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_AC_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_AC_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; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_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_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # 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_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_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' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_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=`echo $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; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # 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_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_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_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; osf3*) 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_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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 "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; 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_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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 "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # 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_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_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_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -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 \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_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 -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 \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_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 can NOT 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. # 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. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld 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 ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([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. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], [AC_REQUIRE([LT_AC_PROG_SED])dnl 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... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_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_AC_TAGVAR(objext, $1)=$objext # 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_AC_SYS_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" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_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_AC_SYS_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" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_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_AC_SYS_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" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then 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 # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # See if we are running on zsh, and set the options which allow our commands through # without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _LT_AC_TAGVAR(predep_objects, $1) \ _LT_AC_TAGVAR(postdep_objects, $1) \ _LT_AC_TAGVAR(predeps, $1) \ _LT_AC_TAGVAR(postdeps, $1) \ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ _LT_AC_TAGVAR(hardcode_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(fix_srcfile_path, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\[$]0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` ;; esac ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The directories searched by this compiler when creating a shared # library compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 in a C name address pair global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # 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=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi EOF ;; esac # 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" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([LT_AC_PROG_SED]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # 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]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 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 # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, 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. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $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 < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_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_save_LIBS" CFLAGS="$lt_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 "$pipe_works" = yes; 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 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $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_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_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_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; 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_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_AC_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_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_AC_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= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; 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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[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 "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_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 (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_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_AC_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_AC_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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_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 _LT_AC_TAGVAR(link_all_deplibs, $1)=no else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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_AC_TAGVAR(ld_shlibs, $1)=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_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_AC_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_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_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_AC_TAGVAR(hardcode_direct, $1)=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 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | 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 # 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 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_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes; 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_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_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_AC_SYS_LIBPATH_AIX _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_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_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_AC_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_AC_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}" else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $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_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_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 "$with_gnu_ld" = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_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~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_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' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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 "$GCC" = yes; then _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_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 can NOT 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_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_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_MSG_CHECKING([whether -lc should be explicitly linked in]) $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_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # Cheap backport of AS_EXECUTABLE_P and required macros # from Autoconf 2.59; we should not use $as_executable_p directly. # _AS_TEST_PREPARE # ---------------- m4_ifndef([_AS_TEST_PREPARE], [m4_defun([_AS_TEST_PREPARE], [if test -x / >/dev/null 2>&1; then as_executable_p='test -x' else as_executable_p='test -f' fi ])])# _AS_TEST_PREPARE # AS_EXECUTABLE_P # --------------- # Check whether a file is executable. m4_ifndef([AS_EXECUTABLE_P], [m4_defun([AS_EXECUTABLE_P], [AS_REQUIRE([_AS_TEST_PREPARE])dnl $as_executable_p $1[]dnl ])])# AS_EXECUTABLE_P # 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. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_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 $lt_ac_count -gt 10 && 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]) ]) # Copyright (C) 2002, 2003, 2005, 2006, 2007 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.10' 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.10.1], [], [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 AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.10.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 13 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.60])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006 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]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/gettext.m4]) m4_include([m4/iconv.m4]) m4_include([m4/isc-posix.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) partimage-0.6.8/config.h.in0000644000000000000000000001357711256751263014244 0ustar rootroot/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 to enable Developpers support */ #undef DEVEL_SUPPORT /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the `atoll' function. */ #undef HAVE_ATOLL /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define to 1 if you have the header file. */ #undef HAVE_CRYPT_H /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fstat64' function. */ #undef HAVE_FSTAT64 /* Define to 1 if you have the `fstatfs64' function. */ #undef HAVE_FSTATFS64 /* Define to 1 if you have the header file. */ #undef HAVE_GETOPT_H /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `getwd' function. */ #undef HAVE_GETWD /* Define if you have the iconv() function. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `bz2' library (-lbz2). */ #undef HAVE_LIBBZ2 /* Define to 1 if you have the `crypt' library (-lcrypt). */ #undef HAVE_LIBCRYPT /* Define to 1 if you have the `dl' library (-ldl). */ #undef HAVE_LIBDL /* Define to 1 if you have the `efence' library (-lefence). */ #undef HAVE_LIBEFENCE /* Define to 1 if you have the `newt' library (-lnewt). */ #undef HAVE_LIBNEWT /* Define to 1 if you have the `pam' library (-lpam). */ #undef HAVE_LIBPAM /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the `z' library (-lz). */ #undef HAVE_LIBZ /* Define to 1 if you have the header file. */ #undef HAVE_LIMIT_H /* 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_MNTENT_H /* Define to 1 if you have the `open64' function. */ #undef HAVE_OPEN64 /* Define if you have PAM support on your system */ #undef HAVE_PAM /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H /* Define to 1 if you have the `setpgid' function. */ #undef HAVE_SETPGID /* Define to 1 if you have the header file. */ #undef HAVE_SHADOW_H /* Define to 1 if you have SSL support */ #undef HAVE_SSL /* 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 `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR /* 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 `strtoll' function. */ #undef HAVE_STRTOLL /* 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_STATFS_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_UNISTD_H /* Define to 1 if you want partimaged to drop privilieges on start */ #undef MUST_CHEUID /* Define to 1 if you want users to login before using partimaged */ #undef MUST_LOGIN /* Define to 1 if OS is FreeBSD */ #undef OS_FBSD /* Define to 1 if OS is Linux */ #undef OS_LINUX /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if the `setpgrp' function takes no argument. */ #undef SETPGRP_VOID /* The size of `char', as computed by sizeof. */ #undef SIZEOF_CHAR /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT /* The size of `long int', as computed by sizeof. */ #undef SIZEOF_LONG_INT /* The size of `short', as computed by sizeof. */ #undef SIZEOF_SHORT /* The size of `unsigned long long', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_LONG_LONG /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS /* Defined to have O_LARGEFILE under Linux */ #undef _GNU_SOURCE /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `unsigned int' if does not define. */ #undef size_t partimage-0.6.8/config.guess0000755000000000000000000012753411256751264014541 0ustar rootroot#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: partimage-0.6.8/autogen.sh0000755000000000000000000000005111252653200014165 0ustar rootroot#!/bin/sh autoreconf -vfi echo "Done." partimage-0.6.8/INSTALL0000644000000000000000000001745611252653200013236 0ustar rootrootRequired packages to compile ============================ - zlib - libbz2 (version >= 1.0.0) - newt - libpthread In Debian, they are provided by: zlib1g, zlib1g-dev, libbz2, libbz2-dev, libnewt, libnewt-dev Optional packages ================= - openssl & libssl & libcrypto (required if you don't disable SSL support, see later to do so) Warning ======= Use ./autogen.sh *only* if you have some problems when compiling intl subdirectory and you have a working gettext package. autogen.sh also requires other packages like autoconf, automake, aclocal... Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Type `make install' to install the programs and any data files and documentation. 3a. Instead of `make install', you can use `make install-strip' to reduce executables size. 4. Optional: (if you enabled SSL) Type `make certificates' to build certificates needed by partimaged. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. partimagedusers format ====================== Format for partimagedusers is basic: a list of allowed users, one per line. Comments are allowed and began by #. Example: if user1 and user2 can connect to partimaged server, file is like this # partimagedusers sample file user1 user2 # no other users can connect to partimaged Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Installation Names ================== By default, `make install' will install the package's files in `/usr/bin', `/usr/man', etc. You can specify an installation prefix other than `/usr' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `--with-debug-level=DEBUG_LEVEL' Specify the level of details put in the logfile by partimage and partimaged This can be change at runtime for partimage with --debug=x `--with-log-dir=PATH' The logfiles will be generated in the directory PATH. They are called partimage-debug.log and partimaged.log `--disable-ssl' Disable SSL support. You will not be able to enable ssl at runtime. `--enable-all-static' Link partimage/partimaged with option -static. No libraries will be required at runtime but you need static version for all library used `--disable-login' No login prompt asked to connect partimaged. Unsecure mode, shouldn't use. `--enable-libext2fs' Use ext2fs libraries instead of internal code. `configure' also accepts some other, not widely useful, options.